ath11k: QCN9074: kernel panic after a few seconds in monitor mode
Hi,
I'm having issues using ath11k in monitor mode with QCN9074. Using a vanilla 6.0.1 kernel compiled from sources for an arm32 (v7) platform.
The kernel panics a few seconds after the driver has been loaded and the interface set in monitor mode. Do you have any hint on what goes wrong or is there anything I can do to help fix this ?
Thanks,
Florian
Script used to setup interface:
Quoted 6 lines
iw wlan0 set monitor control
sleep 2
ip link set wlan0 up
sleep 2
iw wlan0 set freq 5680 80MHz
sleep 2
uname -a
Quoted 1 line
Linux BV1-26804 6.0.1-xilinx #1 SMP PREEMPT Wed Oct 12 09:15:44 UTC 2022 armv7l GNU/Linux
lspci -mnn
Quoted 2 lines
00:00.0 "PCI bridge [0604]" "Xilinx Corporation [10ee]" "Device [7121]" "" ""
01:00.0 "Network controller [0280]" "Qualcomm [17cb]" "Device [1104]" -r01 "Qualcomm [17cb]" "Device [1104]"
Using firmware from linux-firmware, commit fdf1a65258522edf18a0a1768fbafa61ed07e598 find /lib/firmware/ath11k/ -type f | xargs md5sum
Quoted 3 lines
fcca36959c5f56f9f0fb7015083dc806 /lib/firmware/ath11k/QCN9074/hw1.0/m3.bin 668f53050a92db5b4281ae5f26c7e35d /lib/firmware/ath11k/QCN9074/hw1.0/board-2.bin 693ff3f4669e2c345c3a5446ca249406 /lib/firmware/ath11k/QCN9074/hw1.0/amss.bin
Dmesg's output:
Quoted 131 lines
pci 0000:01:00.0: reg
0x10: [mem 0x00000000-0x001fffff 64bit]
pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
pci 0000:01:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5.0 GT/s PCIe x1 link at 0000:00:00.0 (capable of 15.752 Gb/s with 8.0 GT/s PCIe x2 link) pci 0000:00:00.0: BAR 8: assigned [mem 0x80000000-0x801fffff]
pci 0000:01:00.0: BAR 0: assigned [mem 0x80000000-0x801fffff 64bit]
pci 0000:00:00.0: PCI bridge to [bus 01]
pci 0000:00:00.0: bridge window [mem 0x80000000-0x801fffff]ath11k_pci0000:01:00.0: BAR 0: assigned [mem 0x80000000-0x801fffff 64bit]
pci 0000:00:00.0: enabling device (0140 -> 0142)ath11k_pci0000:01:00.0: enabling device (0000 -> 0002)ath11k_pci0000:01:00.0: MSI vectors: 1ath11k_pci0000:01:00.0: qcn9074 hw1.0
NET: RegisteredPF_QIPCRTRprotocol family
mhi mhi0: Requested to power ON
mhi mhi0: Power on setup success
mhi mhi0: Wait for device to enter SBL or Mission modeath11k_pci0000:01:00.0:chip_id0x0chip_family0x0board_id0xffsoc_id0xffffffffath11k_pci0000:01:00.0:fw_version0x250a04b8fw_build_timestamp2021-12-20 06:41fw_build_idath11k_pci0000:01:00.0: leaving PCI ASPM disabled to avoid MHI M2 problems
8<--- cut here ---Unable to handle kernel NULL pointer dereference at virtual address 00000064 [00000064] *pgd=00000000 Internal error: Oops - BUG: 17 [#1] PREEMPT SMP ARM Modules linked in: qrtr_mhi qrtr ath11k_pci mhi ath11k qmi_helpers mac80211 libarc4 CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.0.1-xilinx #1 Hardware name: Xilinx Zynq Platform PC is at ath11k_hw_qcn9074_rx_desc_get_decap_type+0x0/0xc [ath11k] LR is at ath11k_dp_rx_deliver_msdu+0x98/0x364 [ath11k] pc : [<bf0be008>] lr : [<bf0b3658>] psr: 40000113sp :
c0c01c48ip :ca729c38fp : 08000080
r10: 04000080 r9 : 00000001 r8 :cba1b540
r7 : 00000000 r6 :ca729880r5 :cba1b540r4 :ca729a38
r3 :bf0be008r2 :cba1b540r1 : 00000000 r0 : 00000000
Flags: nZcv IRQs on FIQs on ModeSVC_32ISA ARM Segment none
Control:18c5387dTable:0784804aDAC: 00000051
Register r0 information: NULL pointer
Register r1 information: NULL pointer
Register r2 information: slabskbuff_head_cachestartcba1b540pointer offset 0 size 48 Register r3 information: 85-page vmalloc region starting at0xbf08f000allocated atload_module+0x978/0x1694Register r4 information: slab kmalloc-32k startca728000pointer offset 6712 size 32768 Register r5 information: slabskbuff_head_cachestartcba1b540pointer offset 0 size 48 Register r6 information: slab kmalloc-32k startca728000pointer offset 6272 size 32768 Register r7 information: NULL pointer
Register r8 information: slabskbuff_head_cachestartcba1b540pointer offset 0 size 48 Register r9 information: non-paged memory
Register r10 information: non-paged memory
Register r11 information: non-paged memory
Register r12 information: slab kmalloc-32k startca728000pointer offset 7224 size 32768 Process swapper/0 (pid: 0, stack limit =0xe8738c12)Stack: (0xc0c01c48 to 0xc0c02000)1c40: 00000000 00010000 00000000 00000000 00000000 00000001
1c60:c0c01ce4ee2f6c7300040088c1002c80cc43e540bf0b9f8ca000011300000000
1c80: 00000000ca729cb0dd0ec000c01e91acca729880c7960000ca729b0800000000
1ca0: 00000000bf0b9f9c00000000ca72988000000000cba9150000000001 00000000
1cc0: 00000000c7967c60ca729880ca729880ca729b0800000000 00000000cba1b540
1ce0: 00000001 04000080 08000080bf0b3ec4c0c01cec00000000ca729a38ee2f6c73
1d00: 00000000ca729880c7960000c7d3dd0000000000 00000000 00000001c796124c
1d20:c796124cbf0ba654cba1b540c7967c600000003fc7967c6000000000c0c03cc8
1d40: 00000001c0c01d7800000001ee2f6c730000003f00000040 00000000c796b000
1d60:c796000000000003 00000000c7967c6000000000bf0afc88c7cd9d00c0157350
1d80:c7cd9d00c0157370c0c03cc800000040c7967c6000000040c0c01e0bc0c01e14
1da0:0000012c00000000c7967c60bf0becc4c7967c6000000001 00000040c0c01e0b
1dc0:c0c01e140000012c00000000c05f86b0c7967c60c0c01e0bc7968320db7b7e40
1de0:c0b41e401ac76000c0c01e0cc05f89e000020000db7b800000010bc9c0c03cc8
1e00:c0c02d4000000000007b61f0c7968320c7969760c0c01e14c0c01e14ee2f6c73
1e20:c120591840000003 00000048c0b41100c0c075c00000000ac0c0208c00000101
1e40:c0c02080c010141cc1205900c0824e340420000200010bc800000004c0c02d40
1e60:c0c0208000000003c0c040fcc05689d860000013 ffffffffc0c01ed400000000
1e80:c0c075c000000000000000e5c011f3bcc05689d8c011f4a0c05689d8c0100ba8
1ea0: 00000000000000e51ac76000db7b7480db7b687875964280c0c356e000000000
1ec0: 000000007588900a00000000000000e5fffffff5c0c01ef0c05689b4c05689d8
1ee0: 60000013 ffffffff 00000051c05689a4c0c01f5b00000000000000e5c073bc94
1f00:0006770c00000000 00375191 00000000 00000000db7b6878c0c356e000000000
1f20: 00000001c0c03d58c0b40870c0c03d6000000000c0568ba4db7b6878c0c356e0
1f40:c0c03d10c014729c000000ecc0c03cc8c0c03cc8c0c03cc001000000ee2f6c73
1f60:c0c3f000000000ec00000002c0c03cc8c0c03cc000000000dbfffd80c0c3f000
1f80:c0b32a68c014741cc0c0baf0c073a1b4c0c3f06800000001c0c03cc8c0b00a54
1fa0:c0c3f068c0b00f84ffffffff ffffffff 00000000c0b006e800000000c0c03cc8
1fc0: 00000000c0b32a68ee296c7200000000 00000000c0b004200000005110c0387d
1fe0: 00000000060f0000413fc09018c5387d00000000 00000000 00000000 00000000
ath11k_hw_qcn9074_rx_desc_get_decap_type[ath11k] fromath11k_dp_rx_deliver_msdu+0x98/0x364[ath11k]ath11k_dp_rx_deliver_msdu[ath11k] fromath11k_dp_rx_mon_deliver+0x17c/0x398[ath11k]ath11k_dp_rx_mon_deliver[ath11k] fromath11k_dp_rx_process_mon_rings+0x2fc/0x3d0[ath11k]ath11k_dp_rx_process_mon_rings[ath11k] fromath11k_dp_service_srng+0x15c/0x264[ath11k]ath11k_dp_service_srng[ath11k] fromath11k_pcic_ext_grp_napi_poll+0x1c/0x7c[ath11k]ath11k_pcic_ext_grp_napi_poll[ath11k] from__napi_poll+0x28/0x14c
__napi_pollfromnet_rx_action+0x14c/0x274
net_rx_actionfrom__do_softirq+0x15c/0x1dc
__do_softirqfrom__irq_exit_rcu+0x80/0xcc
__irq_exit_rcufromirq_exit+0x8/0x10
irq_exitfrom__irq_svc+0x88/0xc8Exception stack(0xc0c01ea0 to 0xc0c01ee8)1ea0: 00000000
000000e51ac76000db7b7480db7b687875964280c0c356e000000000 1ec0: 000000007588900a00000000000000e5fffffff5c0c01ef0c05689b4c05689d81ee0: 60000013 ffffffff
__irq_svcfromcpuidle_enter_state+0x180/0x310cpuidle_enter_statefromcpuidle_enter+0x28/0x38
cpuidle_enterfromdo_idle+0x23c/0x260
do_idlefromcpu_startup_entry+0x18/0x1c
cpu_startup_entryfromrest_init+0xb0/0xcc
rest_initfromarch_post_acpi_subsys_init+0x0/0x8Code: e12fff1e e59000a4 e7e30150 e12fff1e (e5900064) ---[ end trace 0000000000000000 ]--- Kernel panic - not syncing: Fatal exception in interrupt CPU1: stopping CPU: 1 PID: 533 Comm: syslogd Tainted: G D 6.0.1-xilinx #1 Hardware name: Xilinx Zynq Platform unwind_backtrace from show_stack+0x10/0x14 show_stack from dump_stack_lvl+0x40/0x4c dump_stack_lvl from do_handle_IPI+0x7c/0x13c do_handle_IPI from ipi_handler+0x14/0x20 ipi_handler from handle_percpu_devid_irq+0x4c/0xe0 handle_percpu_devid_irq from handle_irq_desc+0x1c/0x2c handle_irq_desc from gic_handle_irq+0x68/0x78 gic_handle_irq from generic_handle_arch_irq+0x28/0x3c generic_handle_arch_irq from call_with_stack+0x18/0x20 call_with_stack from __irq_svc+0x98/0xc8 Exception stack(0xf4bc9f08 to 0xf4bc9f50)9f00:
c13bb90000000003c7f1a818000d801e00004000 00000067
9f20:0054d5acc0c03cc8f4bc9f7c0054d5ac00000067be92eba000000001f4bc9f589f40:c020af30c020af48600f0013ffffffff
__irq_svcfrom__fget_light+0x40/0x5c
__fget_lightfrom__fdget_pos+0x8/0x40
__fdget_posfromfdget_pos+0x10/0x28
fdget_posfromksys_write+0x2c/0xb4
ksys_writefromret_fast_syscall+0x0/0x54Exception stack(0xf4bc9fa8 to 0xf4bc9ff0) 9fa0: 0000006c 00000067 00000003 0054d5ac 00000067 00000000 9fc0: 0000006c 00000067 0054d5ac 00000004 0054c6d4 0000000c 00000004 be92eba0 9fe0: 00000004 be92ea88 b6e97a6b b6e246c6 ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---
Signature · 3 lines
ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k