mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: Add NVGPU_FEATURE_POWER_PG compiler flag
This flag is added to compile out below features from safety build -elpg JIRA NVGPU-3425 Change-Id: I439edb444a4ebe1732a379aecbb0ffc8b48eb97c Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2127449 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
84a6d4e656
commit
a72bfa63b2
@@ -534,9 +534,11 @@ void nvgpu_engine_reset(struct gk20a *g, u32 engine_id)
|
||||
}
|
||||
|
||||
if (engine_enum == NVGPU_ENGINE_GR) {
|
||||
#ifdef NVGPU_FEATURE_POWER_PG
|
||||
if (nvgpu_pg_elpg_disable(g) != 0 ) {
|
||||
nvgpu_err(g, "failed to set disable elpg");
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_GK20A_CTXSW_TRACE
|
||||
/*
|
||||
@@ -575,9 +577,11 @@ void nvgpu_engine_reset(struct gk20a *g, u32 engine_id)
|
||||
"gr cannot be reset without halting gr pipe");
|
||||
}
|
||||
|
||||
#ifdef NVGPU_FEATURE_POWER_PG
|
||||
if (nvgpu_pg_elpg_enable(g) != 0 ) {
|
||||
nvgpu_err(g, "failed to set enable elpg");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if ((engine_enum == NVGPU_ENGINE_GRCE) ||
|
||||
|
||||
Reference in New Issue
Block a user