Return-path: Received: from mail.candelatech.com ([208.74.158.172]:51488 "EHLO ns3.lanforge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755002Ab3CZRqE (ORCPT ); Tue, 26 Mar 2013 13:46:04 -0400 Message-ID: <5151DED3.8090009@candelatech.com> (sfid-20130326_184623_719024_B1119A10) Date: Tue, 26 Mar 2013 10:45:55 -0700 From: Ben Greear MIME-Version: 1.0 To: Adrian Chadd CC: Robert Shade , Christian Lamparter , ath9k-devel@venema.h4ckr.net, linux-wireless@vger.kernel.org, Marco Fonseca Subject: Re: [ath9k-devel] Auth Packet TX Delay References: <201303251712.19808.chunkeey@googlemail.com> <5151D752.3080303@candelatech.com> <5151DA98.7030903@candelatech.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: On 03/26/2013 10:33 AM, Adrian Chadd wrote: > Right. Well, when you reset the FIFO chances are you should walk said > FIFO queue in the TXQ (not the pending frames, the "hw" frames) and > requeue each to the hardware. > > What I am doing in my EDMA restart routine in FreeBSD: > > * (assume TX is stopped, chip is reset, the completed frames are > already removed from the FIFO queue in the TXQ); > > * save the old FIFO count > * blank the FIFO count > * walk the FIFO list (NOT the pending list), pushing head pointers > back into the FIFO - and this will bump the FIFO counter by one each > time; > * when I've finished that, compare the FIFO count to the old FIFO > count - they should match. > > I've not looked at the ath9k code in too much depth lately as I've > been more interested in getting FreeBSD's EDMA code finished (and I > think it is, woo!); so if you give me an hour or two I'll go do > another code review and see what pops up. Ok, I'm happy to test patches. Last we tried, we could reproduce the problem very often using lots of stations (32, I think) sending 64kbps or so UDP traffic through an attenuator as we ramp up the attenuation in 10db steps... Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com