diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c index 35a43130..daed2967 100644 --- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | |||
@@ -600,7 +600,8 @@ static int dbg_set_powergate(struct dbg_session_gk20a *dbg_s, | |||
600 | return -EPERM; | 600 | return -EPERM; |
601 | 601 | ||
602 | /*do elpg disable before clock gating */ | 602 | /*do elpg disable before clock gating */ |
603 | gk20a_pmu_disable_elpg(g); | 603 | if (support_gk20a_pmu(g->dev)) |
604 | gk20a_pmu_disable_elpg(g); | ||
604 | g->ops.clock_gating.slcg_gr_load_gating_prod(g, | 605 | g->ops.clock_gating.slcg_gr_load_gating_prod(g, |
605 | false); | 606 | false); |
606 | g->ops.clock_gating.slcg_perf_load_gating_prod(g, | 607 | g->ops.clock_gating.slcg_perf_load_gating_prod(g, |
@@ -640,7 +641,8 @@ static int dbg_set_powergate(struct dbg_session_gk20a *dbg_s, | |||
640 | g->ops.clock_gating.slcg_perf_load_gating_prod(g, | 641 | g->ops.clock_gating.slcg_perf_load_gating_prod(g, |
641 | g->slcg_enabled); | 642 | g->slcg_enabled); |
642 | 643 | ||
643 | gk20a_pmu_enable_elpg(g); | 644 | if (support_gk20a_pmu(g->dev)) |
645 | gk20a_pmu_enable_elpg(g); | ||
644 | 646 | ||
645 | gk20a_dbg(gpu_dbg_gpu_dbg | gpu_dbg_fn, "module idle"); | 647 | gk20a_dbg(gpu_dbg_gpu_dbg | gpu_dbg_fn, "module idle"); |
646 | gk20a_idle(dbg_s->pdev); | 648 | gk20a_idle(dbg_s->pdev); |