diff options
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c index 12d81343..fb70c88b 100644 --- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | |||
@@ -1287,10 +1287,6 @@ static int dbg_set_powergate(struct dbg_session_gk20a *dbg_s, u32 powermode) | |||
1287 | if (err) | 1287 | if (err) |
1288 | return err; | 1288 | return err; |
1289 | 1289 | ||
1290 | err = gk20a_busy(dbg_s->dev); | ||
1291 | if (err) | ||
1292 | return -EPERM; | ||
1293 | |||
1294 | /*do elpg disable before clock gating */ | 1290 | /*do elpg disable before clock gating */ |
1295 | gk20a_pmu_pg_global_enable(g, false); | 1291 | gk20a_pmu_pg_global_enable(g, false); |
1296 | 1292 | ||
@@ -1342,7 +1338,6 @@ static int dbg_set_powergate(struct dbg_session_gk20a *dbg_s, u32 powermode) | |||
1342 | gk20a_pmu_pg_global_enable(g, true); | 1338 | gk20a_pmu_pg_global_enable(g, true); |
1343 | 1339 | ||
1344 | gk20a_dbg(gpu_dbg_gpu_dbg | gpu_dbg_fn, "module idle"); | 1340 | gk20a_dbg(gpu_dbg_gpu_dbg | gpu_dbg_fn, "module idle"); |
1345 | gk20a_idle(dbg_s->dev); | ||
1346 | gk20a_idle(g->dev); | 1341 | gk20a_idle(g->dev); |
1347 | } | 1342 | } |
1348 | 1343 | ||
@@ -1438,6 +1433,7 @@ static int nvgpu_dbg_gpu_ioctl_hwpm_ctxsw_mode(struct dbg_session_gk20a *dbg_s, | |||
1438 | "session doesn't have a valid reservation"); | 1433 | "session doesn't have a valid reservation"); |
1439 | } | 1434 | } |
1440 | 1435 | ||
1436 | |||
1441 | err = gk20a_busy(g->dev); | 1437 | err = gk20a_busy(g->dev); |
1442 | if (err) { | 1438 | if (err) { |
1443 | gk20a_err(dev_from_gk20a(g), "failed to poweron"); | 1439 | gk20a_err(dev_from_gk20a(g), "failed to poweron"); |