From: Lukas Wunner <lukas@wunner.de>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Linux PM <linux-pm@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
Linux Documentation <linux-doc@vger.kernel.org>
Subject: Re: [PATCH 1/2] PM: docs: Describe high-level PM strategies and sleep states
Date: Sun, 20 Aug 2017 20:23:26 +0200 [thread overview]
Message-ID: <20170820182326.GA29793@wunner.de> (raw)
In-Reply-To: <2269280.4Jsh6Gf7ai@aspire.rjw.lan>
On Sun, Aug 20, 2017 at 06:05:05PM +0200, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> Reorganize the power management part of admin-guide by adding a
> description of major power management strategies supported by the
> kernel (system-wide and working-state power management) to it and
> dividing the rest of the material into the system-wide PM and
> working-state PM chapters.
>
> On top of that, add a description of system sleep states to the
> system-wide PM chapter.
Found no typos and no factual inaccuracies, the only thing that
irritated me a bit was the part about "working state" power
management:
> +The other strategy, referred to as the
> +:doc:`working-state power management <working-state>`, is based on adjusting the
> +power states of individual hardware components of the system, as needed, in the
> +working state. In consequence, if this strategy is in use, the working state
> +of the system usually does not correspond to any particular physical
> +configuration of it, but can be treated as a metastate covering a range of
> +different power states of the system in which the individual components of it
> +can be either ``active`` (in use) or ``inactive`` (idle). If they are active,
> +they have to be in power states allowing them to process data and to be accessed
> +by software. In turn, if they are inactive, they are expected to be in
> +low-power states in which they may not be accessible.
> +
> +If all of the system components are active, the system as a whole is regarded as
> +``runtime active`` and that situation typically corresponds to the maximum power
> +draw (or maximum energy usage) of it. If all of them are inactive, the system
> +as a whole is regarded as ``runtime idle`` which may be very close to a sleep
The code uses the terms pm_runtime_active() and pm_runtime_suspended(),
not "runtime idle". Taking the ->runtime_idle callback as guidance,
"runtime idle" would mean that a component is runtime active, but idling
and could thus be transitioned to runtime suspended state. However above
it says that if it's idle, it's already "in low-power states and may
not be accessible". For someone reading this it may be difficult to
reconcile it with the terminology used in the code.
Otherwise,
Reviewed-by: Lukas Wunner <lukas@wunner.de>
Thanks,
Lukas
next prev parent reply other threads:[~2017-08-20 18:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-20 16:03 [PATCH 0/2] PM: docs: High-level update of PM part of admin-guide Rafael J. Wysocki
2017-08-20 16:05 ` [PATCH 1/2] PM: docs: Describe high-level PM strategies and sleep states Rafael J. Wysocki
2017-08-20 18:23 ` Lukas Wunner [this message]
2017-08-21 0:51 ` Rafael J. Wysocki
2017-08-21 9:51 ` Markus Heiser
2017-08-21 11:59 ` Rafael J. Wysocki
2017-08-21 13:14 ` [PATCH v2 " Rafael J. Wysocki
2017-08-28 21:16 ` Rafael J. Wysocki
2017-08-20 16:06 ` [PATCH 2/2] PM: docs: Delete the obsolete states.txt document Rafael J. Wysocki
2017-08-21 7:39 ` Markus Heiser
2017-08-21 13:03 ` Rafael J. Wysocki
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=20170820182326.GA29793@wunner.de \
--to=lukas@wunner.de \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@rjwysocki.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;
as well as URLs for NNTP newsgroup(s).