Bug 216515

Summary: ath11k: IPQ8074: firmware 2.6.0.1 crashing on Xiaomi AX3600
Product: Drivers Reporter: Christian Marangi (Ansuel) (ansuelsmth)
Component: network-wirelessAssignee: drivers_network-wireless (drivers_network-wireless)
Status: NEW ---    
Severity: normal CC: ansuelsmth, kvalo, quic_rajkbhag, robimarko
Priority: P3    
Hardware: All   
OS: Linux   
Kernel Version: Linux version 5.15.45 (ansuel@Ansuel-xps) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.1.0 r19677-5eee67a72f) 12.1.0, GNU ld (GNU Binutils) 2.38) #0 SMP Thu Jun 16 09:07:19 2022 Subsystem:
Regression: No Bisected commit-id:
Attachments: pre-cal and borad data used to ax3600 to repro the firmware crash

Description Christian Marangi (Ansuel) 2022-09-22 19:20:41 UTC
Created attachment 301848 [details]
pre-cal and borad data used to ax3600 to repro the firmware crash

Exact kernel version. Is it a distro kernel or have you compiled it yourself? Any extra patches? Linux version 5.15.45. Openwrt firmware with commit 67efb6a66146ac80986de928197b8116b2421779
Host device information. Router Xiaomi AX3600 based on ipq8072a 
BIOS version.
How many times have you seen the bug and how many times did you try to reproduce it? The firmware crash is present every time and the crash log is always the same.

This is the crash from the firmware. Firmware WLAN.HK.2.5.0.1-01208-QCAHKSWPL_SILICONZ-1 correctly works and handle wifi.

[   17.974967] qcom-q6v5-wcss-pil cd00000.q6v5_wcss: fatal error received:
[   17.974967] QC Image Version: QC_IMAGE_VERSION_STRING=WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1
[   17.974967] Image Variant : IMAGE_VARIANT_STRING=8074.wlanfw.eval_v2Q
[   17.974967]
[   17.974967]     :Excep  :0 Exception detectedparam0 :zero, param1 :zero, param2 :zero.
[   17.974967] Thread ID      : 0x00000060  Thread name    : WLAN RT1  Process ID     : 0
[   17.974967] Register:
[   17.974967] SP : 0x4bfc93e0
[   17.974967] FP : 0x4bfc93f8
[   17.974967] PC : 0x4b18d338
[   17.974967] SSR : 0x00000001
[   17.974967] BADVA : 0x0028d127
[   17.974967] LR : 0x4b18d2b8
[   17.974967]
[   17.974967] Stack Dump
[   17.974967] from : 0x4bfc93e0
[   17.974967] to   : 0x4bfc9a20
[   17.974967]
[   18.021710] remoteproc remoteproc0: crash detected in cd00000.q6v5_wcss: type fatal error
[   18.044591] remoteproc remoteproc0: handling crash #1 in cd00000.q6v5_wcss
[   18.052002] remoteproc remoteproc0: recovering cd00000.q6v5_wcss
[   18.084966] remoteproc remoteproc0: stopped remote processor cd00000.q6v5_wcss

After this the firmware doesn't answer to any driver.
As an extra info the firmware crashed also with version 2.6.0.1 so the regression should be between 2.5.0.1 and 2.6.0.1.
Another router also based on ipq8074 hw 2.0 a QNAP 301w correctly works with 2.7.0.1 so there could be something specific with the xiaomi router that triggered the regression.

I attached the pre-cal and BDF file required to make the router correctly work.
Comment 1 Kalle Valo 2023-03-08 09:12:04 UTC
I wonder if this is something board file related?
Comment 2 Robert Marko 2023-03-08 09:55:07 UTC
It is, AX3600 has really old BDF that does not define regulatory regDbFlag nor regDbVersion so without external regdb.bin it will crash the FW as far as I know
Comment 3 Raj Kumar Bhagat 2023-05-09 07:56:32 UTC
We have tried to reproduce the FW crash in other HK (HK-14) board with the shared board data and cal-data with the Firmware version 2.7.0.1-01744, we do not see the crash reported.

Christian Marangi (Ansuel) Would you be able to share the q6 crash dump for this crash. This would help us to debug further. Also please share the dmesg log with boot log enabled for ath11k.
Comment 4 Christian Marangi (Ansuel) 2023-05-10 12:11:23 UTC
I'm happy to confirm that the regression is solved with firmware 2.9.

Are you still interested in bisecting this with 2.7?
Comment 5 Raj Kumar Bhagat 2023-05-10 13:41:25 UTC
Glad to hear things are working with the FW 2.9.

Can you please help with the FW version point us to the firmware used?