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
@@ -33,11 +33,13 @@ int nvgpu_cg_pg_disable(struct gk20a *g)
|
||||
|
||||
g->ops.gr.init.wait_initialized(g);
|
||||
|
||||
#ifdef NVGPU_FEATURE_POWER_PG
|
||||
/* disable elpg before clock gating */
|
||||
err = nvgpu_pg_elpg_disable(g);
|
||||
if (err != 0) {
|
||||
nvgpu_err(g, "failed to set disable elpg");
|
||||
}
|
||||
#endif
|
||||
nvgpu_cg_slcg_gr_perf_ltc_load_disable(g);
|
||||
|
||||
nvgpu_cg_blcg_mode_disable(g);
|
||||
@@ -61,10 +63,12 @@ int nvgpu_cg_pg_enable(struct gk20a *g)
|
||||
|
||||
nvgpu_cg_slcg_gr_perf_ltc_load_enable(g);
|
||||
|
||||
#ifdef NVGPU_FEATURE_POWER_PG
|
||||
err = nvgpu_pg_elpg_enable(g);
|
||||
if (err != 0) {
|
||||
nvgpu_err(g, "failed to set enable elpg");
|
||||
}
|
||||
#endif
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user