From: David Brownell <david-b@pacbell.net>
To: "Woodruff, Richard" <r-woodruff2@ti.com>
Cc: linux-pm@lists.osdl.org
Subject: Re: RFC -- updated Documentation/power/devices.txt
Date: Tue, 11 Jul 2006 09:51:48 -0700 [thread overview]
Message-ID: <200607110951.48349.david-b@pacbell.net> (raw)
In-Reply-To: <EA12F909C0431D458B9D18A176BEE4A5068E0468@dlee02.ent.ti.com>
On Tuesday 11 July 2006 12:56 am, Woodruff, Richard wrote:
> One trivial comment would be to use number bullets instead of asterisks
> as ordering is important.
OK ... though with ASCII text, that means manual re-numbering when
things change. It'd be nice if <ol> worked. :)
> > * class.suspend(dev) is called after tasks are frozen, for devices
> > associated with a class that has such a method.
>
> Should/is call.suspend be called before bus.suspend_preapare? If it is
> it should be documented first. Stopping class level things before bus
> level which services it seems more natural.
The suspend_prepare() is new, and it's called at that point; there's no
generic class.suspend_prepare().
However class.suspend() is called before bus.suspend(), and bus.suspend()
is what drivers currently provide. ISTR the notion is that we'll be moving
some code out of driver suspend() methods into reusable class methods,
say for networking, and the suspend_prepare() solves much earlier issues
like needing to handshake with userspace.
> The resume bullets are documented this way.
Bug, now fixed; thanks. Driver has early and normal opportunities to
resume, then class gets a chance to reactivate after the hardware works.
> > Low Power (suspend) States
> > --------------------------
> > ...
> > Some details here may be platform-specific. Systems may have devices
> > that may be fully active in certain sleep states, ...
>
> Partial system idle states generally involve several devices. There
> doesn't seem to be a grouping mechanism to define these relationships.
Not in the standard infrastructure, no; but then those groupings exist
regardless of whether they're used in a "partial system idle" state.
> To take device relationships into account we currently look to scripted
> user space groupings and notification accesses via extended driver sysfs
> endpoints.
Those things are out-of-scope for this writeup, since we don't have
such grouping APIs.
>From my perspective, the groupings are part of a product-specific definition
of the different system states. Those can be "run" states (operating points)
or "sleep" states ... where of course the line between a partially-off "run"
state and a partially-on "sleep" state can be very fuzzy!
> > Runtime Power Management
> > ========================
> > ...
> > In each device's directory, there is a 'power' directory, which
> > contains at least a 'state' file. Reading from this file displays what
> > power state the device is currently in. Writing to this file initiates
> > a transition to the specified power state, which must currently be a
> > number: '0' for 'on', or either '2' or '3' for 'suspended' (which
> > sometimes also implies reset, especially in conjunction with deeper
> > system sleep states).
>
> It would be nice if some of the previous 'on-ness' discussions would
> result in some movement here.
True; that's also in line with Andrew's comment, and the deprecation warning
I stuck in for those /sys/devices/.../power/state files. But all that would
be new behavior, and at this point I was just aiming to correctly describe
the stuff that's there now (and have it make some sense).
If those discussions bear fruit, that section will need updating.
- Dave
next prev parent reply other threads:[~2006-07-11 16:51 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-11 7:56 RFC -- updated Documentation/power/devices.txt Woodruff, Richard
2006-07-11 16:51 ` David Brownell [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-07-10 22:25 David Brownell
2006-07-11 5:56 ` Andrew Morton
2006-07-11 16:38 ` David Brownell
2006-07-11 21:57 ` David Brownell
2006-07-12 12:25 ` Pavel Machek
2006-07-12 14:04 ` Alan Stern
2006-07-12 15:45 ` David Brownell
2006-07-12 16:03 ` Alan Stern
2006-07-23 1:37 ` David Brownell
2006-07-23 3:59 ` Alan Stern
2006-07-23 10:50 ` Rafael J. Wysocki
2006-07-23 13:03 ` Alan Stern
2006-07-23 22:45 ` Rafael J. Wysocki
2006-07-24 3:22 ` David Brownell
2006-07-24 9:46 ` Rafael J. Wysocki
2006-07-24 14:51 ` Alan Stern
2006-07-24 15:15 ` David Brownell
2006-07-24 15:42 ` Alan Stern
2006-07-24 17:11 ` David Brownell
2006-07-24 20:44 ` Alan Stern
2006-07-24 21:19 ` David Brownell
2006-07-25 15:42 ` Alan Stern
2006-07-23 16:22 ` David Brownell
2006-07-11 14:40 ` Pavel Machek
2006-07-11 21:28 ` Pavel Machek
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=200607110951.48349.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=linux-pm@lists.osdl.org \
--cc=r-woodruff2@ti.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