From: David Brownell <david-b@pacbell.net>
To: "Scott E. Preece" <preece@motorola.com>
Cc: linux-pm@lists.osdl.org, linux@dominikbrodowski.net
Subject: Re: RE: on-ness
Date: Mon, 1 May 2006 14:58:37 -0700 [thread overview]
Message-ID: <200605011458.38383.david-b@pacbell.net> (raw)
In-Reply-To: <200604271412.k3RECVA2009467@olwen.urbana.css.mot.com>
[-- Attachment #1: Type: text/plain, Size: 2859 bytes --]
On Thursday 27 April 2006 7:12 am, Scott E. Preece wrote:
>
> Let me recast the question a little.
>
> Quite aside from the utility of having names that are meaningful to a
> human reader unfamiliar with a particular device, is the problem of
> supporting a system-level power policy on top of devices that have
> different device-level power states.
Related: handling the interactions between system and device power
states. System states commonly constrain device states, e.g. by rules
like "clocks X, Y, and Z are unavailable in system states B and C".
I have an API proposal for that particular problem, but there are
similar ones in other areas, like the available power. (Maybe some
of the supplies have less power available -- or none! -- or switch to
lower voltage modes.)
> So, is the sum of this conversation to this point that it simply isn't
> possible to come up with a set of names and attributes that are
> meaningful across devices?
Possible is one thing; you can always define an ever-growing set of
attributes. But would it be useful ... or a nightmare to manage,
when scaling over all platforms that Linux handles? I lean towards
the latter.
> Or might it be possible to map the set of
> special conditions (like the "NoSoftReset" below) to a common vocabulary
> that a device could expose to power management and that a generic,
> cross-platform power management facility could map to system states and
> transitions?
There will be some common features, sure, but I'm skeptical about the
notion of a generic cross-platform wunderfacility.
And there are other options. My current favorite is still to expose
device-specific power states purely for test/debug, and expect the
kernel to handle everything correctly.
(We do need a better notion of drivers interacting with a system-wide
power manager. Currently there IS no such notion, and it's a huge
hole.)
> In my domain (consumer devices) it's not such a big deal, because we
> pick the devices and can write code [albeit with some effort that we
> would rather not expend] to control each device appropriately in the
> context of the system's projected use cases. However, even in our domain
> we're beginning to need to deal with USB OTG devices being added, and it
> would be useful to be able to handle them at least somewhat
> intelligently based on attributes that they expose.
Heh. OTG, yes. I've put some thought into that. There happen to be
a few different models to consider ... for example, sometimes there are
separate controllers for host and peripheral roles, as well as an OTG
controller coupled to a transceiver (maybe external/interchangeable);
and sometimes it's all integrated (e.g. host vs peripheral is just
different modes working with the same FIFO/SIE silicon).
Again, I don't see any need to expose a userspace API for those.
- Dave
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2006-05-01 21:58 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-27 14:12 RE: on-ness Scott E. Preece
2006-04-27 17:01 ` Patrick Mochel
2006-05-01 21:58 ` David Brownell [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-04-24 21:32 Woodruff, Richard
2006-04-27 1:39 ` Patrick Mochel
2006-05-01 21:35 ` 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=200605011458.38383.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=linux-pm@lists.osdl.org \
--cc=linux@dominikbrodowski.net \
--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