Re: [PATCH] ath11k: pci: avoid unsafe register access during shutdown

Vasanthakumar Thiagarajan <[email protected]>
Newsgroups org.infradead.lists.ath11k,org.kernel.vger.linux-wireless
Message-ID <[email protected]>

On 8/19/2025 2:20 PM, Balsam Chihi wrote:
> Hello,
> I Have a question on the same subject but not related to the bug.
> I have many identical PCIe WiFi cards on the system and I need to load
> a different board-2.bin on each one (1 adapter per frequency band).

So you are using multiple pcie devices at the same time in a system
with ath11k? Wondering if you are using any private patches to address
QRTR instance id clash issue [1][2].

> Is there any kernel built-in solution for that?
> I could not find any, so I had to create a patch that loads a
> different board-2.bin for each card based on the pci device address.

Current board data selection for QCN from board-2.bin is based on pci+chip-id+board-id
combination, not based on pci device address. You can find the chip-id and board-id in the
debug during QMI boot stage. Then you can use ath11k-bdencoder [3] to encode those
board data binaries into board-2.bin. This way you can package all the needed board
specific binaries for a hardware into a single board-2.bin. Ath11k board data file
load logic uses chip-id and board-id to download the right board data for the given
hardware variant.

Vasanth

[1] https://patchwork.kernel.org/project/linux-wireless/list/?series=692423&state=*&order=date
[2] https://lore.kernel.org/all/[email protected]/
[3] 
https://github.com/qca/qca-swiss-army-knife/blob/master/tools/scripts/ath11k/ath11k-bdencoder
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.