From owner-svn-src-user@FreeBSD.ORG Wed Sep 14 08:27:20 2011 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 096011065675; Wed, 14 Sep 2011 08:27:20 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D40068FC12; Wed, 14 Sep 2011 08:27:19 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8E8RJE9017925; Wed, 14 Sep 2011 08:27:19 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8E8RJfC017923; Wed, 14 Sep 2011 08:27:19 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201109140827.p8E8RJfC017923@svn.freebsd.org> From: Adrian Chadd Date: Wed, 14 Sep 2011 08:27:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225550 - user/adrian/if_ath_tx/sys/dev/ath X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2011 08:27:20 -0000 Author: adrian Date: Wed Sep 14 08:27:19 2011 New Revision: 225550 URL: http://svn.freebsd.org/changeset/base/225550 Log: Update things Modified: user/adrian/if_ath_tx/sys/dev/ath/README Modified: user/adrian/if_ath_tx/sys/dev/ath/README ============================================================================== --- user/adrian/if_ath_tx/sys/dev/ath/README Wed Sep 14 08:15:21 2011 (r225549) +++ user/adrian/if_ath_tx/sys/dev/ath/README Wed Sep 14 08:27:19 2011 (r225550) @@ -1,12 +1,12 @@ Things to debug! ---------------- -The txqactive bitmap (txeol, txurn, txok, etc) is setup at txq create -time to a set of values, then it seems after a channel scan all of the -bits are set to 1. I'm not yet sure why. Go in and fix these. -Note that ath9k caches the IMR_S2 value and rewrites it where needed. -It's possible that after a channel scan, these values are "initial" -values rather than the values setup by the if_ath driver. +* The txqactive bitmap (txeol, txurn, txok, etc) is setup at txq create + time to a set of values, then it seems after a channel scan all of the + bits are set to 1. I'm not yet sure why. Go in and fix these. + Note that ath9k caches the IMR_S2 value and rewrites it where needed. + It's possible that after a channel scan, these values are "initial" + values rather than the values setup by the if_ath driver. < adrian> oh that's a fun bug. if I trigger A-MPDU using an aggregate UDP TX, I'm out of buffers < adrian> (as they're all locked up in pending queues) @@ -24,14 +24,6 @@ values rather than the values setup by t ever queued? - No -* Is it some missing sequence numbers? ie, is addto_baw being called with - sequence numbers out of order, or "gaps" in the sequence numbers? - - Yes, if the frame is queued via ath_tx_swq() but it's never submitted - to the hardware; it never gets added to the BAW. - - The solution here is to modify the whole TX aggr pipeline to allocate - seqno's just as a frame is to be queued to the hardware the first time, - rather than in ath_tx_start(). - * Although it's a nice idea to run completion handlers in the ath task context (making scheduling and completion occur in a mutually exclusive setup within the same taskqueue), the fact that nodes can be flushed, @@ -70,6 +62,16 @@ values rather than the values setup by t Things that need doing! ----------------------- +* The txactive bits are set in the interrupt handler context, and cleared + in the TX completion process context. Since TX interrupts may occur + during a TX completion process, it's unfortunately likely that this + will be very racey and end up missing perfectly valid TX events. + This should be resolved before things are merged into -HEAD. + + Maybe store the txqactive mask away in ath_softc and put the update + of said ath_softc version behind an atomic operation or lock. That way + the HAL doesn't have to change (for now). + * When off-channel, aggregate traffic should stay queued, but raw frames (eg probes) should be sent?