From: Felix Fietkau <nbd@openwrt.org>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] "Failed to stop Tx DMA" and "Could not stop RX" with AR9485
Date: Thu, 01 Mar 2012 20:18:57 +0100 [thread overview]
Message-ID: <4F4FCBA1.4080601@openwrt.org> (raw)
In-Reply-To: <20120301184243.32168.qmail@stuge.se>
On 2012-03-01 7:42 PM, Peter Stuge wrote:
> Felix Fietkau wrote:
>> Saying it's a single class of issues does not help in any way, because
>> with the issues I've fixed so far, the cause has been wildly different.
>> Sometimes software race conditions, sometimes wrong register settings,
>> or sometimes actual issues in setting up DMA descriptors.
>
> All affecting DMA.
You're missing the point *again*. Many of the things I found were
unrelated to DMA, but messed up the MAC state enough to trigger this
warning. Of course you could say that since the MAC also does DMA, the
problem must thereby somehow be DMA related, but using that to justify
your whining would be kind of stupid. Let's just drop the "it says DMA,
so it must be DMA related" nonsense.
>> Instrumenting at a lower level does not necessarily help. Even if you
>> manage to capture all PCI bus traffic, there's still a good chance that
>> this won't help, because the problem could very well be in a completely
>> different layer.
>
> Yes, it depends on what the error is of course. But making
> assumptions is not the way to do debugging.
Right, that's why I'm trying to bust your assumption that starting with
the lowest layer is a good idea.
>> > Still, DMA is not exotic, and here are DMA problems again.
>>
>> That last sentence makes no sense at all.
>
> My point is that DMA by peripheral devices and the drivers to manage
> it are established technologies in computer busses across the world,
> so it keeps surprising me that drivers in 2012 get it wrong.
Which proves to me yet again that you're completely missing the point of
what I'm saying about the likelihood of this being *NOT* DMA related.
>> > I think it's clear that the community will never have the opportunity
>> > to work closely with Atheros on the lowest levels,
>>
>> How do you define 'lowest level'?
>
> An example would be to monitor state machines inside the device using
> side channel debugging, while in parallell monitoring state machines
> inside the driver. Then comparing them after the fact and seeing
> where one goes wrong. Find out why, and audit the complete driver for
> similar types of errors.
>
> Of course the same issue could (theoretically) also be found purely
> by static analysis, but that's not very efficient.
In my experience, this generates *way* too much data to be of any use to
narrow down the source of the problem.
>> If you think that just because the message says something about
>> DMA, it must be an issue in DMA transfers, you're completely
>> missing the point.
>
> Not saying must be the cause, but it must be eliminated before
> walking up the layers.
next prev parent reply other threads:[~2012-03-01 19:18 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-29 21:35 [ath9k-devel] "Failed to stop Tx DMA" and "Could not stop RX" with AR9485 Kim Lidström
2012-02-29 21:35 ` Kim Lidström
2012-02-29 21:50 ` [ath9k-devel] " Adrian Chadd
2012-02-29 21:50 ` Adrian Chadd
2012-02-29 23:52 ` [ath9k-devel] " Adrian Chadd
2012-02-29 23:52 ` Adrian Chadd
2012-03-01 5:09 ` [ath9k-devel] " Mohammed Shafi
2012-03-01 5:09 ` Mohammed Shafi
2012-03-01 5:53 ` [ath9k-devel] " Kim Lidström
2012-03-01 5:53 ` Kim Lidström
2012-03-01 16:23 ` [ath9k-devel] " Mieszko Ślusarczyk
2012-03-02 6:21 ` Kim Lidström
2012-03-01 14:46 ` Peter Stuge
2012-03-01 15:04 ` Mohammed Shafi
2012-03-01 17:50 ` Ben Greear
2012-03-01 18:01 ` Peter Stuge
2012-03-01 19:05 ` Sune Mølgaard
2012-03-01 17:02 ` Adrian Chadd
2012-03-01 17:23 ` Peter Stuge
2012-03-01 17:22 ` Felix Fietkau
2012-03-01 17:53 ` Peter Stuge
2012-03-01 18:13 ` Felix Fietkau
2012-03-01 18:42 ` Peter Stuge
2012-03-01 18:51 ` Peter Stuge
2012-03-01 19:18 ` Felix Fietkau [this message]
2012-03-01 19:53 ` Peter Stuge
2012-03-01 20:26 ` Adrian Chadd
2012-03-01 20:40 ` Felix Fietkau
2012-03-01 21:27 ` Peter Stuge
2012-03-02 0:38 ` Sujith Manoharan
2012-03-02 2:21 ` Peter Stuge
2012-03-07 17:29 ` Felix Fietkau
2012-03-07 17:29 ` Felix Fietkau
2012-03-07 18:35 ` Paul Farrow
2012-03-07 18:37 ` Paul Farrow
2012-03-07 19:42 ` Felix Fietkau
2012-03-07 19:55 ` Paul Farrow
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=4F4FCBA1.4080601@openwrt.org \
--to=nbd@openwrt.org \
--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.