ath11kによるprobe時に、5GHz帯のQCN6102 (RF)でBDFを読み込んだタイミングでエラーを吐き、既に正常に認識されていた2.4GHz帯のIPQ5018 (MAC/RF)を巻き込んでクラッシュする
addr: 0x45c が古めのBDFでは 0x3、新しめのBDFでは 0x0 になっているので前者は 0x0 に書き換えるという話 がForumで出ていたので試す
→これが正解だった
ログ(修正前):
[ 12.920050] ath11k c000000.wifi: Multipd architecture - userpd: 1 [ 12.920608] ath11k c000000.wifi: ipq5018 hw1.0 [ 12.925241] ath11k c000000.wifi: FW memory mode: 2 [ 13.034717] remoteproc remoteproc1: powering up pd-1 [ 13.035016] remoteproc remoteproc1: Booting fw image ath11k/IPQ5018/hw1.0/q6_fw.mdt, size 1820 [ 13.038788] remoteproc remoteproc0: powering up cd00000.remoteproc [ 13.047400] remoteproc remoteproc0: Booting fw image ath11k/IPQ5018/hw1.0/q6_fw.mdt, size 1820 [ 13.160471] remoteproc remoteproc0: remote processor cd00000.remoteproc is now up [ 13.176791] remoteproc remoteproc1: remote processor pd-1 is now up [ 13.180392] ath11k b00a040.wifi1: Multipd architecture - userpd: 2 [ 13.182516] ath11k b00a040.wifi1: qcn6122 hw1.0 [ 13.188122] ath11k b00a040.wifi1: FW memory mode: 2 [ 13.208750] ath11k c000000.wifi: qmi fail to get qcom,m3-dump-addr, ignore m3 dump mem req [ 13.216204] ath11k c000000.wifi: chip_id 0x0 chip_family 0x4 board_id 0xff soc_id 0xffffffff [ 13.216261] ath11k c000000.wifi: fw_version 0x270206d0 fw_build_timestamp 2022-08-04 13:28 fw_build_id WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1 [ 13.248598] remoteproc remoteproc2: powering up pd-2 [ 13.248888] remoteproc remoteproc2: Booting fw image ath11k/IPQ5018/hw1.0/q6_fw.mdt, size 1820 [ 13.265067] remoteproc remoteproc2: remote processor pd-2 is now up [ 13.278295] kmodloader: done loading kernel modules from /etc/modules.d/* [ 13.346385] ath11k b00a040.wifi1: qmi ignore invalid mem req type 10 [ 13.353716] ath11k b00a040.wifi1: chip_id 0x0 chip_family 0x4 board_id 0xff soc_id 0xffffffff [ 13.353777] ath11k b00a040.wifi1: fw_version 0x270206d0 fw_build_timestamp 2022-08-04 13:28 fw_build_id WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1 [ 13.387736] mtdblock: MTD device '0:appsblenv' is NAND, please consider using UBI block devices instead. [ 14.245946] mtdblock: MTD device '0:appsblenv' is NAND, please consider using UBI block devices instead. [ 15.304386] qcom-q6-mpd cd00000.remoteproc: fatal error received: err_smem_ver.2.1: [ 15.304386] QC Image Version : QC_IMAGE_VERSION_STRING=WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1 [ 15.304386] Image Variant : IMAGE_VARIANT_STRING=5018.wlanfw2.map_spr_spr_evalQ [ 15.304386] phyrf_bdf.c:6245 Assertion axis_value == ANTENNACHAIN_AXIS_Z failed param0 :zero,param1 :zero,param2 :zero [ 15.304386] Thread ID : 0x00000046 Thread name : wlan_platform Process ID : 0x00000002 Process name :wlan1 [ 15.304386] [ 15.304386] Registers: [ 15.304386] SP : 0x4bfdbba8 [ 15.304386] FP : 0x4bfdbbd0 [ 15.304386] PC : 0xd025bc70 [ 15.304386] SSR : 0x00000000 [ 15.304386] BADVA : 0x00000000 [ 15.304386] LR : 0xd0178488 [ 15.304386] [ 15.304386] StackDump [ 15.304386] from:0x4bfdbba8 [ 15.304386] to: 0x00000000: [ 15.304386] [ 15.357522] remoteproc remoteproc0: crash detected in cd00000.remoteproc: type fatal error [ 15.379728] remoteproc remoteproc0: handling crash #1 in cd00000.remoteproc [ 15.387842] remoteproc remoteproc0: recovering cd00000.remoteproc [ 15.402480] remoteproc remoteproc0: stopped remote processor cd00000.remoteproc [ 15.504397] remoteproc remoteproc0: remote processor cd00000.remoteproc is now up [ 25.431353] ath11k b00a040.wifi1: failed to wait wlan mode request (mode 0): -110 [ 25.431427] ath11k b00a040.wifi1: qmi failed to send wlan fw mode: -110 [ 25.437848] ath11k b00a040.wifi1: failed to send firmware start: -110 [ 25.444474] ath11k b00a040.wifi1: failed to start firmware: -110
ログ(修正後):
[ 12.885833] ath11k c000000.wifi: Multipd architecture - userpd: 1
[ 12.886533] ath11k c000000.wifi: ipq5018 hw1.0
[ 12.890913] ath11k c000000.wifi: FW memory mode: 2
[ 13.031648] remoteproc remoteproc1: powering up pd-1
[ 13.031853] remoteproc remoteproc1: Booting fw image ath11k/IPQ5018/hw1.0/q6_fw.mdt, size 1820
[ 13.035696] remoteproc remoteproc0: powering up cd00000.remoteproc
[ 13.044182] remoteproc remoteproc0: Booting fw image ath11k/IPQ5018/hw1.0/q6_fw.mdt, size 1820
[ 13.156098] remoteproc remoteproc0: remote processor cd00000.remoteproc is now up
[ 13.175359] remoteproc remoteproc1: remote processor pd-1 is now up
[ 13.178506] ath11k b00a040.wifi1: Multipd architecture - userpd: 2
[ 13.180973] ath11k b00a040.wifi1: qcn6122 hw1.0
[ 13.186754] ath11k b00a040.wifi1: FW memory mode: 2
[ 13.202936] ath11k c000000.wifi: qmi fail to get qcom,m3-dump-addr, ignore m3 dump mem req
[ 13.210470] ath11k c000000.wifi: chip_id 0x0 chip_family 0x4 board_id 0xff soc_id 0xffffffff
[ 13.210526] ath11k c000000.wifi: fw_version 0x270206d0 fw_build_timestamp 2022-08-04 13:28 fw_build_id WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1
[ 13.247843] remoteproc remoteproc2: powering up pd-2
[ 13.248638] remoteproc remoteproc2: Booting fw image ath11k/IPQ5018/hw1.0/q6_fw.mdt, size 1820
[ 13.263393] remoteproc remoteproc2: remote processor pd-2 is now up
[ 13.276785] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 13.344470] ath11k b00a040.wifi1: qmi ignore invalid mem req type 10
[ 13.351805] ath11k b00a040.wifi1: chip_id 0x0 chip_family 0x4 board_id 0xff soc_id 0xffffffff
[ 13.351930] ath11k b00a040.wifi1: fw_version 0x270206d0 fw_build_timestamp 2022-08-04 13:28 fw_build_id WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1
[ 13.385464] mtdblock: MTD device '0:appsblenv' is NAND, please consider using UBI block devices instead.
[ 14.238584] mtdblock: MTD device '0:appsblenv' is NAND, please consider using UBI block devices instead.
...
root@OpenWrt:~# iwinfo radio0 info
radio0 ESSID: unknown
Access Point: 00:00:00:00:00:00
Mode: Unknown Channel: unknown (unknown) HT Mode: HT20
Center Channel 1: unknown 2: unknown
Tx-Power: unknown Link Quality: unknown/70
Signal: unknown Noise: unknown
Bit Rate: unknown
Encryption: unknown
Type: nl80211 HW Mode(s): 802.11ax/b/g/n
Hardware: embedded [Qualcomm Atheros IPQ5018]
TX power offset: none
Frequency offset: none
Supports VAPs: yes PHY name: phy0
root@OpenWrt:~# iwinfo radio1 info
radio1 ESSID: unknown
Access Point: 00:00:00:00:00:00
Mode: Unknown Channel: unknown (unknown) HT Mode: HT20
Center Channel 1: unknown 2: unknown
Tx-Power: unknown Link Quality: unknown/70
Signal: unknown Noise: unknown
Bit Rate: unknown
Encryption: unknown
Type: nl80211 HW Mode(s): 802.11ac/ax/n
Hardware: embedded [Qualcomm Atheros QCN6102/QCN6122]
TX power offset: none
Frequency offset: none
Supports VAPs: yes PHY name: phy1