diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c index da7d733e..bc5dc4c1 100644 --- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | |||
@@ -555,7 +555,9 @@ static int dbg_set_powergate(struct dbg_session_gk20a *dbg_s, | |||
555 | 555 | ||
556 | gk20a_dbg(gpu_dbg_gpu_dbg | gpu_dbg_fn, "module busy"); | 556 | gk20a_dbg(gpu_dbg_gpu_dbg | gpu_dbg_fn, "module busy"); |
557 | gk20a_busy(g->dev); | 557 | gk20a_busy(g->dev); |
558 | gk20a_channel_busy(dbg_s->pdev); | 558 | err = gk20a_channel_busy(dbg_s->pdev); |
559 | if (err) | ||
560 | return -EPERM; | ||
559 | 561 | ||
560 | g->ops.clock_gating.slcg_gr_load_gating_prod(g, | 562 | g->ops.clock_gating.slcg_gr_load_gating_prod(g, |
561 | false); | 563 | false); |