You are not logged in.

#1 2012-03-21 23:32:59

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 371

Wlan MAC in deep sleep. Please help debug

Hi,

I have begun experiencing a most distrubing error with my wlan0 recently (perhaps within the last week; at the most 14 days).  My wlan0 stops working and disconnect entirely from the system for some to me unknown reason.

Here is a bit from my /var/log/errors.log:

Mar 21 20:08:29 localhost kernel: [ 7479.211040] iwlwifi 0000:03:00.0: MAC is in deep sleep!. CSR_GP_CNTRL = 0xFFFFFFFF
Mar 21 20:08:31 localhost kernel: [ 7481.321124] iwlwifi 0000:03:00.0: Error sending REPLY_ADD_STA: time out after 2000ms.
Mar 21 20:08:31 localhost kernel: [ 7481.321129] iwlwifi 0000:03:00.0: Current CMD queue read_ptr 212 write_ptr 216
Mar 21 20:08:33 localhost kernel: [ 7483.321134] iwlwifi 0000:03:00.0: Error sending REPLY_ADD_STA: time out after 2000ms.
Mar 21 20:08:33 localhost kernel: [ 7483.321144] iwlwifi 0000:03:00.0: Current CMD queue read_ptr 212 write_ptr 219
Mar 21 20:08:35 localhost kernel: [ 7485.321132] iwlwifi 0000:03:00.0: Error sending REPLY_QOS_PARAM: time out after 2000ms.
Mar 21 20:08:35 localhost kernel: [ 7485.321142] iwlwifi 0000:03:00.0: Current CMD queue read_ptr 212 write_ptr 222
Mar 21 20:08:35 localhost kernel: [ 7485.321149] iwlwifi 0000:03:00.0: Failed to update QoS
Mar 21 20:08:37 localhost kernel: [ 7487.321168] iwlwifi 0000:03:00.0: Error sending REPLY_RXON: time out after 2000ms.
Mar 21 20:08:37 localhost kernel: [ 7487.321178] iwlwifi 0000:03:00.0: Current CMD queue read_ptr 212 write_ptr 225
Mar 21 20:08:37 localhost kernel: [ 7487.321186] iwlwifi 0000:03:00.0: Error clearing ASSOC_MSK on BSS (-110)
[Repeated x times]
...
Mar 21 20:08:51 localhost kernel: [ 7501.345062] iwlwifi 0000:03:00.0: No space in command queue
Mar 21 20:08:51 localhost kernel: [ 7501.345070] iwlwifi 0000:03:00.0: Restarting adapter queue is full
Mar 21 20:08:51 localhost kernel: [ 7501.345082] iwlwifi 0000:03:00.0: Error sending REPLY_ADD_STA: enqueue_hcmd failed: -28
Mar 21 20:08:51 localhost kernel: [ 7501.345094] ieee80211 phy0: failed to remove key (1, ff:ff:ff:ff:ff:ff) from hardware (-28)
Mar 21 20:08:52 localhost kernel: [ 7501.361358] iwlwifi 0000:03:00.0: MAC is in deep sleep!. CSR_GP_CNTRL = 0xFFFFFFFF
[Repeated  y times]
Mar 21 20:08:57 localhost kernel: [ 7507.418156] iwlwifi 0000:03:00.0: Could not load the INST uCode section
Mar 21 20:08:57 localhost kernel: [ 7507.418169] iwlwifi 0000:03:00.0: Failed to start RT ucode: -110

I have no idea what causes this and I do not know what it indicates.  In particular I do not know if this is a software failure or (worse) a hardware failure.  I have been downgraded by kernel and linux-firmware, but it does not seem to have solve the issue.

Does anybody know (i) what might have caused this? Or (ii) how to diagnose it further?

My system is a Thinkpad X200s with Intel Wifi.  Here is output from dmesg

$ dmesg | grep -i wifi
[    8.390471] Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree:
[    8.390525] iwlwifi 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[    8.390535] iwlwifi 0000:03:00.0: setting latency timer to 64
[    8.390574] iwlwifi 0000:03:00.0: pci_resource_len = 0x00002000
[    8.390576] iwlwifi 0000:03:00.0: pci_resource_base = ffffc900050fc000
[    8.390579] iwlwifi 0000:03:00.0: HW Revision ID = 0x0
[    8.390662] iwlwifi 0000:03:00.0: irq 46 for MSI/MSI-X
[    8.390705] iwlwifi 0000:03:00.0: Detected Intel(R) Ultimate N WiFi Link 5300 AGN, REV=0x24
[    8.390762] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
[    8.410097] iwlwifi 0000:03:00.0: device EEPROM VER=0x11e, CALIB=0x4
[    8.410100] iwlwifi 0000:03:00.0: Device SKU: 0Xf0
[    8.410109] iwlwifi 0000:03:00.0: Tunable channels: 13 802.11bg, 24 802.11a channels
[    8.432477] iwlwifi 0000:03:00.0: loaded firmware version 8.83.5.1 build 33692
[   17.569927] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
[   17.570357] iwlwifi 0000:03:00.0: Radio type=0x0-0x2-0x0
[   17.725860] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
[   17.726286] iwlwifi 0000:03:00.0: Radio type=0x0-0x2-0x0

Thanks in advance,
Rasmus


Arch x64 on Thinkpad X200s/W530

Offline

#2 2012-03-22 06:54:25

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Wlan MAC in deep sleep. Please help debug

Some searching around lead me to this (long thread), which suggests this might be an aspm related bug/issue.

Just for the sake of testing, could you try if the issue also occurs if you disable aspm (add "pcie_aspm=off" to your kernel line in your bootloader config)?

Last edited by Gcool (2012-03-22 06:56:15)


Burninate!

Offline

#3 2012-03-22 11:59:57

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 371

Re: Wlan MAC in deep sleep. Please help debug

I found the same bug report yesterday, which sounds pretty damn similar.  They are not able to 'go back' either, which is the weirdest part.  I will try a live USB a some point.

For now I have added the pcie_aspm=off switch to my boot line.  We'll se if it helps.  Previously, I have forced pcie_aspm on for better power-performance without any problems. . .

Thank,
Rasmus


Arch x64 on Thinkpad X200s/W530

Offline

Board footer

Powered by FluxBB