Bug 215721 - ath11k: Recent WoW patches are breaking QCN9074
Summary: ath11k: Recent WoW patches are breaking QCN9074
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: network-wireless (show other bugs)
Hardware: All Linux
: P1 blocking
Assignee: Kalle Valo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-22 03:09 UTC by Tyler S
Modified: 2022-04-11 09:07 UTC (History)
2 users (show)

See Also:
Kernel Version: 5.15.30 + patchset from kvalo/ath.git
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Tyler S 2022-03-22 03:09:46 UTC
Hello,

I maintain a backport of patches from:
https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/log/drivers/net/wireless/ath

... to the 5.15.y stable kernel.

It looks like a recent set of patches for WoW broke QCN9074, but works fine on QCA6391. The error at boot on QCN9074 is failed to init wow: -22, as per below:

[Tue Mar 22 02:49:24 2022] ------------[ cut here ]------------
[Tue Mar 22 02:49:24 2022] WARNING: CPU: 3 PID: 93 at drivers/net/wireless/ath/ath11k/wow.c:813 ath11k_wow_init+0xd7/0xe0
[Tue Mar 22 02:49:24 2022] Modules linked in: hid_apple(E) hid_generic(E) usbhid(E) hid(E)
[Tue Mar 22 02:49:24 2022] CPU: 3 PID: 93 Comm: kworker/u8:1 Tainted: G            E     5.15.30x86j4105 #1
[Tue Mar 22 02:49:24 2022] Hardware name: Default string ODYSSEY-X86J4105/ODYSSEY-X86J4105, BIOS SD-BS-CJ41G-M-101-E 01/07/2020
[Tue Mar 22 02:49:24 2022] Workqueue: ath11k_qmi_driver_event ath11k_qmi_driver_event_work
[Tue Mar 22 02:49:24 2022] RIP: 0010:ath11k_wow_init+0xd7/0xe0
[Tue Mar 22 02:49:24 2022] Code: 3c 00 00 16 00 00 00 be 01 00 00 00 48 8b 4f 10 48 8b 49 40 48 89 81 e8 00 00 00 48 8b 07 48 8b 78 10 e8 8c 4a f0 ff 31 c0 c3 <0f> 0b b8 ea ff ff ff c3 00 83 ff 18 77 0c 48 63 c7 48 8b 04 c5 30
[Tue Mar 22 02:49:24 2022] RSP: 0018:ffffb64c001bfd90 EFLAGS: 00010246
[Tue Mar 22 02:49:24 2022] RAX: ffff9317b4f00968 RBX: ffff9317bce2a020 RCX: ffff9317b4f00960
[Tue Mar 22 02:49:24 2022] RDX: ffff9317b4f08540 RSI: 0000000000000000 RDI: ffff9317bce2a020
[Tue Mar 22 02:49:24 2022] RBP: ffff9317b4f00000 R08: 0000000000000008 R09: ffff9317ba8e2490
[Tue Mar 22 02:49:24 2022] R10: 0000000000000018 R11: 0000000000000004 R12: ffff9317bce2ad68
[Tue Mar 22 02:49:24 2022] R13: ffff9317bce2a030 R14: ffff9317b4f00000 R15: 0000000000000000
[Tue Mar 22 02:49:24 2022] FS:  0000000000000000(0000) GS:ffff9319f7d80000(0000) knlGS:0000000000000000
[Tue Mar 22 02:49:24 2022] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[Tue Mar 22 02:49:24 2022] CR2: 00007ff3dea614a0 CR3: 0000000048610000 CR4: 0000000000350ee0
[Tue Mar 22 02:49:24 2022] Call Trace:
[Tue Mar 22 02:49:24 2022]  <TASK>
[Tue Mar 22 02:49:24 2022]  ath11k_mac_register+0x8e9/0xc40
[Tue Mar 22 02:49:24 2022]  ath11k_core_qmi_firmware_ready+0x36c/0x520
[Tue Mar 22 02:49:24 2022]  ath11k_qmi_driver_event_work+0x263/0x360
[Tue Mar 22 02:49:24 2022]  process_one_work+0x204/0x3f0
[Tue Mar 22 02:49:24 2022]  worker_thread+0x280/0x440
[Tue Mar 22 02:49:24 2022]  kthread+0x146/0x150
[Tue Mar 22 02:49:24 2022]  ? process_one_work+0x3f0/0x3f0
[Tue Mar 22 02:49:24 2022]  ? kthread_blkcg+0x30/0x30
[Tue Mar 22 02:49:24 2022]  ret_from_fork+0x1f/0x30
[Tue Mar 22 02:49:24 2022]  </TASK>
[Tue Mar 22 02:49:24 2022] ---[ end trace 6e10635947c568c3 ]---
[Tue Mar 22 02:49:24 2022] ath11k_pci 0000:01:00.0: failed to init wow: -22
[Tue Mar 22 02:49:24 2022] ath11k_pci 0000:01:00.0: failed register the radio with mac80211: -22
[Tue Mar 22 02:49:24 2022] ath11k_pci 0000:01:00.0: failed to create pdev core: -22

Here is my hardware/firmware info:
[Tue Mar 22 02:49:21 2022] ath11k_pci 0000:01:00.0: BAR 0: assigned [mem 0x91200000-0x913fffff 64bit]
[Tue Mar 22 02:49:21 2022] ath11k_pci 0000:01:00.0: enabling device (0000 -> 0002)
[Tue Mar 22 02:49:21 2022] ath11k_pci 0000:01:00.0: MSI vectors: 16
[Tue Mar 22 02:49:21 2022] ath11k_pci 0000:01:00.0: qcn9074 hw1.0
[Tue Mar 22 02:49:22 2022] ath11k_pci 0000:01:00.0: chip_id 0x0 chip_family 0x0 board_id 0xff soc_id 0xffffffff
[Tue Mar 22 02:49:22 2022] ath11k_pci 0000:01:00.0: fw_version 0x2506844c fw_build_timestamp 2021-07-13 10:24 fw_build_id 

This is 'WLAN.HK.2.5.0.1-01100-QCAHKSWPL_SILICONZ-1'.

The firmware that *works* for *QCA6391* is 'WLAN.HST.1.0.1-05266-QCAHSTSWPLZ_V2_TO_X86-1'.
Comment 1 Kalle Valo 2022-03-22 05:15:06 UTC
Thanks for the report, we are looking into it.
Comment 2 Kalle Valo 2022-04-01 13:21:30 UTC
This patch should fix it.

https://patchwork.kernel.org/project/linux-wireless/patch/20220331073110.3846-1-quic_nmaran@quicinc.com/

If you can, please test.
Comment 3 Tyler S 2022-04-03 15:08:04 UTC
Yep, indeed fixes the issue - thanks!

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