linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felix Fietkau <nbd@openwrt.org>
To: Mark Mentovai <mark@moxienet.com>
Cc: linux-wireless@vger.kernel.org, linville@tuxdriver.com,
	lrodriguez@atheros.com, vasanth@atheros.com
Subject: Re: [PATCH v2 4/4] ath9k: improve reliability of beacon transmission and stuck beacon handling
Date: Thu, 10 Mar 2011 23:13:43 +0100	[thread overview]
Message-ID: <4D794D17.4080809@openwrt.org> (raw)
In-Reply-To: <AANLkTik8CVL-XQvLxORWBcwyW8ZwT6Kk78HoyMAfpgmi@mail.gmail.com>

On 2011-03-10 10:55 PM, Mark Mentovai wrote:
> Felix Fietkau wrote:
>> diff --git a/drivers/net/wireless/ath/ath9k/mac.c b/drivers/net/wireless/ath/ath9k/mac.c
> [...]
>> +bool ath9k_hw_stop_dma_queue(struct ath_hw *ah, u32 q)
> [...]
>> -                               ath_err(common,
>> -                                       "Failed to stop TX DMA in 100 msec after killing last frame\n");
> 
> Are you concerned about getting rid of this error that
> ath9k_hw_stoptxdma used to print? It doesn’t seem like anything else
> in the remaining code that uses it (ath_beacon_tasklet and
> ath9k_set_beaconing_status) will produce an error.
The error message is in a code path that never triggered (or at least
never should have) for the beacon code, based on the fact that it was
only supposed to be called when the number of pending frames in the
queue was already 0.
I removed the entire block of code because attempting to stop DMA by
messing with the queue parameters and doing busy-waiting is completely
bogus and counterproductive for anything beacon related.

> Based on the message you sent with patch 2/4, “I can no longer trigger
> these messages on AR9380, and on AR9280 they become much more rare,”
> and the fact that you left the message intact in that patch’s
> ath_drain_all_txq, I wonder it’s appropriate to remove the message
> from this function.
Anything beacon related will report stuck beacons if frames stay in the
queue until the next interval, so there is some degree of reporting
there already.

- Felix

  reply	other threads:[~2011-03-10 22:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-10 13:41 [PATCH v2 1/4] ath9k_hw: fix REG_SET_BIT and REG_CLR_BIT for multiple bits Felix Fietkau
2011-03-10 13:41 ` [PATCH v2 2/4] ath9k: fix stopping tx dma on reset Felix Fietkau
2011-03-10 13:41   ` [PATCH v2 3/4] ath9k: fix the .flush driver op implementation Felix Fietkau
2011-03-10 13:41     ` [PATCH v2 4/4] ath9k: improve reliability of beacon transmission and stuck beacon handling Felix Fietkau
2011-03-10 21:55       ` Mark Mentovai
2011-03-10 22:13         ` Felix Fietkau [this message]
2011-03-10 22:36           ` Mark Mentovai
2011-03-10 21:55     ` [PATCH v2 3/4] ath9k: fix the .flush driver op implementation Mark Mentovai
2011-03-10 22:18       ` Felix Fietkau

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=4D794D17.4080809@openwrt.org \
    --to=nbd@openwrt.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=lrodriguez@atheros.com \
    --cc=mark@moxienet.com \
    --cc=vasanth@atheros.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).