From: "Diederik de Haas" <didi.debian@cknow.org>
To: "Ulf Hansson" <ulf.hansson@linaro.org>,
"Geert Uytterhoeven" <geert@linux-m68k.org>,
"Nicolas Frattaroli" <nicolas.frattaroli@collabora.com>,
"Saravana Kannan" <saravanak@google.com>,
<linux-pm@vger.kernel.org>
Cc: "Stephen Boyd" <sboyd@kernel.org>,
"Rafael J . Wysocki" <rafael@kernel.org>,
"Heiko Stuebner" <heiko@sntech.de>,
"Sebastian Reichel" <sebastian.reichel@collabora.com>,
"Sebin Francis" <sebin.francis@ti.com>,
"Bjorn Andersson" <andersson@kernel.org>,
"Abel Vesa" <abel.vesa@linaro.org>,
"Peng Fan" <peng.fan@oss.nxp.com>,
"Tomi Valkeinen" <tomi.valkeinen@ideasonboard.com>,
"Johan Hovold" <johan@kernel.org>,
"Maulik Shah" <maulik.shah@oss.qualcomm.com>,
"Michal Simek" <michal.simek@amd.com>,
"Konrad Dybcio" <konradybcio@kernel.org>,
"Thierry Reding" <thierry.reding@gmail.com>,
"Jonathan Hunter" <jonathanh@nvidia.com>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>,
<linux-rockchip@lists.infradead.org>,
"Christian Hewitt" <christianshewitt@gmail.com>
Subject: Re: [PATCH 0/5] pmdomain: Restore behaviour for disabling unused PM domains
Date: Wed, 10 Sep 2025 21:33:04 +0200 [thread overview]
Message-ID: <DCPDDIZ3S1CM.3DJYY5U4T6V4U@cknow.org> (raw)
In-Reply-To: <20250909111130.132976-1-ulf.hansson@linaro.org>
[-- Attachment #1.1: Type: text/plain, Size: 3038 bytes --]
Hi,
On Tue Sep 9, 2025 at 1:11 PM CEST, Ulf Hansson wrote:
> Recent changes to genpd prevents those PM domains being powered-on during
> initialization from being powered-off during the boot sequence. Based upon
> whether CONFIG_PM_CONFIG_PM_GENERIC_DOMAINS_OF is set of not, genpd relies
> on the sync_state mechanism or the genpd_power_off_unused() (which is a
> late_initcall_sync), to understand when it's okay to allow these PM domains
> to be powered-off.
>
> This new behaviour in genpd has lead to problems on different platforms [1].
>
> In this series, I am therefore suggesting to restore the behavior of
> genpd_power_off_unused() along with introducing a new genpd config flag,
> GENPD_FLAG_NO_STAY_ON, to allow genpd OF providers to opt-out from the new
> behaviour.
Is it expected that I'm still seeing this on a Rock64 (rk3328), just
like before [1]?
[ 17.124202] rockchip-pm-domain ff100000.syscon:power-controller: sync_state() pending due to ff300000.gpu
[ 17.129799] rockchip-pm-domain ff100000.syscon:power-controller: sync_state() pending due to ff350000.video-codec
[ 17.140003] rockchip-pm-domain ff100000.syscon:power-controller: sync_state() pending due to ff360000.video-codec
This is with a 6.17-rc5 kernel with this patch set applied.
And it also has this patch from Christian Hewitt added, now in v3:
https://lore.kernel.org/linux-rockchip/20250906120810.1833016-1-christianshewitt@gmail.com/
When I boot into a 6.17-rc5 kernel without any patches applied, I do get
the 2 for ff350000.video-codec and ff360000.video-codec, but not the
ff300000.gpu one.
Interestingly:
ff300000.gpu -> power-domains = <&power RK3328_PD_GPU>;
ff350000.video-codec -> power-domains = <&power RK3328_PD_VPU>;
ff360000.video-codec -> power-domains = <&power RK3328_PD_VIDEO>;
I would be surprised if that was a coincidence.
Cheers,
Diederik
[1] https://lore.kernel.org/all/DCK0O99SYSCF.BMBAEUV24C1G@cknow.org/
>
> Kind regards
> Ulf Hansson
>
> [1]
> https://lore.kernel.org/all/20250701114733.636510-1-ulf.hansson@linaro.org/
> https://lore.kernel.org/all/20250902-rk3576-lockup-regression-v1-1-c4a0c9daeb00@collabora.com/
>
> Ulf Hansson (5):
> pmdomain: core: Restore behaviour for disabling unused PM domains
> pmdomain: rockchip: Fix regulator dependency with
> GENPD_FLAG_NO_STAY_ON
> pmdomain: renesas: rcar-sysc: Don't keep unused PM domains powered-on
> pmdomain: renesas: rcar-gen4-sysc: Don't keep unused PM domains
> powered-on
> pmdomain: renesas: rmobile-sysc: Don't keep unused PM domains
> powered-on
>
> drivers/pmdomain/core.c | 20 ++++++++++++++------
> drivers/pmdomain/renesas/rcar-gen4-sysc.c | 1 +
> drivers/pmdomain/renesas/rcar-sysc.c | 1 +
> drivers/pmdomain/renesas/rmobile-sysc.c | 3 ++-
> drivers/pmdomain/rockchip/pm-domains.c | 2 +-
> include/linux/pm_domain.h | 7 +++++++
> 6 files changed, 26 insertions(+), 8 deletions(-)
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next parent reply other threads:[~2025-09-10 19:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250909111130.132976-1-ulf.hansson@linaro.org>
2025-09-10 19:33 ` Diederik de Haas [this message]
2025-09-11 7:18 ` [PATCH 0/5] pmdomain: Restore behaviour for disabling unused PM domains Geert Uytterhoeven
2025-09-11 8:26 ` Diederik de Haas
2025-09-12 18:32 ` Saravana Kannan
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=DCPDDIZ3S1CM.3DJYY5U4T6V4U@cknow.org \
--to=didi.debian@cknow.org \
--cc=abel.vesa@linaro.org \
--cc=andersson@kernel.org \
--cc=christianshewitt@gmail.com \
--cc=geert@linux-m68k.org \
--cc=heiko@sntech.de \
--cc=johan@kernel.org \
--cc=jonathanh@nvidia.com \
--cc=konradybcio@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=maulik.shah@oss.qualcomm.com \
--cc=michal.simek@amd.com \
--cc=nicolas.frattaroli@collabora.com \
--cc=peng.fan@oss.nxp.com \
--cc=rafael@kernel.org \
--cc=saravanak@google.com \
--cc=sboyd@kernel.org \
--cc=sebastian.reichel@collabora.com \
--cc=sebin.francis@ti.com \
--cc=thierry.reding@gmail.com \
--cc=tomi.valkeinen@ideasonboard.com \
--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