From: Seth Forshee <seth.forshee@canonical.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Marco Porsch <marco@cozybit.com>,
mcgrof@qca.qualcomm.com, jouni@qca.qualcomm.com,
vthiagar@qca.qualcomm.com, senthilb@qca.qualcomm.com,
linux-wireless@vger.kernel.org, devel@lists.open80211s.org,
ath9k-devel@venema.h4ckr.net
Subject: Re: [PATCHv4 2/3] mac80211: mesh power save doze scheduling
Date: Mon, 4 Mar 2013 14:57:14 -0600 [thread overview]
Message-ID: <20130304205714.GD20505@thinkpad-t410> (raw)
In-Reply-To: <1362428733.21028.53.camel@jlt4.sipsolutions.net>
On Mon, Mar 04, 2013 at 09:25:33PM +0100, Johannes Berg wrote:
> On Mon, 2013-03-04 at 13:23 -0600, Seth Forshee wrote:
>
> > I've been looking at power save in mac80211 over the past few days with
> > an eye towards allowing multiple interface to be supported, as a result
> > of comments Johannes made at [1]. It seems like adding driver callbacks
> > for PS which are specific to the interface type is contrary to this
> > goal.
>
> Yeah, this is a concern. I didn't really stand in the way of doing mesh
> powersave though, and it seemed that the new interface here would
> actually be somewhat suitable, since for mesh any kind of powersave code
> needs to know when to wake up/sleep. I would've liked to see less
> reliance on host timers directly in core mac80211 even for the going to
> sleep part though... basically I'm not sure for mesh just having PS
> state will cut it. For managed mode this is easy because it only needs
> to sync with a single AP, but for mesh that's a bit more complicated and
> I think the whole sync should stay in mac80211. In the general case,
> just having the TSF might not be enough, but that can be solved as
> needed.
I read about the basics of mesh PS last week but don't have a firm
enough grasp on the details to understand what all would be needed for
an implementation. From these patches it looks like at minimum the
drivers need the next TBTT. That could be incorporated into something
more generic easily enough.
It's not the end of the world if these patches go in, it will just have
to be sorted out if/when I make some progress on multi-vif PS. I wasn't
planning on trying to lift any of the current restrictions on multiple
vifs right away anyhow, so it should be manageable.
> > The basic idea that's been forming on my mind is add PS states to vifs
> > and make the managed, mesh, etc. code manipulate vif PS states rather
> > than hw states. Then a PS module would manage the hw state based on the
> > aggregate of the vif states.
>
> Yeah, that about matches what I was thinking. But like I said above,
> while this is fairly simple for managed mode, at least as required
> today, it's clearly not as simple for mesh.
Glad to hear I'm headed down the right path :-)
I've been trying to take all modes into consideration, but I had hoped
the implementation details of mesh were something I wouldn't have to be
immediately concerned with, since as you point out all of this is easier
for managed mode.
> For managed mode, we also assume that we can send packets while the
> device is sleeping, and the device will do the right thing to wake up
> for beacons from the AP etc. For mesh, there are many more wakeup
> sources, from what I can tell.
>
> > I don't have a lot of the details worked out yet, and my knowledge of PS
> > in mesh networks (and of mesh network operation in general) is pretty
> > rudimentary at this point. But afaict any modes which support PS define
> > the same two hw states, awake and doze. I wonder whether we should
> > instead aim for a single interface into the driver for PS that's capable
> > of supporting all interface types.
>
> Such an interface would probably have to be the interface now defined
> for mesh, telling the device when to wake up and go to sleep? But this
> interface is rather inefficient for most chipsets...
I was thinking something along those lines as well, either the
interfaces would be similar to the ones here or the data would be
available in ieee80211_conf. Frankly I find having both the PS callback
and IEEE80211_CONF_PS confusing, but maybe if I look at the patches more
closely it will make sense.
Seth
next prev parent reply other threads:[~2013-03-04 20:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-04 17:54 [PATCHv4 1/3] mac80211: move mesh sync beacon handler into neighbour_update Marco Porsch
2013-03-04 17:54 ` [PATCHv4 2/3] mac80211: mesh power save doze scheduling Marco Porsch
2013-03-04 19:23 ` Seth Forshee
2013-03-04 19:43 ` [ath9k-devel] " Ben Greear
2013-03-04 20:25 ` Johannes Berg
2013-03-04 20:57 ` Seth Forshee [this message]
2013-03-05 9:31 ` Marco Porsch
2013-03-05 9:17 ` Marco Porsch
2013-03-04 17:54 ` [PATCHv4 3/3] ath9k: mesh powersave support Marco Porsch
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=20130304205714.GD20505@thinkpad-t410 \
--to=seth.forshee@canonical.com \
--cc=ath9k-devel@venema.h4ckr.net \
--cc=devel@lists.open80211s.org \
--cc=johannes@sipsolutions.net \
--cc=jouni@qca.qualcomm.com \
--cc=linux-wireless@vger.kernel.org \
--cc=marco@cozybit.com \
--cc=mcgrof@qca.qualcomm.com \
--cc=senthilb@qca.qualcomm.com \
--cc=vthiagar@qca.qualcomm.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).