From: "Amit Kucheria" <kucheria.amit@gmail.com>
To: "Scott E. Preece" <preece@motorola.com>
Cc: linux-pm@lists.osdl.org, pavel@ucw.cz
Subject: Re: [RFC] dynamic device power management proposal
Date: Mon, 26 Mar 2007 16:53:16 +0300 [thread overview]
Message-ID: <52d486620703260653l73ffde92we68b413cc61a9144@mail.gmail.com> (raw)
In-Reply-To: <200703212019.l2LKJdbj029831@olwen.urbana.css.mot.com>
On 3/21/07, Scott E. Preece <preece@motorola.com> wrote:
>
> | From: "Amit Kucheria"<kucheria.amit@gmail.com>
> |
> | On 3/21/07, Shaohua Li <shaohua.li@intel.com> wrote:
> | > On Wed, 2007-03-21 at 02:30 +0800, Pavel Machek wrote:
> |
> | > > No, that's not how it works; look at hda_audio, it already has
> | > > powersave. Just power down audio card 5 seconds after its control file
> | > > is closed.
> | > It's another case of doing policy in a driver.
> | >
> |
> | IMHO, this kind of policy is best handled inside the driver because it
> | is specific to the hardware. This will ensure that the driver will
> | just work on every distro without some userspace policy being present
> | and setup _correctly_.
> ---
I was playing devil's advocate here. Considering who I work for, we
definitely have cases where having all these settings configurable
from userspace sounds like a very good idea. But after thinking some
more, I am worried about having too many things exported to userspace
and increasing the complexity of the policy manager. Combined with
poorly chosen default values, it would mean that one could never
compile and flash a kernel that would give good battery life without
also running the vendor-shipped user-space policy manager that might
be binary only.
> On an embedded device, the knowledge of when it makes sense to keep a
> disk spinning, to avoid latency when it's needed next, versus when it
> makes sense to spin it down to save power, probably fits better in user
> space than in the kernel. In such a case there's likely to be a "master"
> application (in our case, for instance, "the phone application") that
> owns a lot of knowledge about whole-system state and user interactions.
> Not, of course, that we have a disk to spin down.
>
> On the other hand, we also have devices that do their own power saving,
> largely in cases where they don't have latency issues large enough to
> worry about.
I believe we do need something along the lines of what USB has as
pointed out by Alan - an 'idle time' value and a 'allowed target
state' entry.
Regards,
Amit
--
Amit Kucheria, NOKIA
next prev parent reply other threads:[~2007-03-26 13:53 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-21 20:19 [RFC] dynamic device power management proposal Scott E. Preece
2007-03-21 21:45 ` Pavel Machek
2007-03-26 13:53 ` Amit Kucheria [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-03-22 19:18 Scott E. Preece
2007-03-22 19:05 Scott E. Preece
2007-03-27 12:05 ` Pavel Machek
2007-03-27 12:19 ` Oliver Neukum
2007-03-22 13:39 Scott E. Preece
2007-03-22 13:48 ` Oliver Neukum
2007-03-22 14:01 ` Pavel Machek
2007-03-22 14:45 ` Alan Stern
2007-03-22 18:53 ` David Brownell
2007-03-19 9:08 Shaohua Li
2007-03-19 15:44 ` Alan Stern
2007-03-20 1:06 ` Shaohua Li
2007-03-20 14:58 ` Alan Stern
2007-03-21 1:43 ` Shaohua Li
2007-03-21 14:44 ` Alan Stern
2007-03-22 4:42 ` Len Brown
2007-03-22 11:56 ` Jim Gettys
2007-03-22 19:28 ` David Brownell
2007-03-22 13:20 ` Pavel Machek
2007-03-22 13:44 ` Oliver Neukum
2007-03-22 13:56 ` Pavel Machek
2007-03-22 14:18 ` Oliver Neukum
2007-03-22 14:22 ` Pavel Machek
2007-03-22 14:26 ` Oliver Neukum
2007-03-22 14:35 ` Pavel Machek
2007-03-22 19:41 ` David Brownell
2007-03-22 19:58 ` David Brownell
2007-03-20 18:30 ` Pavel Machek
2007-03-21 1:34 ` Shaohua Li
2007-03-21 15:21 ` Amit Kucheria
2007-03-21 21:49 ` Dmitry Krivoschekov
2007-03-21 22:54 ` Pavel Machek
2007-03-21 21:39 ` Pavel Machek
2007-03-22 3:09 ` Shaohua Li
2007-03-22 13:13 ` Pavel Machek
2007-03-22 19:20 ` David Brownell
2007-03-22 20:32 ` Alan Stern
2007-03-22 20:02 ` David Brownell
2007-03-22 22:10 ` Greg KH
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=52d486620703260653l73ffde92we68b413cc61a9144@mail.gmail.com \
--to=kucheria.amit@gmail.com \
--cc=linux-pm@lists.osdl.org \
--cc=pavel@ucw.cz \
--cc=preece@motorola.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