2022-10-10 12:53:38

by Sipos Csaba

[permalink] [raw]
Subject: ath11k: firmware crash above version 2.5.0.1 _01208 (IPQ8074)

Dear Kalle,

I tried the latest firmware available on your github account for
IPQ8074 on my Xiaomi AX6 router, and it produces a firmware crash
right after the Q6 processor tries to boot:

[ 7.503844] ath11k c000000.wifi: ipq8074 hw2.0
[ 7.504147] remoteproc remoteproc0: powering up cd00000.q6v5_wcss
[ 7.511424] remoteproc remoteproc0: Booting fw image
IPQ8074/q6_fw.mdt, size 668
[ 8.511575] remoteproc remoteproc0: remote processor
cd00000.q6v5_wcss is now up
[ 8.517199] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 8.555705] ath11k c000000.wifi: qmi ignore invalid mem req type 3
[ 8.563181] ath11k c000000.wifi: chip_id 0x0 chip_family 0x0
board_id 0xff soc_id 0xffffffff
[ 8.563231] ath11k c000000.wifi: fw_version 0x270204a5
fw_build_timestamp 2022-08-04 13:05 fw_build_id
WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1
...................................
[ 13.813010] qcom-q6v5-wcss-pil cd00000.q6v5_wcss: fatal error received:
[ 13.813010] QC Image Version:
QC_IMAGE_VERSION_STRING=WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1
[ 13.813010] Image Variant : IMAGE_VARIANT_STRING=8074.wlanfw.eval_v2Q
[ 13.813010]
[ 13.813010] :Excep :0 Exception detectedparam0 :zero, param1
:zero, param2 :zero.
[ 13.813010] Thread ID : 0x00000069 Thread name : WLAN RT0
Process ID : 0
[ 13.813010] Register:
[ 13.813010] SP : 0x4bfacdc0
[ 13.813010] FP : 0x4bfacdd8
[ 13.813010] PC : 0x4b18d338
[ 13.813010] SSR : 0x00000001
[ 13.813010] BADVA : 0x009c9d7e
[ 13.813010] LR : 0x4b18d2b8
[ 13.813010]
[ 13.813010] Stack Dump
[ 13.813010] from : 0x4bfacdc0
[ 13.813010] to : 0x4bfad400
[ 13.813010]
[ 13.860940] remoteproc remoteproc0: crash detected in
cd00000.q6v5_wcss: type fatal error
[ 13.881901] remoteproc remoteproc0: handling crash #1 in cd00000.q6v5_wcss
[ 13.889965] remoteproc remoteproc0: recovering cd00000.q6v5_wcss
[ 13.922662] remoteproc remoteproc0: stopped remote processor
cd00000.q6v5_wcss

Kernel is 5.15.71
ath11k is almost up to date (I believe only the last 2 or 3 commits
are missing compared to 'ath-next')

I also tried with firmware 2.6.0.1-00861, it yields the same firmware crash.

Firmware 2.5.0.1-01208 is the last one that works properly.

There are others who also experience the same firmware crash with the
same device.

Can you please help us with this?

Regards,
Csaba


2022-10-15 21:30:36

by Sipos Csaba

[permalink] [raw]
Subject: Re: ath11k: firmware crash above version 2.5.0.1 _01208 (IPQ8074)

Dear Kalle,

To add to this issue:

The suspicion is that either the BDF or the CAL syntax might have
changed as the firmware crashes really early (5 seconds after load),
so I tried the BDF released on codelinaro for FW 2.7, and that yields
the same crash. Note that if I use the same 2.7 BDF with FW 2.5, there
is no crash.

As FW 2.5 runs perfectly fine on the same HW, kernel and ath11k
revision where FW 2.6 and 2.7 crashes, everything points towards a FW
/ BDF / CAL interoperability or some sort of syntax related issue.

If someone from QCA can take a look at the BDF and CAL of the device,
that would be a big step forward. Maybe a flag or two needs to be
changed. Note that the device's current BDF and CAL was generated with
template 5.0.5, so fairly old. Please let me know and I can attach
both files.

If any more information is needed, I am happy to help.

Regards,
Csaba

Sipos Csaba <[email protected]> ezt írta (időpont: 2022. okt. 10., H, 14:33):
>
> Dear Kalle,
>
> I tried the latest firmware available on your github account for
> IPQ8074 on my Xiaomi AX6 router, and it produces a firmware crash
> right after the Q6 processor tries to boot:
>
> [ 7.503844] ath11k c000000.wifi: ipq8074 hw2.0
> [ 7.504147] remoteproc remoteproc0: powering up cd00000.q6v5_wcss
> [ 7.511424] remoteproc remoteproc0: Booting fw image
> IPQ8074/q6_fw.mdt, size 668
> [ 8.511575] remoteproc remoteproc0: remote processor
> cd00000.q6v5_wcss is now up
> [ 8.517199] kmodloader: done loading kernel modules from /etc/modules.d/*
> [ 8.555705] ath11k c000000.wifi: qmi ignore invalid mem req type 3
> [ 8.563181] ath11k c000000.wifi: chip_id 0x0 chip_family 0x0
> board_id 0xff soc_id 0xffffffff
> [ 8.563231] ath11k c000000.wifi: fw_version 0x270204a5
> fw_build_timestamp 2022-08-04 13:05 fw_build_id
> WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1
> ...................................
> [ 13.813010] qcom-q6v5-wcss-pil cd00000.q6v5_wcss: fatal error received:
> [ 13.813010] QC Image Version:
> QC_IMAGE_VERSION_STRING=WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1
> [ 13.813010] Image Variant : IMAGE_VARIANT_STRING=8074.wlanfw.eval_v2Q
> [ 13.813010]
> [ 13.813010] :Excep :0 Exception detectedparam0 :zero, param1
> :zero, param2 :zero.
> [ 13.813010] Thread ID : 0x00000069 Thread name : WLAN RT0
> Process ID : 0
> [ 13.813010] Register:
> [ 13.813010] SP : 0x4bfacdc0
> [ 13.813010] FP : 0x4bfacdd8
> [ 13.813010] PC : 0x4b18d338
> [ 13.813010] SSR : 0x00000001
> [ 13.813010] BADVA : 0x009c9d7e
> [ 13.813010] LR : 0x4b18d2b8
> [ 13.813010]
> [ 13.813010] Stack Dump
> [ 13.813010] from : 0x4bfacdc0
> [ 13.813010] to : 0x4bfad400
> [ 13.813010]
> [ 13.860940] remoteproc remoteproc0: crash detected in
> cd00000.q6v5_wcss: type fatal error
> [ 13.881901] remoteproc remoteproc0: handling crash #1 in cd00000.q6v5_wcss
> [ 13.889965] remoteproc remoteproc0: recovering cd00000.q6v5_wcss
> [ 13.922662] remoteproc remoteproc0: stopped remote processor
> cd00000.q6v5_wcss
>
> Kernel is 5.15.71
> ath11k is almost up to date (I believe only the last 2 or 3 commits
> are missing compared to 'ath-next')
>
> I also tried with firmware 2.6.0.1-00861, it yields the same firmware crash.
>
> Firmware 2.5.0.1-01208 is the last one that works properly.
>
> There are others who also experience the same firmware crash with the
> same device.
>
> Can you please help us with this?
>
> Regards,
> Csaba