Return-path: Received: from mail-ia0-f170.google.com ([209.85.210.170]:51014 "EHLO mail-ia0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754650Ab3C0DMO (ORCPT ); Tue, 26 Mar 2013 23:12:14 -0400 Received: by mail-ia0-f170.google.com with SMTP id h8so7149886iaa.29 for ; Tue, 26 Mar 2013 20:12:13 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <201303251712.19808.chunkeey@googlemail.com> <5151D752.3080303@candelatech.com> From: Robert Shade Date: Tue, 26 Mar 2013 23:11:53 -0400 Message-ID: (sfid-20130327_041226_241421_C6B8095B) Subject: Re: [ath9k-devel] Auth Packet TX Delay To: Ben Greear , Adrian Chadd Cc: Christian Lamparter , ath9k-devel@venema.h4ckr.net, linux-wireless@vger.kernel.org, Marco Fonseca Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: Think I found it: In ath_reset_internal, before we reset, we call ath_prepare_reset, which calls ath9k_hw_disable_interrupts. If the channel change fails, we never call ath_complete_reset, which calls ath9k_hw_enable_interrupts. ath9k_hw_{enable|disable}_interrupts calls definitely needs to be balanced. Looking at an old log, IER never gets re-enabled after the channel set failure. Any suggestions on the proper cleanup? Could we just call ath_complete_reset anyway? Some sort of special handling? On Tue, Mar 26, 2013 at 8:55 PM, Robert Shade wrote: > On Tue, Mar 26, 2013 at 1:13 PM, Ben Greear wrote: >> Can you cat out the /debug/ieee80211/wiphy0/ath9k/xmit >> file when it gets in this hung state? I saw issues where >> the xmit queues got hung in our AR9380 NIC systems and >> ended up adding an ugly bit of cleanup/reset logic to >> get them working again... > > Dumps are attached on to the bug. I remember being hopeful when > reading your thread that we stumbled on the same issue, but the > symptoms don't look the same to me because pending-frames goes back to > 0 in my case.