All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kalle Valo <kalle.valo@nokia.com>
To: "Johannes Berg" <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [RFC v3 2/4] mac80211: implement dynamic power save
Date: Sat, 29 Nov 2008 08:53:34 +0200	[thread overview]
Message-ID: <87vdu710r5.fsf@nokia.com> (raw)
In-Reply-To: <1227910460.3543.3.camel@johannes.berg> (ext Johannes Berg's message of "Fri\, 28 Nov 2008 23\:14\:20 +0100")

Johannes Berg <johannes@sipsolutions.net> writes:

> On Fri, 2008-11-28 at 21:49 +0200, Kalle Valo wrote:
>
>> +	/* always wake queues to avoid having them stopped forever */
>> +	netif_tx_wake_all_queues(local->mdev);
>
> I think we really need to think about keeping track of _who_ wanted the
> queues stopped now...

Makes sense.

> We have a number of users of stopping queues now:
>
>  * driver, obviously
>  * scanning code
>  * PS code
>  * ..?
>
> So when the driver wants a queue stopped, but the PS code wakes them up,
> the driver will end up having to drop a packet, which isn't really good.
> We really need to keep track, for each queue, who wants it
> stopped/started and then only start the real queue if all the code
> consents.

Frankly I'm not that familiar with mac80211 queues, but it's a good
time to learn now :) I'll look into this and will make a proposal.

-- 
Kalle Valo

  reply	other threads:[~2008-11-29  6:54 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-28 19:49 [RFC v3] mac80211 dynamic power save Kalle Valo
2008-11-28 19:49 ` [RFC v3 1/4] mac80211: enable IEEE80211_CONF_PS only when associated Kalle Valo
2008-11-28 22:11   ` Johannes Berg
2008-11-29  6:50     ` Kalle Valo
2008-11-28 19:49 ` [RFC v3 2/4] mac80211: implement dynamic power save Kalle Valo
2008-11-28 22:14   ` Johannes Berg
2008-11-29  6:53     ` Kalle Valo [this message]
2008-12-01 19:10   ` Luis R. Rodriguez
2008-12-01 22:40     ` Johannes Berg
2008-12-01 23:49       ` Luis R. Rodriguez
2008-12-02 19:42     ` Kalle Valo
2008-11-28 19:49 ` [RFC v3 3/4] mac80211: add IEEE80211_HW_NO_DYNAMIC_PS flag Kalle Valo
2008-11-28 22:15   ` Johannes Berg
2008-11-29  6:55     ` Kalle Valo
2008-11-28 19:49 ` [RFC v3 4/4] mac80211: move dynamic_ps_timeout to hw.conf Kalle Valo
2008-11-28 22:18   ` Johannes Berg
2008-11-29  7:00     ` Kalle Valo
2008-12-01 19:11   ` Luis R. Rodriguez
2008-12-01 19:41     ` Johannes Berg
2008-12-01 20:36       ` Luis R. Rodriguez
2008-12-01 20:30     ` Kalle Valo

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=87vdu710r5.fsf@nokia.com \
    --to=kalle.valo@nokia.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.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.