From: Bernhard Schmidt <bschmidt@techwires.net>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] DMA issues with ar9280 cards
Date: Fri, 4 Mar 2011 18:16:10 +0100 [thread overview]
Message-ID: <201103041816.11100.bschmidt@techwires.net> (raw)
In-Reply-To: <AANLkTim=pEy_iCuw23Ac5-AQhOEsmHDdH4N=2bcCnnwm@mail.gmail.com>
On Friday 04 March 2011 16:29:13 Mohammed Shafi wrote:
> On Fri, Mar 4, 2011 at 8:55 PM, Mohammed Shafi <shafi.wireless@gmail.com> wrote:
> > On Fri, Mar 4, 2011 at 4:59 PM, Bernhard Schmidt <bschmidt@techwires.net> wrote:
> >> On Wednesday, March 02, 2011 15:51:37 Mohammed Shafi wrote:
> >>> On Thu, Feb 24, 2011 at 1:36 AM, Bernhard Schmidt
> >>> <bschmidt@techwires.net> wrote:
> >>> > On Wednesday 23 February 2011 18:46:49 Luis R. Rodriguez wrote:
> >>> >> On Wed, Feb 23, 2011 at 12:55:35AM -0800, Bernhard Schmidt wrote:
> >>> >> > % scan done, setting up the BSS
> >>> >> > [ 296.060536] ath: Failed to stop TX DMA in 100 msec after killing last frame
> >>> >> > [ 296.075985] ath: Failed to stop TX DMA in 100 msec after killing last frame
> >>> >> > [ 296.083032] ath: Failed to stop TX DMA!
> >>> >> > [ 296.099187] ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
> >>> >> > [ 296.106884] ath: Could not stop RX, we could be confusing the DMA engine when we start RX up
> >>> >> > [ 296.127247] ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
> >>> >> > [ 297.163998] ath: Failed to stop TX DMA in 100 msec after killing last frame
> >>> >> > [ 297.182977] ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
> >>> >> > [ 297.190677] ath: Could not stop RX, we could be confusing the DMA engine when we start RX up
> >>> >> > [ 297.211004] ath: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020
> >>> >> > [ 298.247659] ath: Failed to stop TX DMA in 100 msec after killing last frame
> >>> >> > % ..
> >>> >>
> >>> >> If its so easy to reproduce we can likely fix this for good!
> >>> >
> >>> > Actually, haven't found a way to *not* reproduce it. :)
> >>>
> >>> the obvious way of increasing the timeout for stopping the DMA might help ?
> >>> in mac.c
> >>>
> >>> 148 #define ATH9K_TX_STOP_DMA_TIMEOUT 4000 /* usec */
> >>> increase it to 10000 usec
> >>>
> >>> and
> >>> 781#define AH_RX_STOP_DMA_TIMEOUT 10000 /* usec */
> >>> increase it to 20,000 usec
> >>
> >> Did try to play with various values, no differences whatsoever,
> >> obviously. Even tried polling a whole second. The messages do indicate
> >> that there is an issue. It's not that the reg isn't polled for long
> >> enough, but instead this is an indicator for something wrong going on.
> >> What I'm wondering though is, that the queue resets which eventually
> >> happen do not have any effect, only after a "full" reset (e.g.
> >> ifconfig down/up) the queues will be usable again.
> >
> > Thanks for trying it out, I thought we have to give sufficient time so
> > that the bit goes low.
> >
> >>
> >> On a site note, after falling back to other chips (9380, 9160), I see
> >> the same issue there too. Not as often, or as immediate as with 9280,
> >> but they do occur (even on different hardware). Having a hostapd
> >> instance idle long enough is able to trigger it eventually.
>
> Can you please give some information regarding this issue in station mode.
> In the station mode does scanning seems to easily trigger this issue?
> Or is there with something like running the traffic or plugging the card out?
After a fresh boot I can trigger it with just:
% modprobe ath9k
% ifconfig wlan0 up
% iw wlan0 scan
the only traffic involved are probe requests being sent and of course
all frames received during a scan. Most of the time it happens on the
first invocation of the scan command, sometimes I need to call it 2 or
3 times.
--
Bernhard
next prev parent reply other threads:[~2011-03-04 17:16 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201102230955.35674.bschmidt@techwires.net>
2011-02-23 17:46 ` [ath9k-devel] DMA issues with ar9280 cards Luis R. Rodriguez
2011-02-23 18:12 ` Adrian Chadd
2011-02-23 18:20 ` Adrian Chadd
2011-02-23 18:24 ` Jouni Malinen
2011-02-23 18:40 ` Adrian Chadd
2011-02-23 23:06 ` Jouni Malinen
2011-02-23 20:06 ` Bernhard Schmidt
2011-02-24 9:33 ` Bernhard Schmidt
2011-02-24 18:18 ` Luis R. Rodriguez
2011-02-25 9:37 ` Bernhard Schmidt
2011-02-25 17:12 ` Luis R. Rodriguez
2011-02-26 9:37 ` Bernhard Schmidt
2011-03-10 0:40 ` Felix Fietkau
2011-03-02 14:51 ` Mohammed Shafi
2011-03-04 11:29 ` Bernhard Schmidt
2011-03-04 15:25 ` Mohammed Shafi
2011-03-04 15:29 ` Mohammed Shafi
2011-03-04 17:16 ` Bernhard Schmidt [this message]
2011-03-09 9:58 ` Mohammed Shafi
2011-03-09 10:01 ` Mohammed Shafi
2011-03-05 23:49 ` crocket
2011-03-09 10:22 ` Peter Stuge
2011-02-23 15:34 Bernhard Schmidt
2011-02-23 16:22 ` Peter Stuge
2011-02-23 18:02 ` Luis R. Rodriguez
2011-02-23 19:51 ` Peter Stuge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201103041816.11100.bschmidt@techwires.net \
--to=bschmidt@techwires.net \
--cc=ath9k-devel@lists.ath9k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.