update firmware crash issue ..

H.Jin Ko ymir.kr at gmail.com
Wed Jul 17 21:10:19 EDT 2013


2013/7/16 H.Jin Ko <ymir.kr at gmail.com>:
> 2013/7/16 Michal Kazior <michal.kazior at tieto.com>:
>> On 16 July 2013 09:33, Hwan Jin Ko <ymir.kr at gmail.com> wrote:
>>> Hello!
>>>
>>> I just try to use QCA9880 mini pcie card with ath10k drivers in git source tree.
>>> When I type iwlist command with scanning option, kernel shows firmware
>>> crashed message and not worked.
>>>
>>> Firmware is from https://github.com/kvalo/ath10k-firmware
>>>
>>> <snip>
>>> ~ # iwlist wlan2 scanning
>>> [ 100.100067] ath10k: firmware crashed!
>>> [ 100.103960] ath10k: hardware name qca988x hw2.0 version 0x4100016c
>>> [ 100.110674] ath10k: firmware version: 1.0.0.636
>>> [ 100.116692] ath10k: target register Dump Location: 0x00401930
>>> [ 100.123928] ath10k: target Register Dump
>>> [ 100.128285] ath10k: [00]: 0x4100016C 0x00000000 0x009B58F2 0x00000000
>>> [ 100.135309] ath10k: [04]: 0x00000000 0x00000000 0x00000000 0x00000000
>>> [ 100.142288] ath10k: [08]: 0x00000000 0x00000000 0x00000000 0x00000000
>>> [ 100.149256] ath10k: [12]: 0x00000000 0x00000000 0x00000000 0x00000000
>>> [ 100.156048] ath10k: [16]: 0x00000000 0x00000000 0x00000000 0x009B58F2
>>> [ 100.163018] ath10k: [20]: 0x00000000 0x00401930 0x00000000 0x00000000
>>> [ 100.170048] ath10k: [24]: 0x00000000 0x00000000 0x00000000 0x00000000
>>> [ 100.176969] ath10k: [28]: 0x00000000 0x00000000 0x00000000 0x00000000
>>> [ 100.183957] ath10k: [32]: 0x00000000 0x00000000 0x00000000 0x00000000
>>> [ 100.190950] ath10k: [36]: 0x00000000 0x00000000 0x00000000 0x00000000
>>> [ 100.197859] ath10k: [40]: 0x00000000 0x00000000 0x00000000 0x00000000
>>> [ 100.204834] ath10k: [44]: 0x00000000 0x00000000 0x00000000 0x00000000
>>> [ 100.211759] ath10k: [48]: 0x00000000 0x00000000 0x00000000 0x00000000
>>> [ 100.218798] ath10k: [52]: 0x00000000 0x00000000 0x00000000 0x00000000
>>> [ 100.225757] ath10k: [56]: 0x00000000 0x00000000 0x00000000 0x00000000
>>
>> Hi Hwan,
>>
>> First of all - are you using a vanilla kernel or do you have some
>> custom patches applied?
>>
>> This dump looks familiar to me (considering the circumstances) as if
>> the scan channel list hasn't been sent to the firmware. This can
>> happen if there's ath regulatory domain hack from OpenWRT applied.
>>
>> If that is not the case then I'ld like to ask you to gather some more logs.
>>
>> You can either gather printk logs, by making sure you load the
>> ath10k_core with `modprobe ath10k_core debug_mask=0xFFFFFFFF`, or you
>> can gather traces with `trace-cmd record -e ath10k` (traces need to be
>> enabled in the kernel and ath10k).
>>
>>
>> Pozdrawiam / Best regards,
>> Michał Kazior.
>
>
> Hi~!
>
> Ah, you're right..
> I'm sorry that I quite forgot to mention about it first.
> I added more 5GHz channels to ath9k_5ghz_chantable[]
> and ath10k_5ghz_chantable[] and overrided regdomain.
>
> I re-tried scanning with vanilla kernel and found it worked.
> Maybe I need to find another way to expand channel tables.
> I think trace log is not helpful in this case, but attached for future
> reference.
>
> Thx for your answer.

more update,

Just expanding channel table does not affect f/w crash,
but overriding regulatory domain causes f/w crash.
Interesting thing is that some flags of channels are changed after AP
scan. (with vanilla kernel)

<snip>
~ # dmesg | grep -i ath
[    0.000000] Linux version 3.10.0-wl-ath+ (ymir at yggdrasil) (gcc
version 4.6.4 (crosstool-NG 1.18.0 - buildroot 2013.05) ) #4 SMP Wed
Jul 17 14:23:12 KST 2013
[    2.977860] ath: EEPROM regdomain: 0x0
[    2.981763] ath: EEPROM indicates default country code should be used
[    2.988354] ath: doing EEPROM country->regdmn map search
[    2.993817] ath: country maps to regdmn code: 0x3a
[    2.998759] ath: Country alpha2 being used: US
[    3.003354] ath: Regpair used: 0x3a
[    3.017371] ieee80211 phy0: Atheros AR9300 Rev:3 mem=0xf8080000, irq=18
[    3.033738] ath: EEPROM regdomain: 0x0
[    3.037644] ath: EEPROM indicates default country code should be used
[    3.044233] ath: doing EEPROM country->regdmn map search
[    3.049695] ath: country maps to regdmn code: 0x3a
[    3.054629] ath: Country alpha2 being used: US
[    3.059217] ath: Regpair used: 0x3a
[    3.073926] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xf8100000, irq=19
[    3.147716] ath10k_pci 0000:02:00.0: BAR 0: assigned [mem
0x80000000-0x801fffff 64bit]
[    3.156429] ath10k: MSI-X didn't succeed (1), trying MSI
[    3.161940] ath10k_pci 0000:02:00.0: irq 44 for MSI/MSI-X
[    3.167554] ath10k: MSI interrupt handling
[    3.198788] ath10k: Hardware name qca988x hw2.0 version 0x4100016c
[    4.364197] ath10k: UART prints disabled
[    4.371858] ath10k: firmware 1.0.0.636 booted
[    4.389612] ath: EEPROM regdomain: 0x0
[    4.393525] ath: EEPROM indicates default country code should be used
[    4.400109] ath: doing EEPROM country->regdmn map search
[    4.405561] ath: country maps to regdmn code: 0x3a
[    4.410497] ath: Country alpha2 being used: US
[    4.415082] ath: Regpair used: 0x3a
~ # iw list
Wiphy phy2
        max # scan SSIDs: 16
        .............
                Frequencies:
                        * 5180 MHz [36] (20.0 dBm) (passive scanning, no IBSS)
                        * 5200 MHz [40] (20.0 dBm) (passive scanning, no IBSS)
                        * 5220 MHz [44] (20.0 dBm) (passive scanning, no IBSS)
                        * 5240 MHz [48] (20.0 dBm) (passive scanning, no IBSS)
                        * 5260 MHz [52] (disabled)
                        * 5280 MHz [56] (disabled)
                        * 5300 MHz [60] (disabled)
                        * 5320 MHz [64] (disabled)
                        * 5500 MHz [100] (disabled)
                        * 5520 MHz [104] (disabled)
                        * 5540 MHz [108] (disabled)
                        * 5560 MHz [112] (disabled)
                        * 5580 MHz [116] (disabled)
                        * 5600 MHz [120] (disabled)
                        * 5620 MHz [124] (disabled)
                        * 5640 MHz [128] (disabled)
                        * 5660 MHz [132] (disabled)
                        * 5680 MHz [136] (disabled)
                        * 5700 MHz [140] (disabled)
                        * 5745 MHz [149] (20.0 dBm) (passive scanning, no IBSS)
                        * 5765 MHz [153] (20.0 dBm) (passive scanning, no IBSS)
                        * 5785 MHz [157] (20.0 dBm) (passive scanning, no IBSS)
                        * 5805 MHz [161] (20.0 dBm) (passive scanning, no IBSS)
                        * 5825 MHz [165] (20.0 dBm) (passive scanning, no IBSS)
        ............
~ # iwlist wlan2 scanning
wlan2     Scan completed :
          Cell 01 - Address: 20:E5:2A:06:D2:74
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=21/70  Signal level=-89 dBm
....
          Cell 13 - Address: 00:08:9F:DD:97:C0
                    Channel:161
                    Frequency:5.805 GHz (Channel 161)
                    Quality=57/70  Signal level=-53 dBm
....
~ #
~ # iw list
Wiphy phy2
        max # scan SSIDs: 16
        .........
                Frequencies:
                        * 5180 MHz [36] (20.0 dBm)
                        * 5200 MHz [40] (20.0 dBm)
                        * 5220 MHz [44] (20.0 dBm)
                        * 5240 MHz [48] (20.0 dBm) (passive scanning, no IBSS)
                        * 5260 MHz [52] (disabled)
                        * 5280 MHz [56] (disabled)
                        * 5300 MHz [60] (disabled)
                        * 5320 MHz [64] (disabled)
                        * 5500 MHz [100] (disabled)
                        * 5520 MHz [104] (disabled)
                        * 5540 MHz [108] (disabled)
                        * 5560 MHz [112] (disabled)
                        * 5580 MHz [116] (disabled)
                        * 5600 MHz [120] (disabled)
                        * 5620 MHz [124] (disabled)
                        * 5640 MHz [128] (disabled)
                        * 5660 MHz [132] (disabled)
                        * 5680 MHz [136] (disabled)
                        * 5700 MHz [140] (disabled)
                        * 5745 MHz [149] (20.0 dBm)
                        * 5765 MHz [153] (20.0 dBm)
                        * 5785 MHz [157] (20.0 dBm) (passive scanning, no IBSS)
                        * 5805 MHz [161] (20.0 dBm)
                        * 5825 MHz [165] (20.0 dBm) (passive scanning, no IBSS)
         ..........
</snip>



More information about the ath10k mailing list