Bug 20812 - iwlagn reports "Microcode SW error detected" on WPA2 access point
Summary: iwlagn reports "Microcode SW error detected" on WPA2 access point
Status: CLOSED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: network-wireless (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_network-wireless@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks: 16444
  Show dependency tree
 
Reported: 2010-10-20 15:39 UTC by Sarah Sharp
Modified: 2010-10-26 00:22 UTC (History)
5 users (show)

See Also:
Kernel Version: 2.6.36-rc7
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
dmesg showing iwlagn errors (23.97 KB, text/plain)
2010-10-20 15:41 UTC, Sarah Sharp
Details
lspci -v output (13.64 KB, text/plain)
2010-10-20 15:42 UTC, Sarah Sharp
Details
dmesg from 2.6.36-rc7 with rfkill switch set to on (6.28 KB, text/plain)
2010-10-21 16:00 UTC, Sarah Sharp
Details
/var/log/daemon network manager log on 2.6.36-rc7 with rfkill switch set to on (8.81 KB, text/plain)
2010-10-21 16:01 UTC, Sarah Sharp
Details

Description Sarah Sharp 2010-10-20 15:39:44 UTC
I've upgraded my machine to 2.6.35-rc7, and now my Intel Corporation PRO/Wireless 5100 AGN won't connect to my home access point (secured with WPA2).  The dmesg shows a lot of output from the iwlagn driver, and then "Microcode SW error detected."  The same hardware and kernel combo successfully connected to open access points yesterday.

I tried unloading and reloading the driver, but it still wouldn't connect (although there were less errors).

dmesg and lspci are attached.  I'll try upgrading to 2.6.36-rc8 and see if that fixes my issues.

I'm not sure exactly which kernel version did work.  I was running 2.6.35 for a long time, and that worked fine.  I've been running 2.6.36-rc5 for a while, but I can't remember if I've tried to connect to my home wireless on that kernel.  I'll try to bisect it if upgrading to 2.6.36-rc8 doesn't work.

System is a Lenovo x200s laptop, if that makes a difference.
Comment 1 Sarah Sharp 2010-10-20 15:41:16 UTC
Created attachment 34252 [details]
dmesg showing iwlagn errors
Comment 2 Sarah Sharp 2010-10-20 15:42:07 UTC
Created attachment 34262 [details]
lspci -v output
Comment 3 wey-yi.w.guy 2010-10-20 16:31:22 UTC
this bug looks the same as
http://bugzilla.intellinuxwireless.org/show_bug.cgi?id=2239

is the same issue still seen in 2.6.36-rc8?

Thanks
Wey
Comment 4 Sarah Sharp 2010-10-21 15:59:34 UTC
I found that the dmesg errors on 2.6.36-rc7 went away after I discovered I had my rfkill switch set to off.  I still can't get dhcp to work from the WPA2 access point from any kernel (including the 2.6.35 kernel that used to work).  Other Linux systems I own (including my Android phone) connect fine to the access point.  I'm not sure if it's a userspace issue at this point, or perhaps a firmware issue?

I'm attaching the dmesg from 2.6.36-rc7 with the rfkill switch set to on, and the output from /var/log/daemon.  Those look normal, except for not getting an IP address.

Do you still want me to try and boot into 2.6.36-rc8 with the rfkill switch set to off and see if I get the "Microcode SW error detected" errors?
Comment 5 Sarah Sharp 2010-10-21 16:00:43 UTC
Created attachment 34322 [details]
dmesg from 2.6.36-rc7 with rfkill switch set to on
Comment 6 Sarah Sharp 2010-10-21 16:01:31 UTC
Created attachment 34342 [details]
/var/log/daemon network manager log on 2.6.36-rc7 with rfkill switch set to on
Comment 7 wey-yi.w.guy 2010-10-21 17:13:01 UTC
(In reply to comment #4)
> I found that the dmesg errors on 2.6.36-rc7 went away after I discovered I
> had
> my rfkill switch set to off.  I still can't get dhcp to work from the WPA2
> access point from any kernel (including the 2.6.35 kernel that used to work). 
> Other Linux systems I own (including my Android phone) connect fine to the
> access point.  I'm not sure if it's a userspace issue at this point, or
> perhaps
> a firmware issue?
> I'm attaching the dmesg from 2.6.36-rc7 with the rfkill switch set to on, and
> the output from /var/log/daemon.  Those look normal, except for not getting
> an
> IP address.
> Do you still want me to try and boot into 2.6.36-rc8 with the rfkill switch
> set
> to off and see if I get the "Microcode SW error detected" errors?

Hi Sarsh,

Yes, please help us to try it.

Thanks 
Wey
Comment 8 Sarah Sharp 2010-10-25 17:24:50 UTC
I'm side-tracked by a different issue right now, so I haven't been able to test whether 2.6.36 still produces this message with the rfkill switch turned off.  My new issue seemed much more basic, so I'm focusing on that.

I compiled 2.6.36, but network manager doesn't see any access points at all.  Under "Wireless Networks" it has a greyed-out message saying, "wireless is disabled".  rfkill switch is definitely set to 'on'.

dmesg says:
[   14.169296] iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree:
[   14.169304] iwlagn: Copyright(c) 2003-2010 Intel Corporation
[   14.169453] iwlagn 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[   14.169470] iwlagn 0000:03:00.0: setting latency timer to 64
[   14.170117] iwlagn 0000:03:00.0: Detected Intel(R) WiFi Link 5100 AGN, REV=0x54
[   14.190483] iwlagn 0000:03:00.0: device EEPROM VER=0x11f, CALIB=0x4
[   14.190514] iwlagn 0000:03:00.0: Tunable channels: 13 802.11bg, 24 802.11a channels
[   14.190782] iwlagn 0000:03:00.0: irq 46 for MSI/MSI-X
[   14.816138] iwlagn 0000:03:00.0: loaded firmware version 8.24.2.12
[   15.163027] phy0: Selected rate control algorithm 'iwl-agn-rs'

So I'll try to git bisect to figure out which commit between 2.6.36-rc7 and 2.6.36 caused the wireless device to stop showing up.  That doesn't help the original issue, but this new issue is more urgent for me personally.
Comment 9 John W. Linville 2010-10-25 17:29:29 UTC
Please note the terminology: "rfkill on" == "wireless off"

Also note that some laptops have both "soft" and "hard" rfkill switches.  The former is often an 'Fn' key combination on the keyboard, while the latter might be a slider switch along the edge of the case.  The Lenovo laptops in particular are fond of that design.

The output of "rfkill list" might be useful to see.
Comment 10 Sarah Sharp 2010-10-25 20:21:51 UTC
I have a "hard" rfkill switch on the side of my laptop.  When I tried rfkill list on 2.6.36, it showed softblock = no and hardblock=yes, and sure enough, the hard rfkill switch wasn't quite clicked all the way on.  rfkill list showed 'no' on both softblock and hardblock at that point.

I unloaded iwlagn and reloaded it.  Network manager started to connect, then stopped after I had been typing for a while.  rfkill list showed hardblock=yes at that point, even though I hadn't touched the switch.  Jiggled the switch a little bit (without fully clicking it over) and network manager started re-connecting.  rfkill list showed hardblock=no at that point.  So maybe I have a flaky switch.

I'll try rebooting 2.6.36 with the rfkill switch set to off and see if there's more messages about Microcode SW errors, but I haven't seen them yet.
Comment 11 Sarah Sharp 2010-10-25 20:30:13 UTC
I just booted into 2.6.36 with the hard rfkill switch set to wireless=off, and I didn't see any "Microcode SW error detected" errors.  This bug should probably be marked as resolved, although I'm not sure under what category.  PATCH_ALREADY_AVAILABLE?  CODE_FIX?
Comment 12 wey-yi.w.guy 2010-10-25 20:34:22 UTC
how about "WORKSFORME"

Wey

Note You need to log in before you can comment on or make changes to this bug.