summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c
index 2988fdec..e4bdd8e3 100644
--- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c
@@ -1185,7 +1185,7 @@ static int nvgpu_ioctl_channel_reg_ops(struct dbg_session_gk20a *dbg_s,
1185 } 1185 }
1186 1186
1187 /* be sure that ctx info is in place */ 1187 /* be sure that ctx info is in place */
1188 if (!gk20a_gpu_is_virtual(dbg_s->dev) && 1188 if (!g->is_virtual &&
1189 !gr_context_info_available(dbg_s, &g->gr)) { 1189 !gr_context_info_available(dbg_s, &g->gr)) {
1190 nvgpu_err(g, "gr context data not available\n"); 1190 nvgpu_err(g, "gr context data not available\n");
1191 return -ENODEV; 1191 return -ENODEV;
@@ -1196,7 +1196,7 @@ static int nvgpu_ioctl_channel_reg_ops(struct dbg_session_gk20a *dbg_s,
1196 * on other channels */ 1196 * on other channels */
1197 nvgpu_mutex_acquire(&g->dbg_sessions_lock); 1197 nvgpu_mutex_acquire(&g->dbg_sessions_lock);
1198 1198
1199 if (!dbg_s->is_pg_disabled && !gk20a_gpu_is_virtual(dbg_s->dev)) { 1199 if (!dbg_s->is_pg_disabled && !g->is_virtual) {
1200 /* In the virtual case, the server will handle 1200 /* In the virtual case, the server will handle
1201 * disabling/enabling powergating when processing reg ops 1201 * disabling/enabling powergating when processing reg ops
1202 */ 1202 */