From: David Brownell <david-b@pacbell.net>
To: linux-pm@lists.osdl.org
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Subject: Re: RE: on-ness
Date: Mon, 1 May 2006 14:35:52 -0700 [thread overview]
Message-ID: <200605011435.52860.david-b@pacbell.net> (raw)
In-Reply-To: <EA12F909C0431D458B9D18A176BEE4A5055F11C0@dlee02.ent.ti.com>
[-- Attachment #1: Type: text/plain, Size: 2444 bytes --]
On Monday 24 April 2006 2:32 pm, Woodruff, Richard wrote:
> The current pseudo export
> of these non-functional states doesn't seem so useful. Having some
> fuzzy level of idleness seems much better.
I've come to believe that userspace has little or no business caring
about the details of power states ... except to the extent that a driver
exports them. After all, the driver might not support all the possible
hardware states. And the same controller on two different systems might
expose different power management functionality, based on (among other
things) what external hardware is wired up.
> The point of the idle states Len was floating attempts to define a level
> of on-ness/idleness. As it turns out there was a nice correlation to
> some ACPI states. Numbering them seems reasonable, else your just
> wasting effort translating 'state0, state1, state2, ...', keeping the
> naming convention simple '0,1,2,..0xffff' would seem to lend itself to
> code sharing of necessary class/device specific translation code.
I don't think I agree with "seem". We'd get right back into the mess
we now have ... not just expecting "2" to mean the same thing everywhere
(aargh!) but also finding needs for integer "1.5" that is somehow stuck
between "1" and "2". Much easier to do that with strings!
Plus, numbers lead to an assumption that things can be compared.
One is less than two ... but is an apple less than an orange?
In the same way, different power states are not necessarily
comparable on one single axis.
> > Actually the wakeup characteristics are orthogonal, there are
> > per-device bits controlling whether a device can and should do
> > the wakeup. We don't for example treat "PCI_D3hot with wakeup"
> > as a distinct state.
>
> In my current hack attempts I am trying to associate a 'device' D2 state
> with a local device sleep with an async wake up enabled. In this state
> a devices accesses are locked out until the device wake up event
> happens. This async wake can be from a device specific wake up or from
> an associated timer resource.
So would that be a "wake the whole system" or a runtime power
management mechanism to provide functionality without very much
of a power drain? I've done the latter a few times, but never
needed to expose it through sysfs. If it works, it kind of needs
to be enabled at almost all times, to avoid nightmares of config
management and debugging.
- Dave
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2006-05-01 21:35 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-24 21:32 RE: on-ness Woodruff, Richard
2006-04-27 1:39 ` Patrick Mochel
2006-05-01 21:35 ` David Brownell [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-04-27 14:12 Scott E. Preece
2006-04-27 17:01 ` Patrick Mochel
2006-05-01 21:58 ` David Brownell
2006-04-21 17:58 Preece Scott-PREECE
2006-04-21 18:15 ` David Brownell
2006-04-18 18:39 Brown, Len
2006-04-20 13:25 ` Pavel Machek
2006-04-21 15:27 ` David Brownell
2006-04-21 15:40 ` Dominik Brodowski
2006-04-21 17:03 ` David Brownell
2006-04-21 17:12 ` Dominik Brodowski
2006-04-21 18:30 ` David Brownell
2006-04-21 18:33 ` Dominik Brodowski
2006-04-21 19:00 ` David Brownell
2006-04-21 19:01 ` Pavel Machek
2006-04-24 21:04 ` David Brownell
2006-04-24 21:32 ` Pavel Machek
2006-04-24 23:21 ` David Brownell
2006-04-21 17:15 ` David Brownell
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=200605011435.52860.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=linux-pm@lists.osdl.org \
--cc=linux@dominikbrodowski.net \
/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