* Update on Android PM enhancements - CONFIG_HAS_EARLYSUSPEND and friends
@ 2011-03-23 20:05 Luis R. Rodriguez
2011-03-23 20:28 ` Greg KH
2011-03-24 0:47 ` Arve Hjønnevåg
0 siblings, 2 replies; 7+ messages in thread
From: Luis R. Rodriguez @ 2011-03-23 20:05 UTC (permalink / raw)
To: Arve Hjønnevåg
Cc: linux-kernel, Rafael J. Wysocki, devel, Naveen Singh, Kalle Valo,
Benjamin Herrenschmidt, Jouni Malinen, Vipin Mehta,
linux-wireless
Arve,
What ever happened with your series on the Android PM extensions you
had submitted in 2009 [1] ? I'm working on ath6kl right now and I'm
going to remove all that early suspend crap as its not upstream and I
want to get ath6kl into upstream proper. Do you have plans for a
replacement? Since the thread covers wake locks, have you ironed out
what you are going to do with that as well?
[1] https://lists.linux-foundation.org/pipermail/linux-pm/2009-February/019498.html
Luis
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Update on Android PM enhancements - CONFIG_HAS_EARLYSUSPEND and friends
2011-03-23 20:05 Update on Android PM enhancements - CONFIG_HAS_EARLYSUSPEND and friends Luis R. Rodriguez
@ 2011-03-23 20:28 ` Greg KH
2011-03-24 0:47 ` Arve Hjønnevåg
1 sibling, 0 replies; 7+ messages in thread
From: Greg KH @ 2011-03-23 20:28 UTC (permalink / raw)
To: Luis R. Rodriguez
Cc: Arve Hjønnevåg, Vipin Mehta, Benjamin Herrenschmidt,
Kalle Valo, linux-wireless, linux-kernel, Rafael J. Wysocki,
devel, Jouni Malinen
On Wed, Mar 23, 2011 at 01:05:47PM -0700, Luis R. Rodriguez wrote:
> Arve,
>
> What ever happened with your series on the Android PM extensions you
> had submitted in 2009 [1] ? I'm working on ath6kl right now and I'm
> going to remove all that early suspend crap as its not upstream and I
> want to get ath6kl into upstream proper. Do you have plans for a
> replacement? Since the thread covers wake locks, have you ironed out
> what you are going to do with that as well?
Wake locks are all taken care of, see:
http://lwn.net/Articles/416690/
for the details.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Update on Android PM enhancements - CONFIG_HAS_EARLYSUSPEND and friends
2011-03-23 20:05 Update on Android PM enhancements - CONFIG_HAS_EARLYSUSPEND and friends Luis R. Rodriguez
2011-03-23 20:28 ` Greg KH
@ 2011-03-24 0:47 ` Arve Hjønnevåg
2011-03-24 9:04 ` Johannes Berg
1 sibling, 1 reply; 7+ messages in thread
From: Arve Hjønnevåg @ 2011-03-24 0:47 UTC (permalink / raw)
To: Luis R. Rodriguez
Cc: linux-kernel, Rafael J. Wysocki, devel, Naveen Singh, Kalle Valo,
Benjamin Herrenschmidt, Jouni Malinen, Vipin Mehta,
linux-wireless
2011/3/23 Luis R. Rodriguez <mcgrof@gmail.com>:
> Arve,
>
> What ever happened with your series on the Android PM extensions you
> had submitted in 2009 [1] ? I'm working on ath6kl right now and I'm
> going to remove all that early suspend crap as its not upstream and I
> want to get ath6kl into upstream proper. Do you have plans for a
> replacement?
There is no planned replacement for early suspend, and it will
probably be dropped form the android kernel at some point. The wifi
driver use it to enter a lower operating state when the screen is off.
If you driver does have any other way to put the driver in this state
you need to add an interface that lets user-space select that state
directly.
> Since the thread covers wake locks, have you ironed out
> what you are going to do with that as well?
>
The wakelock code did not get merged. Instead there is a new interface
that should provide the same functionality to drivers, but this has
not integrated with android yet (and you cannot use it directly as it
does not provide the same user-space interface). In theory, you should
be able to replace all the wakelocks in your driver with calls to the
mainline api. Even if you cannot test the result this is better than
just deleting the wakelocks.
--
Arve Hjønnevåg
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Update on Android PM enhancements - CONFIG_HAS_EARLYSUSPEND and friends
2011-03-24 0:47 ` Arve Hjønnevåg
@ 2011-03-24 9:04 ` Johannes Berg
2011-03-24 9:06 ` Johannes Berg
0 siblings, 1 reply; 7+ messages in thread
From: Johannes Berg @ 2011-03-24 9:04 UTC (permalink / raw)
To: Arve Hjønnevåg
Cc: Luis R. Rodriguez, linux-kernel, Rafael J. Wysocki, devel,
Naveen Singh, Kalle Valo, Benjamin Herrenschmidt, Jouni Malinen,
Vipin Mehta, linux-wireless
On Wed, 2011-03-23 at 17:47 -0700, Arve Hjønnevåg wrote:
> There is no planned replacement for early suspend, and it will
> probably be dropped form the android kernel at some point. The wifi
> driver use it to enter a lower operating state when the screen is off.
> If you driver does have any other way to put the driver in this state
> you need to add an interface that lets user-space select that state
> directly.
The interface is called "ip link set wlan0 down".
johannes
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Update on Android PM enhancements - CONFIG_HAS_EARLYSUSPEND and friends
2011-03-24 9:04 ` Johannes Berg
@ 2011-03-24 9:06 ` Johannes Berg
2011-03-24 9:32 ` Kalle Valo
0 siblings, 1 reply; 7+ messages in thread
From: Johannes Berg @ 2011-03-24 9:06 UTC (permalink / raw)
To: Arve Hjønnevåg
Cc: Luis R. Rodriguez, linux-kernel, Rafael J. Wysocki, devel,
Naveen Singh, Kalle Valo, Benjamin Herrenschmidt, Jouni Malinen,
Vipin Mehta, linux-wireless
On Thu, 2011-03-24 at 10:04 +0100, Johannes Berg wrote:
> On Wed, 2011-03-23 at 17:47 -0700, Arve Hjønnevåg wrote:
>
> > There is no planned replacement for early suspend, and it will
> > probably be dropped form the android kernel at some point. The wifi
> > driver use it to enter a lower operating state when the screen is off.
> > If you driver does have any other way to put the driver in this state
> > you need to add an interface that lets user-space select that state
> > directly.
>
> The interface is called "ip link set wlan0 down".
Or, in fact, just powersaving mode. But I don't think for a wifi driver
there's any need for special driver specific states.
johannes
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Update on Android PM enhancements - CONFIG_HAS_EARLYSUSPEND and friends
2011-03-24 9:06 ` Johannes Berg
@ 2011-03-24 9:32 ` Kalle Valo
2011-03-30 6:03 ` Kalle Valo
0 siblings, 1 reply; 7+ messages in thread
From: Kalle Valo @ 2011-03-24 9:32 UTC (permalink / raw)
To: Johannes Berg
Cc: Arve Hjønnevåg, Luis R. Rodriguez, linux-kernel,
Rafael J. Wysocki, devel, Naveen Singh, Benjamin Herrenschmidt,
Jouni Malinen, Vipin Mehta, linux-wireless
Johannes Berg <johannes@sipsolutions.net> writes:
> On Thu, 2011-03-24 at 10:04 +0100, Johannes Berg wrote:
>> On Wed, 2011-03-23 at 17:47 -0700, Arve Hjønnevåg wrote:
>>
>> > There is no planned replacement for early suspend, and it will
>> > probably be dropped form the android kernel at some point. The wifi
>> > driver use it to enter a lower operating state when the screen is off.
>> > If you driver does have any other way to put the driver in this state
>> > you need to add an interface that lets user-space select that state
>> > directly.
>>
>> The interface is called "ip link set wlan0 down".
>
> Or, in fact, just powersaving mode.
Exactly.
> But I don't think for a wifi driver there's any need for special
> driver specific states.
In maemo, to save power, we decreased the dynamic power save timeout
whenever display was turned off. This was all done from user space and
wifi driver in the kernel was completely unaware of the display state.
But I think this is still a hack and we should save as much as
possible power in all cases, despite the display state. Instead power
save parameters should automatically change based on the transfer
characteristics.
Few examples what I mean:
o if idle or very little traffic -> more aggressive power save
o if latency critical packets (dns requests, higher qos classes etc)
-> decrease latency
o if active data transfer -> increase throughput
And before someone suggests adding dynamic timeout variable to
nl80211: I think it's very much implementation specific parameter. Not
all drivers support it and it might be that even in future mac80211
uses something else. So having the timeout variable in nl80211 is not
a long term solution.
--
Kalle Valo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Update on Android PM enhancements - CONFIG_HAS_EARLYSUSPEND and friends
2011-03-24 9:32 ` Kalle Valo
@ 2011-03-30 6:03 ` Kalle Valo
0 siblings, 0 replies; 7+ messages in thread
From: Kalle Valo @ 2011-03-30 6:03 UTC (permalink / raw)
To: Johannes Berg
Cc: Arve Hjønnevåg, Luis R. Rodriguez, linux-kernel,
Rafael J. Wysocki, devel, Naveen Singh, Benjamin Herrenschmidt,
Jouni Malinen, Vipin Mehta, linux-wireless
Kalle Valo <kvalo@adurom.com> writes:
> In maemo, to save power, we decreased the dynamic power save timeout
> whenever display was turned off. This was all done from user space and
> wifi driver in the kernel was completely unaware of the display state.
[...]
> And before someone suggests adding dynamic timeout variable to
> nl80211: I think it's very much implementation specific parameter. Not
> all drivers support it and it might be that even in future mac80211
> uses something else. So having the timeout variable in nl80211 is not
> a long term solution.
I totally forgot that Juuso added QoS requirements support to
mac80211. And that's the proper wayq to do this, user space sets QoS
requirements based on display state, and whatever else it thinks is
important, and mac80211 adapts the power save parameters accordingly.
In this method we are not revealing any implemention details to user
space, and that's always a good thing.
--
Kalle Valo
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-03-30 6:04 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-23 20:05 Update on Android PM enhancements - CONFIG_HAS_EARLYSUSPEND and friends Luis R. Rodriguez
2011-03-23 20:28 ` Greg KH
2011-03-24 0:47 ` Arve Hjønnevåg
2011-03-24 9:04 ` Johannes Berg
2011-03-24 9:06 ` Johannes Berg
2011-03-24 9:32 ` Kalle Valo
2011-03-30 6:03 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox