Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pmdomain: tegra: Add GENPD_FLAG_NO_STAY_ON flag

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>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Jon Hunter and committed by
Ulf Hansson
c98c99d5 c1bac49f

+1
+1
drivers/pmdomain/tegra/powergate-bpmp.c
··· 184 184 powergate->genpd.name = kstrdup(info->name, GFP_KERNEL); 185 185 powergate->genpd.power_on = tegra_powergate_power_on; 186 186 powergate->genpd.power_off = tegra_powergate_power_off; 187 + powergate->genpd.flags = GENPD_FLAG_NO_STAY_ON; 187 188 188 189 err = pm_genpd_init(&powergate->genpd, NULL, off); 189 190 if (err < 0) {