From: "Jordan Crouse" <jordan.crouse@amd.com>
To: linux-pm@lists.osdl.org
Subject: Re: [RFC] Power Management Policies
Date: Mon, 18 Apr 2005 09:39:19 -0600 [thread overview]
Message-ID: <20050418093919.37bb40db@cosmic.amd.com> (raw)
In-Reply-To: <1113772533.3451.131.camel@localhost.localdomain>
[-- Attachment #1: Type: text/plain, Size: 2582 bytes --]
Adam -
Excellent summary.
> On the other extreme, we could allow userspace to configure every
> timeout value, and other policy attributes.
With regards to this specifically, in addition to the
other extremes you mentioned, we also have two different types of
systems. On one hand, we have open systems, with many different options,
and plenty of PCI and PCMCIA slots to keep adding new devices. while
on the other hand, we have closed systems such as cell phones and PDAs,
where the number of attached devices stays fairly constant.
>From a software point of view, the latter is usually controlled by a
operating environment (usually GUI based), that is developed by the
manufacturer and generally not hacked by the end user (most don't even
have terminals). And of course, Linux on an open system is usually
installed and hand tuned by the end user working closely with the
command line.
So when it comes to a closed system, then I don't see any problem with
asking the userspace to configure everything about the policy, because
it gives the operating environment developer the most control over the
final device. If someone down the line discovers that the wake
latency of a device is way too long, then I would much prefer that they
be able to tweak the settings via userspace, rather then have me patch a
new kernel just for them.
However, I can completely see where somebody responsible for an open
system would run in terror from this. This would mean an immense amount
of work for the various distributions, as well as the inevitable
mailing list / technical support snafus that will occur when everybody
needs to figure out the various power management related quirks of their
various devices.
> I personally have some concerns over too much userspace interaction.
> I think these decisions are too device specific, and if we don't take
> responsibility for them, then the layers above the kernel may not be
> able to properly handle it.
I generally favor the "user knows best" policy. As developers, we will
make the best overall power management decisions for our drivers
(timeouts, system state transitions, etc, etc...), but should allow for
a facility for the user to override these if they so choose (possibly
through the policy manager). We can even go so far as to make the
framework disabled by default in the kernel, so that one has to go in,
specifically choose it, and thereby take on the additional risk.
Regards,
Jordan
--
Jordan Crouse
Senior Linux Engineer
AMD - Personal Connectivity Solutions Group
<www.amd.com/embeddedprocessors>
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2005-04-18 15:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-17 21:15 [RFC] Power Management Policies Adam Belay
2005-04-18 15:39 ` Jordan Crouse [this message]
2005-04-22 20:05 ` Pavel Machek
2005-04-27 14:08 ` David Brownell
2005-04-27 14:48 ` Pavel Machek
2005-04-28 0:05 ` David Brownell
2005-04-28 8:23 ` Pavel Machek
2005-04-28 17:16 ` David Brownell
2005-04-28 18:59 ` Pavel Machek
2005-04-28 20:28 ` David Brownell
2005-04-23 7:18 ` Adam Belay
2005-04-27 14:01 ` David Brownell
2005-04-27 14:22 ` David Brownell
2005-04-27 14:57 ` Jordan Crouse
2005-04-27 16:03 ` 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=20050418093919.37bb40db@cosmic.amd.com \
--to=jordan.crouse@amd.com \
--cc=linux-pm@lists.osdl.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