public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: "Scott E. Preece" <preece@motorola.com>
Cc: linux-pm@lists.osdl.org
Subject: Re: [RFC] dynamic device power management proposal
Date: Wed, 21 Mar 2007 22:45:15 +0100	[thread overview]
Message-ID: <20070321214515.GC6057@elf.ucw.cz> (raw)
In-Reply-To: <200703212019.l2LKJdbj029831@olwen.urbana.css.mot.com>

Hi!

> | > > 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_.
> ---
> 
> 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.

Agreed. Please use existing interfaces. Patch to spin disk down and
keep it down is available... but hdparm -y is enough for you.

> 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.

Yep. 

And we do not need great new handwavy framework for
this... please. Just add support for platform you care about.
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  reply	other threads:[~2007-03-21 21:45 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 [this message]
2007-03-26 13:53 ` Amit Kucheria
  -- 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=20070321214515.GC6057@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=linux-pm@lists.osdl.org \
    --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