Bug 196919

Summary: ath10k crashes on insmod
Product: Drivers Reporter: Matteo Croce (rootkit85)
Component: network-wirelessAssignee: drivers_network (drivers_network)
Status: RESOLVED CODE_FIX    
Severity: high CC: lorenzo.bianconi83
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 4.13 Subsystem:
Regression: Yes Bisected commit-id:

Description Matteo Croce 2017-09-12 09:55:29 UTC
ath10k firmware crashes on load, firmware version is 10.2.4.70.63-2
crash does not happen with older version like 10.2.4.70.61-2 or 10.2.4-1.0-00029

# md5sum /lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
978c98e921326e5bbb0301d7783bdb1d  /lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
# uname -a
Linux apu 4.13.0-apu #7 SMP Wed Sep 6 16:29:20 CEST 2017 x86_64 GNU/Linux
# modprobe ath10k_pci
ath10k_pci 0000:04:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
ath10k_pci 0000:04:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
ath10k_pci 0000:04:00.0: kconfig debug 1 debugfs 1 tracing 0 dfs 0 testmode 0
ath10k_pci 0000:04:00.0: firmware ver 10.2.4.70.63-2 api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 4ff9e14d
ath10k_pci 0000:04:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
ath10k_pci 0000:04:00.0: firmware crashed! (uuid 87c0dcc0-8c1e-41f0-b122-f7650a329633)
ath10k_pci 0000:04:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
ath10k_pci 0000:04:00.0: kconfig debug 1 debugfs 1 tracing 0 dfs 0 testmode 0
ath10k_pci 0000:04:00.0: firmware ver 10.2.4.70.63-2 api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 4ff9e14d
ath10k_pci 0000:04:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
ath10k_pci 0000:04:00.0: htt-ver 0.0 wmi-op 5 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1
ath10k_pci 0000:04:00.0: firmware register dump:
ath10k_pci 0000:04:00.0: [00]: 0x4100016C 0x000015B3 0x009BFF84 0x00955B31
ath10k_pci 0000:04:00.0: [04]: 0x009BFF84 0x00060130 0x00000013 0x00000000
ath10k_pci 0000:04:00.0: [08]: 0x009C8EA4 0x00007170 0x00000001 0x00435300
ath10k_pci 0000:04:00.0: [12]: 0x00000009 0x00000000 0x00958360 0x0095836B
ath10k_pci 0000:04:00.0: [16]: 0x00958080 0x0094078E 0x00000000 0x00000000
ath10k_pci 0000:04:00.0: [20]: 0x409BFF84 0x0040AB44 0x004101E0 0x0000000C
ath10k_pci 0000:04:00.0: [24]: 0x809BFE1C 0x0040ABA4 0x00000006 0xC09BFF84
ath10k_pci 0000:04:00.0: [28]: 0x8098E907 0x0040ABD4 0x009C8E7C 0x0000016B
ath10k_pci 0000:04:00.0: [32]: 0x8098FD3B 0x0040ABF4 0x004209EC 0x00420B0C
ath10k_pci 0000:04:00.0: [36]: 0x8098A7DA 0x0040AC34 0x00420AA0 0x004062DC
ath10k_pci 0000:04:00.0: [40]: 0x80988785 0x0040AC94 0x00410760 0x00400000
ath10k_pci 0000:04:00.0: [44]: 0x8098AEC8 0x0040AD44 0x00410760 0x00000001
ath10k_pci 0000:04:00.0: [48]: 0x809B67C4 0x0040AD84 0x00410760 0x00411344
ath10k_pci 0000:04:00.0: [52]: 0x809B293C 0x0040ADA4 0x00400000 0x00416FA4
ath10k_pci 0000:04:00.0: [56]: 0x809C0C3D 0x0040ADE4 0x0040AE08 0x00412118
ath10k_pci 0000:04:00.0: Copy Engine register dump:
ath10k_pci 0000:04:00.0: [00]: 0x00057400   0   0   3   3
ath10k_pci 0000:04:00.0: [01]: 0x00057800   3   3   8   9
ath10k_pci 0000:04:00.0: [02]: 0x00057c00   1   1   0   1
ath10k_pci 0000:04:00.0: [03]: 0x00058000   1   1   2   1
ath10k_pci 0000:04:00.0: [04]: 0x00058400   0   0  40   0
ath10k_pci 0000:04:00.0: [05]: 0x00058800   0   0   0   0
ath10k_pci 0000:04:00.0: [06]: 0x00058c00   0   0   0   0
ath10k_pci 0000:04:00.0: [07]: 0x00059000   0   0   0   0
Comment 1 Lorenzo Bianconi 2017-09-12 10:25:31 UTC
Same issue on opensuse Tumbleweed, chipset QCA9880, kernel v4.12. The fw crashes at bootstrap and the wifi interface is not properly recognized