[LEDE-DEV] ath10k QCA9984 device bringup

K.Mani sailormani at gmail.com
Fri Dec 30 10:34:50 PST 2016


In openWRT branch "BARRIER BREAKER", I'd backported compat-4.4.2-1
running on linux-3.10.20 kernel on Alpine-SOC.
On compat-4.4.2-1 I've ported the ath10k driver supporting the atk10k
chip QCA9984 from linux-4.9-rc8.
But driver is reporting firmware crash.

--Kernel log

root at OpenWrt:/# insmod ath10k_core.ko skip_otp=1 debug_mask=0xffffffff
root at OpenWrt:/# insmod ath10k_pci.ko
[  318.919946] ath10k_pci 0002:01:00.0: pci probe 168c:0046 168c:cafe
[  318.926173] ath10k_pci 0002:01:00.0: boot pci_mem 0xe1c00000
[  318.931989] ath10k_pci 0002:01:00.0: pci irq msi interrupts 1
irq_mode 0 reset_mode 0
[  318.939825] ath10k_pci 0002:01:00.0: boot qca99x0 chip reset
[  318.945484] ath10k_pci 0002:01:00.0: boot cold reset
[  319.002478] ath10k_pci 0002:01:00.0: boot cold reset complete
[  319.008211] ath10k_pci 0002:01:00.0: boot waiting target to initialise
[  319.014736] ath10k_pci 0002:01:00.0: boot target indicator 2
[  319.020385] ath10k_pci 0002:01:00.0: boot target initialised
[  319.026039] ath10k_pci 0002:01:00.0: boot qca99x0 chip reset complete (cold)
[  319.033120] ath10k_pci 0002:01:00.0: boot hif power up
root at OpenWrt:/# [  319.038259] ath10k_pci 0002:01:00.0: boot qca99x0 chip reset
[  319.045290] ath10k_pci 0002:01:00.0: boot cold reset
[  319.102480] ath10k_pci 0002:01:00.0: boot cold reset complete
[  319.108215] ath10k_pci 0002:01:00.0: boot waiting target to initialise
[  319.114741] ath10k_pci 0002:01:00.0: boot target indicator 2
[  319.120392] ath10k_pci 0002:01:00.0: boot target initialised
[  319.126046] ath10k_pci 0002:01:00.0: boot qca99x0 chip reset complete (cold)
[  319.133100] ath10k_pci 0002:01:00.0: boot init ce src ring id 0
entries 16 base_addr dbf78000
[  319.141617] ath10k_pci 0002:01:00.0: boot ce dest ring id 1 entries
512 base_addr dbdb4000
[  319.149881] ath10k_pci 0002:01:00.0: boot ce dest ring id 2 entries
128 base_addr dbe82000
[  319.158146] ath10k_pci 0002:01:00.0: boot init ce src ring id 3
entries 32 base_addr dbe83000
[  319.166677] ath10k_pci 0002:01:00.0: boot init ce src ring id 4
entries 4096 base_addr db880000
[  319.175375] ath10k_pci 0002:01:00.0: boot ce dest ring id 5 entries
512 base_addr dc708000
[  319.183644] ath10k_pci 0002:01:00.0: boot init ce src ring id 7
entries 2 base_addr db88e000
[  319.192073] ath10k_pci 0002:01:00.0: boot ce dest ring id 7 entries
2 base_addr db88d000
[  319.200164] ath10k_pci 0002:01:00.0: boot ce dest ring id 8 entries
128 base_addr db88c000
[  319.219511] ath10k_pci 0002:01:00.0: bmi get target info
[  319.225257] ath10k_pci 0002:01:00.0: Hardware name qca9984/qca9994
hw1.0 version 0x1000000
procd: Could not find firmware /lib/firmware/ath10k/cal-pci-0002:01:00.0.bin
[  379.312559] ath10k_pci 0002:01:00.0: trying fw api 5
[  379.318038] ath10k_pci 0002:01:00.0: found fw version 10.4-3.3-00092
[  379.324401] ath10k_pci 0002:01:00.0: found fw timestamp 1475058219
[  379.330569] ath10k_pci 0002:01:00.0: found otp image ie (9000 B)
[  379.336575] ath10k_pci 0002:01:00.0: found fw image ie (374947 B)
[  379.342668] ath10k_pci 0002:01:00.0: found firmware features ie (2 B)
[  379.349094] ath10k_pci 0002:01:00.0: Enabling feature bit: 3
[  379.354750] ath10k_pci 0002:01:00.0: features
[  379.359099] ath10k_pci 0002:01:00.0: 00000000: 08 00 00 00
                            ....
[  379.368220] ath10k_pci 0002:01:00.0: found fw ie wmi op version 6
[  379.374308] ath10k_pci 0002:01:00.0: found fw ie htt op version 4
[  379.380387] ath10k_pci 0002:01:00.0: found fw code swap image ie (225340 B)
[  379.387341] ath10k_pci 0002:01:00.0: using fw api 5
[  379.392210] ath10k_pci 0002:01:00.0: boot upload otp to 0x1234 len
9000 for board id
[  379.399945] ath10k_pci 0002:01:00.0: bmi fast download address
0x1234 buffer 0xe1676038 length 9000
[  379.408977] ath10k_pci 0002:01:00.0: bmi lz stream start address 0x1234
[  379.415603] ath10k_pci 0002:01:00.0: bmi lz data buffer 0xe1676038
length 9000
[  379.451626] ath10k_pci 0002:01:00.0: bmi lz stream start address 0x0
[  379.457985] ath10k_pci 0002:01:00.0: bmi execute address 0x1234 param 0x10
[  380.857006] ath10k_pci 0002:01:00.0: bmi execute result 0x400
[  380.862749] ath10k_pci 0002:01:00.0: boot get otp board id result
0x00000400 board_id 1 chip_id 0
[  380.871603] ath10k_pci 0002:01:00.0: boot using board name
'bus=pci,bmi-chip-id=0,bmi-board-id=1'
[  380.880468] ath10k_pci 0002:01:00.0: board name
[  380.884999] ath10k_pci 0002:01:00.0: 00000000: 62 75 73 3d 70 63 69
2c 62 6d 69 2d 63 68 69 70  bus=pci,bmi-chip
[  380.895159] ath10k_pci 0002:01:00.0: 00000010: 2d 69 64 3d 30 2c 62
6d 69 2d 62 6f 61 72 64 2d  -id=0,bmi-board-
[  380.905317] ath10k_pci 0002:01:00.0: 00000020: 69 64 3d 31
                            id=1
[  380.914436] ath10k_pci 0002:01:00.0: boot found match for name
'bus=pci,bmi-chip-id=0,bmi-board-id=1'
[  380.923640] ath10k_pci 0002:01:00.0: boot found board data for
'bus=pci,bmi-chip-id=0,bmi-board-id=1'
[  380.932845] ath10k_pci 0002:01:00.0: using board api 2
[  380.938128] ath10k_pci 0002:01:00.0: bmi start
[  380.942573] ath10k_pci 0002:01:00.0: bmi write address 0x400800 length 4
[  380.949269] ath10k_pci 0002:01:00.0: bmi read address 0x400810 length 4
[  380.955937] ath10k_pci 0002:01:00.0: bmi write address 0x400810 length 4
[  380.962639] ath10k_pci 0002:01:00.0: bmi write address 0x400844 length 4
[  380.969334] ath10k_pci 0002:01:00.0: bmi write address 0x400904 length 4
[  380.976036] ath10k_pci 0002:01:00.0: bmi write address 0x4008bc length 4
[  380.982739] ath10k_pci 0002:01:00.0: boot found firmware code swap binary
[  380.989513] ath10k_pci 0002:01:00.0: bmi write address 0x422108 length 208
[  380.996397] ath10k_pci 0002:01:00.0: boot uploading firmware image
e1678368 len 374947 mode normal
[  381.005343] ath10k_pci 0002:01:00.0: bmi fast download address
0x1234 buffer 0xe1678368 length 374947
[  381.014549] ath10k_pci 0002:01:00.0: bmi lz stream start address 0x1234
[  381.021157] ath10k_pci 0002:01:00.0: bmi lz data buffer 0xe1678368
length 374944
[  382.219428] ath10k_pci 0002:01:00.0: bmi lz data buffer 0xdf9d7e7c length 4
[  382.226397] ath10k_pci 0002:01:00.0: bmi lz stream start address 0x0
[  382.232755] ath10k_pci 0002:01:00.0: bmi write address 0x400814 length 4
[  382.239450] ath10k_pci 0002:01:00.0: pci hif get default pipe
[  382.245190] ath10k_pci 0002:01:00.0: pci hif map service
[  382.250491] ath10k_pci 0002:01:00.0: bmi done
[  382.254855] ath10k_pci 0002:01:00.0: htt tx max num pending tx 1424
[  382.261159] ath10k_pci 0002:01:00.0: firmware crashed! (uuid n/a)
[  382.267253] ath10k_pci 0002:01:00.0: qca9984/qca9994 hw1.0
(0x01000000, 0x00000000 bmi 0:1) fw 10.4-3.3-00092 fwapi 5 bdapi 2
htt-ver 0.0 wp
[  382.285728] ath10k_pci 0002:01:00.0: debug 1 debugfs 0 tracing 0
dfs 0 testmode 0
[  382.295217] ath10k_pci 0002:01:00.0: firmware register dump:
[  382.300863] ath10k_pci 0002:01:00.0: [00]: 0x01000000 0x000015B3
0x00961CA5 0x00975B31
[  382.308770] ath10k_pci 0002:01:00.0: [04]: 0x00961CA5 0x00060330
0x0000000E 0x00000000
[  382.316677] ath10k_pci 0002:01:00.0: [08]: 0x00400600 0x00400000
0x00000000 0x00418CB0
[  382.324584] ath10k_pci 0002:01:00.0: [12]: 0x00000009 0x00000000
0x00973D28 0x00973D33
[  382.332490] ath10k_pci 0002:01:00.0: [16]: 0x00961CA5 0x009606CA
0x00000000 0x00000000
[  382.340390] ath10k_pci 0002:01:00.0: [20]: 0x40961CA5 0x004068AC
0x00010000 0x0000003F
[  382.348296] ath10k_pci 0002:01:00.0: [24]: 0x809CF7A8 0x0040690C
0x00000038 0xC0961CA5
[  382.356202] ath10k_pci 0002:01:00.0: [28]: 0x8098145F 0x0040693C
0x0041778C 0x00400000
[  382.364109] ath10k_pci 0002:01:00.0: [32]: 0x800DB900 0x004069AC
0x00000004 0x00414D90
[  382.372009] ath10k_pci 0002:01:00.0: [36]: 0x800C383A 0x004069DC
0x00414C00 0x00400000
[  382.379915] ath10k_pci 0002:01:00.0: [40]: 0x809800A3 0x00406A0C
0x00414C10 0x009C45C8
[  382.387821] ath10k_pci 0002:01:00.0: [44]: 0x8098003A 0x00406A5C
0x00400000 0x00400600
[  382.395727] ath10k_pci 0002:01:00.0: [48]: 0x809607C1 0x00406A8C
0xD8400100 0x00406A9C
[  382.403633] ath10k_pci 0002:01:00.0: [52]: 0x80960892 0x00406AAC
0x00000000 0x00400000
[  382.411533] ath10k_pci 0002:01:00.0: [56]: 0x80960E39 0x00406ACC
0x00400000 0x00400600
[  382.419494] ath10k_pci 0002:01:00.0: htt rx ring size 2048 fill_level 1023
[  382.426366] ath10k_pci 0002:01:00.0: boot hif start
[  383.422483] ath10k_pci 0002:01:00.0: failed to receive control
response completion, polling..
[  383.430990] ath10k_pci 0002:01:00.0: pci hif send complete check
[  383.436996] ath10k_pci 0002:01:00.0: pci hif send complete check
[  383.443001] ath10k_pci 0002:01:00.0: pci hif send complete check
[  383.448996] ath10k_pci 0002:01:00.0: pci hif send complete check
[  383.454997] ath10k_pci 0002:01:00.0: pci hif send complete check
[  383.460992] ath10k_pci 0002:01:00.0: pci hif send complete check
[  383.466994] ath10k_pci 0002:01:00.0: pci hif send complete check
[  383.472995] ath10k_pci 0002:01:00.0: pci hif send complete check
[  383.478989] ath10k_pci 0002:01:00.0: pci hif send complete check
[  383.484989] ath10k_pci 0002:01:00.0: pci hif send complete check
[  383.490983] ath10k_pci 0002:01:00.0: pci hif send complete check
[  383.496983] ath10k_pci 0002:01:00.0: pci hif send complete check
[  384.502484] ath10k_pci 0002:01:00.0: ctl_resp never came in (-110)
[  384.508651] ath10k_pci 0002:01:00.0: failed to connect to HTC: -110
[  384.514913] ath10k_pci 0002:01:00.0: boot hif stop
[  384.520426] ath10k_pci 0002:01:00.0: could not init core (-110)
[  384.526436] ath10k_pci 0002:01:00.0: boot hif power down
[  384.531736] ath10k_pci 0002:01:00.0: could not probe fw (-110)
[  384.592481] ath10k_pci 0002:01:00.0: cannot restart a device that
hasn't been started

Can someone guide me.

Thanks
Mani



More information about the Lede-dev mailing list