From: Pavel Machek <pavel@ucw.cz>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Kevin Hilman <khilman@kernel.org>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Ulf Hansson <ulf.hansson@linaro.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Linux PM list <linux-pm@vger.kernel.org>,
linaro-kernel <linaro-kernel@lists.linaro.org>,
Grygorii Strashko <grygorii.strashko@ti.com>,
Len Brown <len.brown@intel.com>,
LKML <linux-kernel@vger.kernel.org>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>
Subject: Re: [PATCH] PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected (was: Re: [PATCH] PM / domains: Kconfig: always enable PM_RUNTIME when genpd enabled)
Date: Tue, 18 Nov 2014 09:34:11 +0100 [thread overview]
Message-ID: <20141118083411.GB4059@amd> (raw)
In-Reply-To: <1452958.d0yJE5gVgq@vostro.rjw.lan>
On Tue 2014-11-18 01:39:06, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> The number of and dependencies between high-level power management
> Kconfig options make life much harder than necessary. Several
> conbinations of them have to be tested and supported, even though
> some of those combinations are very rarely used in practice (it
> they are used in practice at all). Moreover, the fact that we
> have separate independent Kconfig options for runtime PM and
> system suspend is a serious obscacle for integration between
> the two frameworks.
>
> To overcome these difficulties, always select PM_RUNTIME if PM_SLEEP
> is set. Among other things, this will allow system suspend callbacks
> provided by bus types and device drivers to rely on the runtime PM
> framework regardless of the kernel configuration.
3.18-rc5 still has:
config PM_RUNTIME
bool "Run-time PM core functionality"
depends on !IA64_HP_SIM
---help---
So I assume this patch is against tree where PM_RUNTIME does not
depend on anything?
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> ---
>
> As a follow up.
>
> Note that we won't need the patch making genpd select PM_RUNTIME with this,
> because genpd already depends on PM.
Looking through the config file, there are more config options that
should be stripped.
config SUSPEND_FREEZER
bool "Enable freezer for suspend to RAM/standby" \
"Turning OFF this setting is NOT recommended! If in doubt, say Y."
config HIBERNATE_CALLBACKS
bool
...can we just use CONFIG_HIBERNATE, instead?
> ===================================================================
> --- linux-pm.orig/kernel/power/Kconfig
> +++ linux-pm/kernel/power/Kconfig
> @@ -94,6 +94,7 @@ config PM_STD_PARTITION
> config PM_SLEEP
> def_bool y
> depends on SUSPEND || HIBERNATE_CALLBACKS
> + select PM_RUNTIME
>
> config PM_SLEEP_SMP
> def_bool y
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2014-11-18 8:34 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-13 22:28 [PATCH] PM / Runtime: Kconfig: move ia64 dependency to arch/ia64/Kconfig Kevin Hilman
2014-11-13 22:28 ` [PATCH] PM / domains: Kconfig: always enable PM_RUNTIME when genpd enabled Kevin Hilman
2014-11-14 7:26 ` Ulf Hansson
2014-11-14 7:28 ` Ulf Hansson
2014-11-14 17:27 ` Kevin Hilman
2014-11-14 22:35 ` Rafael J. Wysocki
2014-11-14 7:29 ` Geert Uytterhoeven
2014-11-14 17:36 ` Kevin Hilman
2014-11-14 22:41 ` Rafael J. Wysocki
2014-11-15 20:54 ` Pavel Machek
2014-11-15 12:32 ` Geert Uytterhoeven
2014-11-17 1:22 ` Rafael J. Wysocki
2014-11-17 8:01 ` Geert Uytterhoeven
2014-11-17 18:25 ` Kevin Hilman
2014-11-18 0:39 ` [PATCH] PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected (was: Re: [PATCH] PM / domains: Kconfig: always enable PM_RUNTIME when genpd enabled) Rafael J. Wysocki
2014-11-18 3:52 ` [PATCH] PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected Kevin Hilman
2014-11-18 8:32 ` Geert Uytterhoeven
2014-11-18 8:34 ` Pavel Machek [this message]
2014-11-18 20:40 ` [PATCH] PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is selected (was: Re: [PATCH] PM / domains: Kconfig: always enable PM_RUNTIME when genpd enabled) Rafael J. Wysocki
2014-11-14 7:30 ` [PATCH] PM / Runtime: Kconfig: move ia64 dependency to arch/ia64/Kconfig Ulf Hansson
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=20141118083411.GB4059@amd \
--to=pavel@ucw.cz \
--cc=dmitry.torokhov@gmail.com \
--cc=geert+renesas@glider.be \
--cc=geert@linux-m68k.org \
--cc=grygorii.strashko@ti.com \
--cc=khilman@kernel.org \
--cc=len.brown@intel.com \
--cc=linaro-kernel@lists.linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=ulf.hansson@linaro.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;
as well as URLs for NNTP newsgroup(s).