All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven@narfation.org>
To: ath11k@lists.infradead.org, Wen Gong <quic_wgong@quicinc.com>
Cc: Sven Eckelmann <sven@narfation.org>
Subject: Re: ath11k: incorrect board_id retrieval
Date: Tue, 14 Dec 2021 14:31:17 +0100	[thread overview]
Message-ID: <1880746.bFOEV04gjF@ripper> (raw)
In-Reply-To: <3014977.PoT5AKhg5k@ripper>


[-- Attachment #1.1.1: Type: text/plain, Size: 1835 bytes --]

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

[-- Attachment #1.1.2: qmi_wlanfw_cap_resp_msg_v01_ei.bin --]
[-- Type: application/octet-stream, Size: 165 bytes --]

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 102 bytes --]

-- 
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

  reply	other threads:[~2021-12-14 13:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-26 14:48 ath11k: incorrect board_id retrieval Sven Eckelmann
2021-12-02 14:43 ` Sven Eckelmann
2021-12-14 13:31   ` Sven Eckelmann [this message]
2021-12-15 17:42 ` Seevalamuthu M (QUIC)
2021-12-16  8:40   ` Sven Eckelmann
2022-02-18 13:52 ` Sven Eckelmann
2022-04-13  7:01   ` Kalle Valo
2022-04-13  7:20     ` Sven Eckelmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1880746.bFOEV04gjF@ripper \
    --to=sven@narfation.org \
    --cc=ath11k@lists.infradead.org \
    --cc=quic_wgong@quicinc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.