Linux Tegra architecture development
 help / color / mirror / Atom feed
* [PATCH] pmdomain: tegra: Add GENPD_FLAG_NO_STAY_ON flag
@ 2025-11-21 14:10 Jon Hunter
  2025-11-24 10:15 ` Ulf Hansson
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Hunter @ 2025-11-21 14:10 UTC (permalink / raw)
  To: Ulf Hansson, Thierry Reding; +Cc: linux-pm, linux-tegra, Jon Hunter

Commit 13a4b7fb6260 ("pmdomain: core: Leave powered-on genpds on until
late_initcall_sync") kept power-domains on longer during boot which is
causing some GPU related tests to fail on Tegra234. While this is being
investigated, add the flag GENPD_FLAG_NO_STAY_ON for Tegra devices to
restore the previous behaviour to fix this.

Fixes: 13a4b7fb6260 ("pmdomain: core: Leave powered-on genpds on until late_initcall_sync")
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
---
 drivers/pmdomain/tegra/powergate-bpmp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pmdomain/tegra/powergate-bpmp.c b/drivers/pmdomain/tegra/powergate-bpmp.c
index b0138ca9f851..9f4366250bfd 100644
--- a/drivers/pmdomain/tegra/powergate-bpmp.c
+++ b/drivers/pmdomain/tegra/powergate-bpmp.c
@@ -184,6 +184,7 @@ tegra_powergate_add(struct tegra_bpmp *bpmp,
 	powergate->genpd.name = kstrdup(info->name, GFP_KERNEL);
 	powergate->genpd.power_on = tegra_powergate_power_on;
 	powergate->genpd.power_off = tegra_powergate_power_off;
+	powergate->genpd.flags = GENPD_FLAG_NO_STAY_ON;
 
 	err = pm_genpd_init(&powergate->genpd, NULL, off);
 	if (err < 0) {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] pmdomain: tegra: Add GENPD_FLAG_NO_STAY_ON flag
  2025-11-21 14:10 [PATCH] pmdomain: tegra: Add GENPD_FLAG_NO_STAY_ON flag Jon Hunter
@ 2025-11-24 10:15 ` Ulf Hansson
  0 siblings, 0 replies; 2+ messages in thread
From: Ulf Hansson @ 2025-11-24 10:15 UTC (permalink / raw)
  To: Jon Hunter; +Cc: Thierry Reding, linux-pm, linux-tegra

On Fri, 21 Nov 2025 at 15:10, Jon Hunter <jonathanh@nvidia.com> wrote:
>
> Commit 13a4b7fb6260 ("pmdomain: core: Leave powered-on genpds on until
> late_initcall_sync") kept power-domains on longer during boot which is
> causing some GPU related tests to fail on Tegra234. While this is being
> investigated, add the flag GENPD_FLAG_NO_STAY_ON for Tegra devices to
> restore the previous behaviour to fix this.
>
> Fixes: 13a4b7fb6260 ("pmdomain: core: Leave powered-on genpds on until late_initcall_sync")
> Signed-off-by: Jon Hunter <jonathanh@nvidia.com>

Applied for fixes and by adding a stable tag, thanks!

Kind regards
Uffe

> ---
>  drivers/pmdomain/tegra/powergate-bpmp.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/pmdomain/tegra/powergate-bpmp.c b/drivers/pmdomain/tegra/powergate-bpmp.c
> index b0138ca9f851..9f4366250bfd 100644
> --- a/drivers/pmdomain/tegra/powergate-bpmp.c
> +++ b/drivers/pmdomain/tegra/powergate-bpmp.c
> @@ -184,6 +184,7 @@ tegra_powergate_add(struct tegra_bpmp *bpmp,
>         powergate->genpd.name = kstrdup(info->name, GFP_KERNEL);
>         powergate->genpd.power_on = tegra_powergate_power_on;
>         powergate->genpd.power_off = tegra_powergate_power_off;
> +       powergate->genpd.flags = GENPD_FLAG_NO_STAY_ON;
>
>         err = pm_genpd_init(&powergate->genpd, NULL, off);
>         if (err < 0) {
> --
> 2.43.0
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-11-24 10:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-21 14:10 [PATCH] pmdomain: tegra: Add GENPD_FLAG_NO_STAY_ON flag Jon Hunter
2025-11-24 10:15 ` Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox