linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: James Ketrenos <jketreno@linux.intel.com>
To: Michael Wu <flamingice@sourmilk.net>
Cc: Michael Buesch <mb@bu3sch.de>, Jiri Benc <jbenc@suse.cz>,
	John Linville <linville@tuxdriver.com>,
	linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211: Update stop_queues kdoc
Date: Fri, 01 Jun 2007 10:32:04 -0700	[thread overview]
Message-ID: <46605814.1090806@linux.intel.com> (raw)
In-Reply-To: <200706011204.23666.flamingice@sourmilk.net>

Michael Wu wrote:
> On Friday 01 June 2007 09:58, James Ketrenos wrote:
>> In this way we are putting in a work around that doesn't result in an API
>> change, and that can eventually (hopefully) be fixed the "right way"
>> (whatever that may end up being)
>>
> A workaround could be implemented, but I currently don't see any cases where 
> stopping/waking the queue outside of open/stop/tx is necessary or correct. 

Is calling the ieee80211_stop_queue[s] from open/stop OK then?  The doc update said only in ops->tx.  Should the driver be calling it in the stop callback, or will the stack stop the queues for us?

iwlwifi currently calls ieee80211_stop_queue from the Tx handler and calls ieee80211_stop_queues in the event the adapter is reset (due to HW error, RF kill transition, hw tear down, etc.) as it asynchronously brings re-initializes the hardware.

We definitely need to wake the queue outside of open/stop/tx.  If you stop the queue due to the HW ring being full, you won't be able to wake the queue until the HW has asynchronously freed a Tx slot.

iwlwifi calls ieee80211_wake_queue during buffer reclaiming after the HW indicates the Tx has completed. 

James

> (in bcm43xx, stopping the tx rings is more correct and effective for what is 
> being done there - stopping TX so the radio can be recalibrated)
> 
> -Michael Wu

  reply	other threads:[~2007-06-01 19:21 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-01  9:29 [PATCH] mac80211: Update stop_queues kdoc Michael Buesch
2007-06-01  9:48 ` Johannes Berg
2007-06-01  9:53   ` Michael Buesch
2007-06-01 11:55 ` Olivier Cornu
2007-06-01 20:42   ` Michael Buesch
2007-06-01 21:00     ` Olivier Cornu
2007-06-01 21:42       ` Michael Buesch
2007-06-01 21:53         ` Olivier Cornu
2007-06-02 13:17         ` Olivier Cornu
2007-06-02 13:37           ` Michael Buesch
2007-06-02 18:41             ` Olivier Cornu
2007-06-01 16:58 ` James Ketrenos
2007-06-01 19:04   ` Michael Wu
2007-06-01 17:32     ` James Ketrenos [this message]
2007-06-01 20:36       ` Michael Wu
2007-06-01 20:52         ` Michael Buesch
2007-06-01 20:41       ` Michael Buesch
2007-06-01 20:52       ` Olivier Cornu
2007-06-01 20:54         ` Michael Buesch

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=46605814.1090806@linux.intel.com \
    --to=jketreno@linux.intel.com \
    --cc=flamingice@sourmilk.net \
    --cc=jbenc@suse.cz \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=mb@bu3sch.de \
    /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).