Bug 16634 - wdev_cleanup_work / iwlagn
Summary: wdev_cleanup_work / iwlagn
Status: CLOSED CODE_FIX
Alias: None
Product: Networking
Classification: Unclassified
Component: Wireless (show other bugs)
Hardware: All Linux
: P1 blocking
Assignee: networking_wireless@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-19 20:54 UTC by zless
Modified: 2011-03-17 19:20 UTC (History)
6 users (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description zless 2010-08-19 20:54:57 UTC
This is from dmesg. After this wireless stpped working until reboot.

lspci:
02:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection

------------[ cut here ]------------
[56083.391479] WARNING: at net/wireless/core.c:633 wdev_cleanup_work+0x4a/0xa2 [cfg80211]()
[56083.391482] Hardware name: HP HDX16 Notebook PC
[56083.391483] Modules linked in: nls_iso8859_1 nls_cp437 vfat fat option usb_wwan usbserial usb_storage twofish twofish_common xts gf128mul aes_i586 aes_generic binfmt_misc rfcomm sco ppdev bridge stp bnep l2cap dm_crypt vboxdrv nfsd exportfs nfs lockd nfs_acl auth_rpcgss sunrpc arc4 snd_hda_codec_nvhdmi snd_hda_codec_idt snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm iwlagn snd_seq_dummy joydev coretemp snd_seq_oss vhost_net snd_seq_midi snd_rawmidi iwlcore snd_seq_midi_event macvtap snd_seq snd_timer snd_seq_device macvlan snd mac80211 uvcvideo jmb38x_ms sdhci_pci hp_accel lis3lv02d sdhci videodev lp v4l1_compat parport memstick psmouse input_polldev serio_raw led_class btusb hp_wmi video soundcore output snd_page_alloc cfg80211 bluetooth fbcon tileblit font bitblit softcursor nouveau ttm drm_kms_helper ahci drm libahci ohci1394 r8169 intel_agp i2c_algo_bit mii agpgart ieee1394
[56083.391547] Pid: 734, comm: cfg80211 Not tainted 2.6.35.2-hartlite01 #1
[56083.391550] Call Trace:
[56083.391557]  [<c0134a7e>] warn_slowpath_common+0x6a/0x7f
[56083.391572]  [<fbeda4d9>] ? wdev_cleanup_work+0x4a/0xa2 [cfg80211]
[56083.391576]  [<c0134aa7>] warn_slowpath_null+0x14/0x18
[56083.391589]  [<fbeda4d9>] wdev_cleanup_work+0x4a/0xa2 [cfg80211]
[56083.391594]  [<c01466d0>] worker_thread+0x13f/0x1b2
[56083.391608]  [<fbeda48f>] ? wdev_cleanup_work+0x0/0xa2 [cfg80211]
[56083.391611]  [<c014999d>] ? autoremove_wake_function+0x0/0x34
[56083.391615]  [<c0146591>] ? worker_thread+0x0/0x1b2
[56083.391617]  [<c0149615>] kthread+0x64/0x69
[56083.391620]  [<c01495b1>] ? kthread+0x0/0x69
[56083.391623]  [<c0102efe>] kernel_thread_helper+0x6/0x10
[56083.391626] ---[ end trace 91ea03912d08ffb5 ]---
Comment 1 John W. Linville 2010-08-20 13:58:23 UTC
Sounds similar to this:

https://bugzilla.redhat.com/show_bug.cgi?id=593566

FWIW, there seem to be several ways to trigger that warning w/ iwl3945 and iwlagn.  Not all of them disable wireless from working afterwards.
Comment 2 Julian Andres Klode 2010-10-04 12:50:40 UTC
The Red Hat bug seems to be the same issue, line 614 in linux-2.6.32.y and line 633 in linux-2.6.35.y are identical. 

According to the RH bug tracker, commit 7acc7c683a747689aaaaad4fce1683fc3f85e552 might fix the bug -- if that's the case, it might make sense to backport it to stable kernels.
Comment 3 John W. Linville 2011-01-18 19:17:11 UTC
Later versions of the iwlagn driver seemed to cure this issue on the RHEL kernels.  Is this issue still relevant for 2.6.37 or later kernels?
Comment 4 zless 2011-01-18 19:21:04 UTC
Sorry I don't have that hardware anymore so I can't test.
Comment 5 Shapovalov Ivan 2011-03-07 10:04:26 UTC
On my system (openSUSE 11.3 / kernel 2.6.34.8) with hardware Intel 5150ABG (rev 0x44 firmware 8.24.2.2) this problem happens when switching off the hardware via RFKILL and on suspends.

The warning, when appears, is always preceded by some messages from iwlagn:

iwlagn 0000:01:00.0: queue 2 stuck 3 time. Fw reload.
iwlagn 0000:01:00.0: On demand firmware reload
mac80211-phy1: failed to remove key (0, 00:21:29:a2:1b:bc) from hardware (-22)
wlan0: deauthenticating from 00:21:29:a2:1b:bc by local choice (reason=3)
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: World regulatory domain updated:
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
------------[ cut here ]------------
WARNING: at net/wireless/core.c:633 wdev_cleanup_work+0xb7/0xe0()
Hardware name: 1003HAG
Modules linked in: iwlagn vboxnetadp vboxnetflt vboxdrv uvcvideo videodev i2400m_usb v4l1_compat i2400m iwlcore atl1e [last unloaded: iwlagn]
Pid: 25, comm: cfg80211 Tainted: G        W  2.6.34.8-built-desktop #1
Call Trace:
 [<c1034acf>] ? warn_slowpath_common+0x6f/0xb0
 [<c14c6db7>] ? wdev_cleanup_work+0xb7/0xe0
 [<c1034b24>] ? warn_slowpath_null+0x14/0x20
 [<c14c6db7>] ? wdev_cleanup_work+0xb7/0xe0
 [<c1045f64>] ? worker_thread+0x104/0x1e0
 [<c150d604>] ? schedule+0x204/0x530
 [<c14c6d00>] ? wdev_cleanup_work+0x0/0xe0
 [<c1049cb0>] ? autoremove_wake_function+0x0/0x50
 [<c1045e60>] ? worker_thread+0x0/0x1e0
 [<c1049954>] ? kthread+0x74/0x80
 [<c10498e0>] ? kthread+0x0/0x80
 [<c1003576>] ? kernel_thread_helper+0x6/0x10
---[ end trace 28f4007f93230031 ]---
Comment 6 Stanislaw Gruszka 2011-03-07 12:40:09 UTC
This problem is fixed in 2.6.37. There will be no backport. You can use compat-wireless to run new wireless drivers on older kernel.
Comment 7 Shapovalov Ivan 2011-03-09 22:04:03 UTC
Thanks. I've got updated to 2.6.38 from my distribution's upstream - it seems to be OK.
Comment 8 John W. Linville 2011-03-17 19:20:56 UTC
Closing on the basis of comment 7...

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