mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: define P-state as a platform variable
move P-state enabling from chip level to platform level. Bug 200559157 Change-Id: Ie71dc801583678dc3a19f2a8438e477e46053591 Signed-off-by: Preetham Chandru Ramchandra <pchandru@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2223300 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
a9bb95f859
commit
a12c627574
@@ -206,6 +206,14 @@ static void nvgpu_init_pm_vars(struct gk20a *g)
|
||||
}
|
||||
|
||||
nvgpu_set_enabled(g, NVGPU_SUPPORT_ASPM, !platform->disable_aspm);
|
||||
#ifdef CONFIG_NVGPU_SIM
|
||||
if (nvgpu_is_enabled(g, NVGPU_IS_FMODEL)) {
|
||||
nvgpu_set_enabled(g, NVGPU_PMU_PSTATE, false);
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
nvgpu_set_enabled(g, NVGPU_PMU_PSTATE, platform->pstate);
|
||||
}
|
||||
}
|
||||
|
||||
static void nvgpu_init_vbios_vars(struct gk20a *g)
|
||||
|
||||
Reference in New Issue
Block a user