public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Geoff Levand <geoffrey.levand@am.sony.com>
To: Patrick Mochel <mochel@digitalimplant.org>
Cc: Linux-pm mailing list <linux-pm@lists.osdl.org>
Subject: Re: Toward runtime power management in Linux
Date: Tue, 02 Aug 2005 10:45:29 -0700	[thread overview]
Message-ID: <42EFB139.3080406@am.sony.com> (raw)
In-Reply-To: <Pine.LNX.4.50.0508011712220.2764-100000@monsoon.he.net>

[-- Attachment #1: Type: text/plain, Size: 2672 bytes --]

Patrick Mochel wrote:
> - Automatic (or Dynamic) Suspend
> 
>   This is where a device will enter a low power state after a certain
>   amount of time has elapsed without any activity.
> 
>   The amount of time should be configurable on a per-device basis through
>   a sysfs interface.
> 
>   What defines "inactivity" is driver-dependent, and we expect to be
>   class-dependent (some classes may define inactivity as the device not
>   being opened; others may define it as having no read()/write() calls;
>   still others may define it as not having any network packets besides
>   ARP requests; you get the idea..) IOW, it doesn't matter to the core.
> 
>   The device should enter a low-power state that it supports. It doesn't
>   matter what state this is, and it's debatable whether or not it should
>   be exported/configurable via sysfs. (It's possible that a userspace-
>   based policy may wish to adjust this based on its extra knowledge about
>   system features/bugs, or based on the desired latency/consumption
>   tradeoff for the particular system or configuration (plugged, unplugged,
>   etc).
>   The device must be powered back on when a new request comes in. Again,
>   whether this is on open(), read(), or socket() is up to the class and
>   the drivers of that class.
> 
> - Directed Suspend
> 
>   This where a user or an application specifies a device to enter a lower
>   power state.
> 
>   The states that a device exports (allows to be set) should be exported.
>   The application should specify which state to enter.
> 
>   By default, the device may not respond to I/O requests. There must be a
>   flag exported to control this.
> 
> - Performance
> 
>   (This was not covered in detail, but based on the specified interface
>   above, it's pretty easy.)
> 
>   The states a device (and its driver) support should be exported via
>   sysfs.
> 
>   A user or application specifies which state to enter.
> 
>   This may turn on/off different functional components of the device. The
>   drivers need to be prepared to handle that.
> 

As you hint on, there is a question of the interface between a policy 
manager and the devices.  Many embedded devices need to aggressively manage 
power, so need to have an interface that allows device specific monitoring 
and control, yet for an average system a more generic policy manager included 
in a vendor's distribution could provide usable PM on a range of systems 
through a generic interface.

So a question is how to support this.  I suppose the PM system could allow 
both system specific interfaces and a 'generic standard' interface to be 
exported, with some mapping between.

-Geoff


[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



  parent reply	other threads:[~2005-08-02 17:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-31  2:36 Toward runtime power management in Linux Alan Stern
2005-08-01  2:10 ` Leo L. Schwab
2005-08-01 11:44   ` Amit Kucheria
2005-08-01 14:16     ` Alan Stern
     [not found]     ` <20050802024415.C3518DB57B@adsl-69-107-32-110.dsl.pltn13.pacbell.net>
2005-08-04  8:06       ` Tony Lindgren
2005-08-04 16:02         ` david-b
2005-08-14 19:53         ` Pavel Machek
2005-08-01 14:07   ` Alan Stern
2005-08-01 15:10     ` Jordan Crouse
2005-08-01 15:23       ` Alan Stern
2005-08-04 17:24     ` Igor Stoppa
     [not found] ` <Pine.LNX.4.50.0508011712220.2764-100000@monsoon.he.net>
2005-08-02 17:45   ` Geoff Levand [this message]
2005-08-25  3:12 ` Benjamin Herrenschmidt
2005-08-25 15:27   ` Alan Stern
2005-08-25 21:42     ` Benjamin Herrenschmidt
2005-08-26  2:25       ` Alan Stern
     [not found] <Pine.LNX.4.50.0508012316380.2764-100000@monsoon.he.net>
2005-08-02 14:35 ` Alan Stern
  -- strict thread matches above, loose matches on Subject: below --
2005-08-25 13:59 Brown, Len

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=42EFB139.3080406@am.sony.com \
    --to=geoffrey.levand@am.sony.com \
    --cc=linux-pm@lists.osdl.org \
    --cc=mochel@digitalimplant.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox