From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933877Ab1J3Dbj (ORCPT ); Sat, 29 Oct 2011 23:31:39 -0400 Received: from mga09.intel.com ([134.134.136.24]:30439 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933352Ab1J3Dbi (ORCPT ); Sat, 29 Oct 2011 23:31:38 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,351,1309762800"; d="scan'208,223";a="68974691" Subject: Re: 3.1.0+ (Linus GIT tree) - BUG: scheduling while atomic: cat/3303/0x00000102 From: "Guy, Wey-Yi" To: Miles Lane Cc: LKML , Intel Linux Wireless In-Reply-To: References: Content-Type: multipart/mixed; boundary="=-HxuJHzPsrkhaXxSOoHTr" Date: Sat, 29 Oct 2011 19:39:26 -0700 Message-ID: <1319942366.31823.102.camel@wwguy-huron> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-HxuJHzPsrkhaXxSOoHTr Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Please try following patch thanks Wey On Sat, 2011-10-29 at 19:03 -0700, Miles Lane wrote: > iwlwifi 0000:03:00.0: Error sending POWER_TABLE_CMD: time out after 2000ms. > iwlwifi 0000:03:00.0: Current CMD queue read_ptr 150 write_ptr 151 > iwlwifi 0000:03:00.0: set power fail, ret = -110 > cfg80211: Calling CRDA to update world regulatory domainBUG: > scheduling while atomic: cat/3303/0x00000102 > cfg80211: World regulatory domain updated: > cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) > cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) > cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) > cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) > cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) > cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) > iwlwifi 0000:03:00.0: Queue 4 stuck for 2000 ms. > iwlwifi 0000:03:00.0: Current read_ptr 150 write_ptr 151 > ------------[ cut here ]------------ > WARNING: at drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c:998 > iwl_trans_pcie_send_cmd+0x34a/0x34f [iwlwifi]() > Hardware name: UL50VT > Modules linked in: snd_hrtimer rfcomm bnep bluetooth parport_pc > parport ipv6 snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel > snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm > snd_seq_dummy uvcvideo snd_seq_oss videodev v4l2_compat_ioctl32 > snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer iwlwifi > snd_seq_device psmouse mac80211 snd cfg80211 soundcore snd_page_alloc > evdev battery asus_laptop sparse_keymap rfkill ac power_supply > processor sr_mod sg cdrom atl1c thermal > Pid: 3303, comm: cat Not tainted 3.1.0+ #20 > Call Trace: > [] warn_slowpath_common+0x7e/0x96 > [] warn_slowpath_null+0x15/0x17 > [] iwl_trans_pcie_send_cmd+0x34a/0x34f [iwlwifi] > [] ? dev_err+0x4e/0x50 > [] iwl_cmd_echo_test+0x35/0x65 [iwlwifi] > [] iwl_check_stuck_queue+0x44/0x6c [iwlwifi] > [] iwl_bg_watchdog+0x4c/0xb8 [iwlwifi] > [] run_timer_softirq+0x227/0x35b > [] ? run_timer_softirq+0x149/0x35b > [] ? iwl_check_stuck_queue+0x6c/0x6c [iwlwifi] > [] __do_softirq+0x129/0x24c > [] call_softirq+0x1c/0x30 > [] do_softirq+0x38/0x83 > [] irq_exit+0x58/0xc8 > [] smp_apic_timer_interrupt+0x76/0x84 > [] apic_timer_interrupt+0x70/0x80 > [] ? __slab_alloc.isra.62.constprop.72+0x208/0x21a > [] ? aa_alloc_task_context+0x2d/0x3b > [] ? getname_flags+0x2c/0x1db > [] ? aa_alloc_task_context+0x2d/0x3b > [] ? getname_flags+0x2c/0x1db > [] ? getname_flags+0x2c/0x1db > [] kmem_cache_alloc+0x4f/0x136 > [] getname_flags+0x2c/0x1db > [] user_path_at+0x26/0x91 > [] ? kmem_cache_alloc_trace+0xb2/0xc4 > [] ? aa_dup_task_context+0x22/0x4a > [] ? apparmor_cred_prepare+0x31/0x40 > [] ? get_cred+0x22/0x29 > [] ? override_creds+0x72/0x87 > [] sys_faccessat+0xa0/0x182 > [] ? trace_hardirqs_on_thunk+0x3a/0x3f > [] sys_access+0x13/0x15 > [] system_call_fastpath+0x16/0x1b > ---[ end trace 4974270bf412e95a ]--- > BUG: scheduling while atomic: cat/3303/0x00000102 > 1 lock held by cat/3303: > #0: (&priv->watchdog){+.-...}, at: [] > run_timer_softirq+0x149/0x35b > Modules linked in: snd_hrtimer rfcomm bnep bluetooth parport_pc > parport ipv6 snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel > snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm > snd_seq_dummy uvcvideo snd_seq_oss videodev v4l2_compat_ioctl32 > snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer iwlwifi > snd_seq_device psmouse mac80211 snd cfg80211 soundcore snd_page_alloc > evdev battery asus_laptop sparse_keymap rfkill ac power_supply > processor sr_mod sg cdrom atl1c thermal > CPU 0 > Modules linked in: snd_hrtimer rfcomm bnep bluetooth parport_pc > parport ipv6 snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel > snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm > snd_seq_dummy uvcvideo snd_seq_oss videodev v4l2_compat_ioctl32 > snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer iwlwifi > snd_seq_device psmouse mac80211 snd cfg80211 soundcore snd_page_alloc > evdev battery asus_laptop sparse_keymap rfkill ac power_supply > processor sr_mod sg cdrom atl1c thermal > Pid: 3303, comm: cat Tainted: G W 3.1.0+ #20 ASUSTeK Computer > Inc. UL50VT /UL50VT Oct 29 19:35:03 localhost > kernel: [ 3785.923634] RIP: 0010:[] > [] __slab_alloc.isra.62.constprop.72+0x208/0x21a > RSP: 0018:ffff88011ed1bd18 EFLAGS: 00000296 > RAX: ffff8801189e93a0 RBX: ffff88013709c600 RCX: 0000000000000000 > RDX: 000000000000ab92 RSI: 0000000000000001 RDI: ffff8801189e93a0 > RBP: ffff88011ed1bda8 R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000001 R11: 0000000000000001 R12: ffff88013709d610 > R13: 0000000000000007 R14: 0000000100070001 R15: ffffffff810f6e01 > FS: 0000000000000000(0000) GS:ffff88013fc00000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 000000000060aed0 CR3: 000000011ed6f000 CR4: 00000000000406f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 > Process cat (pid: 3303, threadinfo ffff88011ed1a000, task ffff8801189e93a0) > Stack: > ffffffff811c769c 0000000100160013 0000000000000009 ffffffff810f6e01 > ffffffff811c769c ffff880112fe69d8 ffff88011ed1bd88 ffff8801189e93a0 > 0000000000000246 0000000000000080 00000000000000d0 ffffffff810f6e01 > Call Trace: > [] ? aa_alloc_task_context+0x2d/0x3b > [] ? getname_flags+0x2c/0x1db > [] ? aa_alloc_task_context+0x2d/0x3b > [] ? getname_flags+0x2c/0x1db > [] ? getname_flags+0x2c/0x1db > [] kmem_cache_alloc+0x4f/0x136 > [] getname_flags+0x2c/0x1db > [] user_path_at+0x26/0x91 > [] ? kmem_cache_alloc_trace+0xb2/0xc4 > [] ? aa_dup_task_context+0x22/0x4a > [] ? apparmor_cred_prepare+0x31/0x40 > [] ? get_cred+0x22/0x29 > [] ? override_creds+0x72/0x87 > [] sys_faccessat+0xa0/0x182 > [] ? trace_hardirqs_on_thunk+0x3a/0x3f > [] sys_access+0x13/0x15 > [] system_call_fastpath+0x16/0x1b > Code: 00 48 89 03 e8 0f 3a ce ff c7 43 20 ff ff ff ff 41 f7 c6 00 02 > 00 00 75 0a 41 56 9d e8 9f 07 c6 ff eb 08 e8 bb 20 c6 ff 41 56 9d > Call Trace: > [] ? aa_alloc_task_context+0x2d/0x3b > [] ? getname_flags+0x2c/0x1db > [] ? aa_alloc_task_context+0x2d/0x3b > [] ? getname_flags+0x2c/0x1db > [] ? getname_flags+0x2c/0x1db > [] kmem_cache_alloc+0x4f/0x136 > [] getname_flags+0x2c/0x1db > [] user_path_at+0x26/0x91 > [] ? kmem_cache_alloc_trace+0xb2/0xc4 > [] ? aa_dup_task_context+0x22/0x4a > [] ? apparmor_cred_prepare+0x31/0x40 > [] ? get_cred+0x22/0x29 > [] ? override_creds+0x72/0x87 > [] sys_faccessat+0xa0/0x182 > [] ? trace_hardirqs_on_thunk+0x3a/0x3f > [] sys_access+0x13/0x15 > [] system_call_fastpath+0x16/0x1b > iwlwifi 0000:03:00.0: HCMD_ACTIVE already clear for command REPLY_ECHO --=-HxuJHzPsrkhaXxSOoHTr Content-Type: application/mbox; name*0="[PATCH_1_1]_iwlwifi:_don_t_perform__echo_test__when_cmd_queue_stu"; name*1="ck" Content-Disposition: attachment; filename*0="[PATCH_1_1]_iwlwifi:_don_t_perform__echo_test__when_cmd_queue"; filename*1="_stuck" Content-Transfer-Encoding: 7bit >>From wey-yi.w.guy@intel.com Thu Oct 27 18:33:38 2011 Received: from orsmga001.jf.intel.com (10.7.209.18) by orsmsx601-2.jf.intel.com (10.22.226.227) with Microsoft SMTP Server id 8.2.255.0; Thu, 27 Oct 2011 18:33:38 -0700 Received: from wwguy-ubuntu.jf.intel.com (HELO localhost.localdomain) ([134.134.163.140]) by orsmga001.jf.intel.com with ESMTP; 27 Oct 2011 18:33:37 -0700 From: "Guy, Wey-Yi W" To: "internal-wifi-devel@linux.intel.com" CC: "Guy, Wey-Yi W" Date: Thu, 27 Oct 2011 18:27:37 -0700 Subject: [PATCH 1/1] iwlwifi: don't perform "echo test" when cmd queue stuck Thread-Topic: [PATCH 1/1] iwlwifi: don't perform "echo test" when cmd queue stuck Thread-Index: AcyVEZ0ZiK9yfGaFSzWWZs6J/t6gXg== Message-ID: <1319765257-24424-1-git-send-email-wey-yi.w.guy@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Exchange-Organization-AuthAs: Internal X-MS-Exchange-Organization-AuthMechanism: 10 X-MS-Exchange-Organization-AuthSource: orsmsx601.amr.corp.intel.com X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ironport-av: E=Sophos;i="4.67,352,1309762800"; d="scan'208";a="68757522" x-extloop1: 1 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 X-Evolution-Source: imap://wwguy@imapmail.intel.com/ Content-Transfer-Encoding: 8bit From: Wey-Yi Guy Perform "echo test" when cmd queue stuck detected, somethime it will cause calltrace. I am not sure how to fix it yet, just remove the action now until find a better way to handle it. Signed-off-by: Wey-Yi Guy --- drivers/net/wireless/iwlwifi/iwl-core.c | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index a779024..8efa10f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c @@ -1450,16 +1450,6 @@ static inline int iwl_check_stuck_queue(struct iwl_priv *priv, int txq) { if (iwl_trans_check_stuck_queue(trans(priv), txq)) { int ret; - if (txq == priv->shrd->cmd_queue) { - /* - * validate command queue still working - * by sending "ECHO" command - */ - if (!iwl_cmd_echo_test(priv)) - return 0; - else - IWL_DEBUG_HC(priv, "echo testing fail\n"); - } ret = iwl_force_reset(priv, IWL_FW_RESET, false); return (ret == -EAGAIN) ? 0 : 1; } -- 1.7.0.4 --=-HxuJHzPsrkhaXxSOoHTr--