ath11k: incorrect board_id retrieval

Sven Eckelmann sven at narfation.org
Tue Dec 14 05:31:17 PST 2021


On Thursday, 2 December 2021 15:43:03 CET Sven Eckelmann wrote:
[...]
> Just retrieved the next card (EmWicon WMX7205 - could be the same as jjPlus 
> WMX7205) and it has exactly the same problem:
> 
>     ath11k_pci 0000:05:00.0: failed to fetch board data for bus=pci,vendor=17cb,device=1103,subsystem-vendor=17cb,subsystem-device=0108,qmi-chip-id=2,qmi-board-id=255 from ath11k/WCN6855/hw2.0/board-2.bin
>     ath11k_pci 0000:05:00.0: failed to fetch board-2.bin or board.bin from WCN6855/hw2.
> 
> Of course, the only provided keys (all with board_id != 255) are:
> 
> * bus=pci,vendor=17cb,device=1103,subsystem-vendor=17cb,subsystem-device=3374,qmi-chip-id=2,qmi-board-id=262
> * bus=pci,vendor=17cb,device=1103,subsystem-vendor=17cb,subsystem-device=3374,qmi-chip-id=2,qmi-board-id=266
> * bus=pci,vendor=17cb,device=1103,subsystem-vendor=17cb,subsystem-device=3374,qmi-chip-id=18,qmi-board-id=266
> 
> So until now, I could not find a single card for which ath11k returned a 
> board-id != 255 (unless it was overwritten via the devicetree).

According to the manufacturer, the board itself should identify itself as 

    chip_id: 0x2, chip_family: 0xb,   board_id: 0x301, soc_id: 0x400c0200

I have therefore dumped the memory region with the qmi response via kgdb. You 
can easily see that the response has following sections:


* 0x02 (len  4) - resp
* 0x02 (len  4) - resp
* 0x10 (len  8) - chip_info
* 0x12 (len  4) - soc_info_valid
* 0x13 (len 21) - fw_version_info
* 0x14 (len 77) - fw_build_id
* 0x15 (len  1) - num_macs
* 0x16 (len  4) - voltage_mv
* 0x17 (len  4) - time_freq_hz
* 0x1A (len  8) - ????

So the section 0x11 with the board_id is completely missing. For some reason.

> > So my question would be: Is the ath11k based board_id retrieval just broken? 
> > Or are these cards broken?

Kind regards,
	Sven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qmi_wlanfw_cap_resp_msg_v01_ei.bin
Type: application/octet-stream
Size: 165 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/ath11k/attachments/20211214/f17bf3b6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.infradead.org/pipermail/ath11k/attachments/20211214/f17bf3b6/attachment.sig>


More information about the ath11k mailing list