Return-path: Received: from mx.logic.tuwien.ac.at ([128.130.175.19]:53774 "EHLO mx.logic.tuwien.ac.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752579Ab1KVAYR (ORCPT ); Mon, 21 Nov 2011 19:24:17 -0500 Date: Tue, 22 Nov 2011 09:24:09 +0900 From: Norbert Preining To: Emmanuel Grumbach Cc: "Guy, Wey-Yi" , David Rientjes , "linux-kernel@vger.kernel.org" , "ipw3945-devel@lists.sourceforge.net" , "ilw@linux.intel.com" , "linux-wireless@vger.kernel.org" , Pekka Enberg Subject: Re: iwlagn is getting very shaky Message-ID: <20111122002409.GA6936@gamma.logic.tuwien.ac.at> (sfid-20111122_012435_162427_3A6A4871) References: <20111107123812.GB23508@gamma.logic.tuwien.ac.at> <1320709047.31823.188.camel@wwguy-huron> <20111108043233.GA21171@gamma.logic.tuwien.ac.at> <20111109051152.GA16006@gamma.logic.tuwien.ac.at> <20111121030640.GI32505@gamma.logic.tuwien.ac.at> <20111121232454.GC840@gamma.logic.tuwien.ac.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20111121232454.GC840@gamma.logic.tuwien.ac.at> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Di, 22 Nov 2011, Norbert Preining wrote: > On Mo, 21 Nov 2011, Emmanuel Grumbach wrote: > > iwlwifi: add debug information on queue stop / wake > > > > and run with debug flags 0x80000000 (bit 31) > > This will print a message each time a queue is stopped / started. > > I have these patches in addition to current git: BTW, I just rebuild my kernel from current git, where there were some fixes from Johannes Berg for mac80211 etc: Johannes Berg (7): nl80211: fix HT capability attribute validation cfg80211: allow setting TXQ parameters only in AP mode cfg80211: fix cmp_ies cfg80211: fix missing kernel-doc mac80211: fix NULL dereference in radiotap code mac80211: fix bug in ieee80211_build_probe_req mac80211: fix race between connection monitor & suspend But it did NOT help. Even after reboot I got a hanging queue, in addition I got some more BUGs in ext3 code (ouch) and the usual in iwl-trans-pcie.c:1105: [ 57.555697] wlan0: associated [ 78.009471] iwlwifi 0000:06:00.0: Tx aggregation enabled on ra = 00:0a:79:eb:56:10 tid = 0 [ 78.009494] ------------[ cut here ]------------ [ 78.009536] WARNING: at drivers/net/wireless/iwlwifi/iwl-trans-pcie.c:1105 iwl_trans_pcie_tx+0x180/0x661 [iwlwifi]() [ 78.009545] Hardware name: VGN-Z11VN_B [ 78.009550] Modules linked in: rfcomm bnep bluetooth crc16 snd_hrtimer vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) binfmt_misc dm_crypt dm_mod btrfs zlib_deflate crc32c libcrc32c vfat fat fuse loop(+) uinput snd_hda_codec_realtek arc4 snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm mxm_wmi snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device iwlwifi firewire_ohci joydev snd firewire_core crc_itu_t mac80211 sony_laptop(O) cfg80211 soundcore snd_page_alloc rfkill tpm_infineon [ 78.009674] Pid: 717, comm: kworker/u:3 Tainted: G D O 3.2.0-rc2+ #47 [ 78.009681] Call Trace: [ 78.009686] [] warn_slowpath_common+0x83/0x9b [ 78.009712] [] warn_slowpath_null+0x1a/0x1c [ 78.009736] [] iwl_trans_pcie_tx+0x180/0x661 [iwlwifi] [ 78.009750] [] ? kmem_cache_alloc+0x44/0xb9 [ 78.009772] [] iwlagn_tx_skb+0x87b/0x91b [iwlwifi] [ 78.009791] [] iwlagn_mac_tx+0x131/0x1a2 [iwlwifi] [ 78.009814] [] ? ieee80211_tx_h_fragment+0x16/0x22c [mac80211] [ 78.009826] [] ? is_swiotlb_buffer+0x29/0x38 [ 78.009856] [] __ieee80211_tx+0x176/0x1cf [mac80211] [ 78.009876] [] ? ieee80211_tx_h_calculate_duration+0x4c/0x65 [mac80211] [ 78.009906] [] ieee80211_tx+0x97/0xaf [mac80211] [ 78.009938] [] ieee80211_tx_pending+0xf0/0x1c3 [mac80211] [ 78.009950] [] tasklet_action+0x77/0xc2 [ 78.009959] [] __do_softirq+0xbc/0x1a5 [ 78.009972] [] call_softirq+0x1c/0x30 [ 78.009978] [] do_softirq+0x38/0x6e [ 78.009995] [] _local_bh_enable_ip.isra.12+0x7d/0xa0 [ 78.010004] [] local_bh_enable_ip+0xe/0x10 [ 78.010014] [] _raw_spin_unlock_bh+0x23/0x25 [ 78.010039] [] ieee80211_agg_tx_operational+0x99/0xa4 [mac80211] [ 78.010065] [] ieee80211_process_addba_resp+0xb8/0xf2 [mac80211] [ 78.010077] [] ? do_raw_spin_lock+0x16/0x22 [ 78.010104] [] ieee80211_iface_work+0x130/0x2b5 [mac80211] [ 78.010132] [] ? ieee80211_teardown_sdata+0xcc/0xcc [mac80211] [ 78.010145] [] process_one_work+0x17b/0x2bd [ 78.010154] [] ? need_to_create_worker+0x12/0x26 [ 78.010165] [] worker_thread+0xdb/0x15f [ 78.010174] [] ? manage_workers.isra.24+0x171/0x171 [ 78.010184] [] kthread+0x84/0x8c [ 78.010195] [] kernel_thread_helper+0x4/0x10 [ 78.010206] [] ? kthread_worker_fn+0x148/0x148 [ 78.010215] [] ? gs_change+0xb/0xb [ 78.010222] ---[ end trace 1999568f54f9a3c3 ]--- Followed by a stuck queue: [ 87.480094] iwlwifi 0000:06:00.0: Queue 11 stuck for 10000 ms. [ 87.480106] iwlwifi 0000:06:00.0: Current SW read_ptr 21 write_ptr 72 [ 87.480161] iwlwifi 0000:06:00.0: Current HW read_ptr 21 write_ptr 72 [ 87.480169] iwlwifi 0000:06:00.0: On demand firmware reload [ 87.480644] ieee80211 phy0: Hardware restart was requested [ 87.480763] iwlwifi 0000:06:00.0: L1 Enabled; Disabling L0S [ 87.483792] iwlwifi 0000:06:00.0: Radio type=0x1-0x2-0x0 at which point nothing works anymore. rmmod and modprobe iwlwifi gets back the connection: [ 417.209410] wlan0: deauthenticating from 00:0a:79:eb:56:10 by local choice (reason=3) [ 417.220286] iwlwifi 0000:06:00.0: Stopping AGG while state not ON or starting for 0 on 0 (0) [ 417.304463] cfg80211: Calling CRDA for country: JP [ 417.372535] iwlwifi 0000:06:00.0: PCI INT A disabled [ 421.388543] Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree:d [ 421.388547] Copyright(c) 2003-2011 Intel Corporation [ 421.388720] iwlwifi 0000:06:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 [ 421.388753] iwlwifi 0000:06:00.0: setting latency timer to 64 [ 421.389058] iwlwifi 0000:06:00.0: pci_resource_len = 0x00002000 [ 421.389061] iwlwifi 0000:06:00.0: pci_resource_base = ffffc900041b8000 [ 421.389063] iwlwifi 0000:06:00.0: HW Revision ID = 0x0 [ 421.389210] iwlwifi 0000:06:00.0: irq 46 for MSI/MSI-X [ 421.389286] iwlwifi 0000:06:00.0: Detected Intel(R) WiFi Link 5100 AGN, REV=0x54 [ 421.389381] iwlwifi 0000:06:00.0: L1 Enabled; Disabling L0S [ 421.411615] iwlwifi 0000:06:00.0: device EEPROM VER=0x11e, CALIB=0x4 [ 421.411619] iwlwifi 0000:06:00.0: Device SKU: 0Xf0 [ 421.411629] iwlwifi 0000:06:00.0: Tunable channels: 13 802.11bg, 24 802.11a channels [ 421.417401] iwlwifi 0000:06:00.0: loaded firmware version 8.83.5.1 build 33692 (EXP) [ 421.417563] Registered led device: phy1-led [ 421.417859] ieee80211 phy1: Selected rate control algorithm 'iwl-agn-rs' [ 421.431467] iwlwifi 0000:06:00.0: L1 Enabled; Disabling L0S [ 421.435641] iwlwifi 0000:06:00.0: Radio type=0x1-0x2-0x0 [ 421.553374] iwlwifi 0000:06:00.0: L1 Enabled; Disabling L0S [ 421.556448] iwlwifi 0000:06:00.0: Radio type=0x1-0x2-0x0 [ 429.248438] wlan0: authenticate with 00:0a:79:eb:56:10 (try 1) [ 429.255782] wlan0: authenticated [ 429.257063] wlan0: associate with 00:0a:79:eb:56:10 (try 1) [ 429.262801] wlan0: RX AssocResp from 00:0a:79:eb:56:10 (capab=0x411 status=0 aid=1) [ 429.262806] wlan0: associated Best wishes Norbert ------------------------------------------------------------------------ Norbert Preining preining@{jaist.ac.jp, logic.at, debian.org} JAIST, Japan TeX Live & Debian Developer DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 ------------------------------------------------------------------------ HODNET (n.) The wooden safety platform supported by scaffolding round a building under construction from which the builders (at almost no personal risk) can drop pieces of cement on passers-by. --- Douglas Adams, The Meaning of Liff