Bug 215625 - ath11k: failed to fetch board data ... subsystem-device=e0ca... from ath11k/WCN6855/hw2.0/board-2.bin
Summary: ath11k: failed to fetch board data ... subsystem-device=e0ca... from ath11k/W...
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: network-wireless (show other bugs)
Hardware: All Linux
: P2 normal
Assignee: Kalle Valo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-20 08:46 UTC by Alexander Ustimenko
Modified: 2022-03-22 01:18 UTC (History)
2 users (show)

See Also:
Kernel Version: 5.17rc3.220207.g8e1d58f-1
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Alexander Ustimenko 2022-02-20 08:46:34 UTC
laptop: Honor, MagicBook Pro, 5301ABCM, Gray;
cpu: AMD Ryzen 5 5600H
wifi adapter: ax


Latest firmware from https://github.com/kvalo/ath11k-firmware added to WCN6855 dir.

sudo dmesg | grep ath                                                                                                     [    0.889502] systemd[1]: Reached target Path Units.
[    0.894407] systemd[1]: File System Check on Root Device was skipped because of a failed condition check (ConditionPathIsReadWrite=!/).
[    1.336427] ath11k_pci 0000:02:00.0: BAR 0: assigned [mem 0xd0000000-0xd01fffff 64bit]
[    1.336446] ath11k_pci 0000:02:00.0: enabling device (0000 -> 0002)
[    1.339142] ath11k_pci 0000:02:00.0: wcn6855 hw2.0
[    2.404555] ath11k_pci 0000:02:00.0: chip_id 0x2 chip_family 0xb board_id 0xff soc_id 0x400c0200
[    2.404559] ath11k_pci 0000:02:00.0: fw_version 0x110c0b4c fw_build_timestamp 2021-11-24 04:24 fw_build_id QC_IMAGE_VERSION_STRING=WLAN.HSP.1.1-02892.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1
[    2.405874] ath11k_pci 0000:02:00.0: failed to fetch board data for bus=pci,vendor=17cb,device=1103,subsystem-vendor=105b,subsystem-device=e0ca,qmi-chip-id=2,qmi-board-id=255 from ath11k/WCN6855/hw2.0/board-2.bin
[    2.405894] ath11k_pci 0000:02:00.0: failed to fetch board-2.bin or board.bin from WCN6855/hw2.0
[    2.405896] ath11k_pci 0000:02:00.0: qmi failed to fetch board file: -2
[    2.405897] ath11k_pci 0000:02:00.0: failed to load board data file: -2


board-2.bin clearly missing subsystem-device=e0ca:

./qca-swiss-army-knife/tools/scripts/ath11k/ath11k-bdencoder -i ath11k-firmware/WCN6855/hw2.0/board-2.bin|grep BoardName
BoardNames[0]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=17cb,subsystem-device=3374,qmi-chip-id=2,qmi-board-id=262'
BoardNames[1]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=17cb,subsystem-device=3374,qmi-chip-id=2,qmi-board-id=266'
BoardNames[2]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=17cb,subsystem-device=3374,qmi-chip-id=18,qmi-board-id=266'
BoardNames[3]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=14cd,subsystem-device=9409,qmi-chip-id=18,qmi-board-id=255'
BoardNames[4]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=14cd,subsystem-device=9409,qmi-chip-id=2,qmi-board-id=255'
BoardNames[5]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=17cb,subsystem-device=0108,qmi-chip-id=18,qmi-board-id=255'
BoardNames[6]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=17cb,subsystem-device=0108,qmi-chip-id=2,qmi-board-id=255'
BoardNames[7]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=105b,subsystem-device=e0ce,qmi-chip-id=2,qmi-board-id=255'
BoardNames[8]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=105b,subsystem-device=e0ce,qmi-chip-id=18,qmi-board-id=255'
BoardNames[9]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=14cd,subsystem-device=9308,qmi-chip-id=2,qmi-board-id=255'
BoardNames[10]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=17aa,subsystem-device=9308,qmi-chip-id=2,qmi-board-id=255'
BoardNames[11]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=17aa,subsystem-device=9309,qmi-chip-id=2,qmi-board-id=255'
BoardNames[12]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=17aa,subsystem-device=9309,qmi-chip-id=18,qmi-board-id=255'
BoardNames[13]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=17aa,subsystem-device=e0be,qmi-chip-id=2,qmi-board-id=255'
BoardNames[14]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=105b,subsystem-device=e0bb,qmi-chip-id=2,qmi-board-id=255'
BoardNames[15]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=105b,subsystem-device=e0c4,qmi-chip-id=2,qmi-board-id=255'
BoardNames[16]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=105b,subsystem-device=e0c4,qmi-chip-id=18,qmi-board-id=255'
BoardNames[17]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=17cb,subsystem-device=3374,qmi-chip-id=2,qmi-board-id=771'
BoardNames[18]: 'bus=pci,vendor=17cb,device=1103,subsystem-vendor=17cb,subsystem-device=3374,qmi-chip-id=18,qmi-board-id=771'

sudo lspci -vqk -s 02:00                                                                                                  02:00.0 Network controller: Qualcomm Atheros QCNFA765 (rev 01)
  Subsystem: Foxconn International, Inc. Device e0ca
  Physical Slot: 0
  Flags: bus master, fast devsel, latency 0, IRQ 81, IOMMU group 8
  Memory at d0000000 (64-bit, non-prefetchable) [size=2M]
  Capabilities: [40] Power Management version 3
  Capabilities: [50] MSI: Enable+ Count=32/32 Maskable+ 64bit-
  Capabilities: [70] Express Endpoint, MSI 00
  Capabilities: [100] Advanced Error Reporting
  Capabilities: [148] Secondary PCI Express
  Capabilities: [158] Transaction Processing Hints
  Capabilities: [1e4] Latency Tolerance Reporting
  Capabilities: [1ec] L1 PM Substates
  Kernel driver in use: ath11k_pci
  Kernel modules: ath11k_pci
Comment 1 Alexander Ustimenko 2022-02-20 11:22:53 UTC
Same reported by Xell Kim yesterday:

https://lore.kernel.org/all/87ee3yzo7v.fsf@kernel.org/T/
Comment 2 Xell Kim 2022-02-21 00:23:21 UTC
same problem.
Comment 3 Alexander Ustimenko 2022-02-21 08:42:51 UTC
Kalle, am I correctly understand, that fix will be bundled someday to https://github.com/kvalo/ath11k-firmware and we should subscribe to it?

Crossing fingers, we need here only firmware and not kernel changes )
Comment 4 Kalle Valo 2022-02-21 13:57:10 UTC
(In reply to Alexander Ustimenko from comment #3)
> Kalle, am I correctly understand, that fix will be bundled someday to
> https://github.com/kvalo/ath11k-firmware

Correct. I'm currently trying to find a correct board file this device and will upload once I have it. I will also notify here.

> Crossing fingers, we need here only firmware and not kernel changes )

With WCN6855 I recommend using kernel v5.17. Older might work but I have not tested those.
Comment 5 Xell Kim 2022-02-22 00:50:07 UTC
I've done some experiments and may find something weird. As for the
reboot problem I mentioned in the previous email, I filed a new bug
report in https://bugzilla.kernel.org/show_bug.cgi?id=215630 and will
briefly describe it here as it may be solved with this problem
together.

kernel 5.17.rc3.22020 with blacklist ath11k:
dmesg | grep ath:
kernel 5.17-rc3 [ 0.950236] systemd[1]: File System Check on Root
Device was skipped because of a failed condition check
(ConditionPathIsReadWrite=!/).

kernel 5.17.rc3.22020 with ath11k not in the black list (this message
may vary due to info below)
systemd[1]: File System Check on Root Device was skipped because of a
failed condition check (ConditionPathIsReadWrite=!/).
[ 2.371973] ath11k_pci 0000:02:00.0: BAR 0: assigned [mem
0xd1000000-0xd11fffff 64bit]
[ 2.371991] ath11k_pci 0000:02:00.0: enabling device (0000 -> 0002)
[ 2.372328] ath11k_pci 0000:02:00.0: MSI vectors: 32
[ 2.372332] ath11k_pci 0000:02:00.0: wcn6855 hw2.0

For Kernel 5.17rc3, when ath11k is in the blacklist, I can reboot the
system in normal speed, but when ath11k is not in the blacklist, the
reboot will be in very slow speed.

kernel:5.15-16-1 with blacklist ath11k
sudo dmesg | grep ath
[ 0.950236] systemd[1]: File System Check on Root Device was skipped
because of a failed condition check (ConditionPathIsReadWrite=!/).
[ 1.013302] systemd[1]: Virtual Machine and Container Storage
(Compatibility) was skipped because of a failed condition check
(ConditionPathExists=/var/lib/machines.raw).

kernel:5.15-16-1 removing ath11k from blacklist:
sudo dmesg | grep ath
[ 1.000532] systemd[1]: File System Check on Root Device was skipped
because of a failed condition check (ConditionPathIsReadWrite=!/).
[ 1.053473] systemd[1]: Virtual Machine and Container Storage
(Compatibility) was skipped because of a failed condition check
(ConditionPathExists=/var/lib/machines.raw).
[ 1.874492] ath11k_pci 0000:02:00.0: BAR 0: assigned [mem
0xd1000000-0xd11fffff 64bit]
[ 1.874509] ath11k_pci 0000:02:00.0: enabling device (0000 -> 0002)
[ 1.874844] ath11k_pci 0000:02:00.0: wcn6855 hw2.0
[ 2.707262] Modules linked in: pcc_cpufreq(-) qrtr_mhi cmac algif_hash
algif_skcipher af_alg bnep vfat fat uvcvideo qrtr videobuf2_vmalloc
videobuf2_memops ns videobuf2_v4l2 btusb ath11k_pci videobuf2_common
btrtl intel_rapl_msr btbcm intel_rapl_common ath11k videodev btintel
joydev bluetooth qmi_helpers mc mousedev ecdh_generic uinput amdgpu(+)
edac_mce_amd mac80211 kvm_amd snd_hda_codec_hdmi
snd_hda_codec_conexant snd_hda_codec_generic huawei_wmi snd_hda_intel
libarc4 ledtrig_audio hid_multitouch wmi_bmof sparse_keymap kvm
snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec irqbypass
crct10dif_pclmul cfg80211 snd_hda_core crc32_pclmul snd_hwdep
ghash_clmulni_intel snd_pcm aesni_intel snd_timer crypto_simd
snd_pci_acp5x gpu_sched sp5100_tco snd cryptd snd_rn_pci_acp3x rfkill
drm_ttm_helper pcspkr mhi snd_pci_acp3x tpm_crb ccp ttm soundcore
i2c_piix4 k10temp rapl mac_hid tpm_tis tpm_tis_core tpm video
i2c_hid_acpi wmi i2c_hid rng_core amd_pmc pinctrl_amd acpi_cpufreq
squashfs loop
[ 2.707447] ath11k_qmi_msg_mem_request_cb+0x1b6/0x310 [ath11k
3e52950f3f35c569855b5df38e8a9b123f0c17c4]
[ 2.715057] ath11k_pci 0000:02:00.0: chip_id 0x2 chip_family 0xb
board_id 0xff soc_id 0x400c0200
[ 2.715068] ath11k_pci 0000:02:00.0: fw_version 0x110d8c35
fw_build_timestamp 2022-01-27 04:01 fw_build_id
QC_IMAGE_VERSION_STRING=WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3
[ 2.717265] ath11k_pci 0000:02:00.0: failed to fetch board data for
bus=pci,qmi-chip-id=2,qmi-board-id=255 from
ath11k/WCN6855/hw2.0/board-2.bin
[ 2.928925] ath11k_pci 0000:02:00.0: firmware crashed: MHI_CB_SYS_ERROR
[ 7.808023] ath11k_pci 0000:02:00.0: failed to load board data file: -110

kernel:5.15-16-1 removing ath11k from blacklist after reboot:
sudo dmesg | grep ath (yes the message changed. And I assume that the
same thing can also occur under kernel 5.17rc3)
[ 0.999917] systemd[1]: File System Check on Root Device was skipped
because of a failed condition check (ConditionPathIsReadWrite=!/).
[ 1.059134] systemd[1]: Virtual Machine and Container Storage
(Compatibility) was skipped because of a failed condition check
(ConditionPathExists=/var/lib/machines.raw).
[ 1.883741] ath11k_pci 0000:02:00.0: BAR 0: assigned [mem
0xd1000000-0xd11fffff 64bit]
[ 1.883767] ath11k_pci 0000:02:00.0: enabling device (0000 -> 0002) [
1.884266] ath11k_pci 0000:02:00.0: wcn6855 hw2.0

kernel 5.10.98 - 1: with ath11k in or not in the blacklist (the most
weird thing)
[    1.027027] systemd[1]: File System Check on Root Device was
skipped because of a failed condition check
(ConditionPathIsReadWrite=!/).
[    1.087394] systemd[1]: Virtual Machine and Container Storage
(Compatibility) was skipped because of a failed condition check
(ConditionPathExists=/var/lib/machines.raw).

When I use the kernel 5.10 the problem with the board file seems to
disappear. There may be some other problems with my system.

kernel 5.15 and kernel 5.10.98-1, with ath11k in or not in the
blacklist: reboot in normal speed.
Comment 6 Alexander Ustimenko 2022-03-15 06:41:45 UTC
Kalle, thank you for posting update at https://github.com/kvalo/ath11k-firmware/commit/a31b1a6e0032415dc3b0bdf9955fc7a1e63bd3ce

I pulled it and wi-fi now works out of the box.
Comment 7 Kalle Valo 2022-03-16 05:51:44 UTC
> Kalle, thank you for posting update at
>
> https://github.com/kvalo/ath11k-firmware/commit/a31b1a6e0032415dc3b0bdf9955fc7a1e63bd3ce
>
> I pulled it and wi-fi now works out of the box.

Great, thanks for closing the bug.
Comment 8 Xell Kim 2022-03-22 01:18:01 UTC
It works for me too! Thanks a lot.

Note You need to log in before you can comment on or make changes to this bug.