summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r--drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c2
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h3
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c1
3 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c
index 0a0aada7..6a32d727 100644
--- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c
@@ -777,7 +777,7 @@ nvgpu_dbg_gpu_ioctl_suspend_resume_contexts(struct dbg_session_gk20a *dbg_s,
777 break; 777 break;
778 778
779 case NVGPU_DBG_GPU_RESUME_ALL_CONTEXTS: 779 case NVGPU_DBG_GPU_RESUME_ALL_CONTEXTS:
780 err = gr_gk20a_resume_contexts(g, dbg_s, 780 err = g->ops.gr.resume_contexts(g, dbg_s,
781 &ctx_resident_ch_fd); 781 &ctx_resident_ch_fd);
782 break; 782 break;
783 } 783 }
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 8ce682e3..e55753fe 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -309,6 +309,9 @@ struct gpu_ops {
309 int (*suspend_contexts)(struct gk20a *g, 309 int (*suspend_contexts)(struct gk20a *g,
310 struct dbg_session_gk20a *dbg_s, 310 struct dbg_session_gk20a *dbg_s,
311 int *ctx_resident_ch_fd); 311 int *ctx_resident_ch_fd);
312 int (*resume_contexts)(struct gk20a *g,
313 struct dbg_session_gk20a *dbg_s,
314 int *ctx_resident_ch_fd);
312 int (*set_preemption_mode)(struct channel_gk20a *ch, 315 int (*set_preemption_mode)(struct channel_gk20a *ch,
313 u32 graphics_preempt_mode, 316 u32 graphics_preempt_mode,
314 u32 compute_preempt_mode); 317 u32 compute_preempt_mode);
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index e695f02e..3ab63862 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -9304,6 +9304,7 @@ void gk20a_init_gr_ops(struct gpu_ops *gops)
9304 gops->gr.update_sm_error_state = gk20a_gr_update_sm_error_state; 9304 gops->gr.update_sm_error_state = gk20a_gr_update_sm_error_state;
9305 gops->gr.clear_sm_error_state = gk20a_gr_clear_sm_error_state; 9305 gops->gr.clear_sm_error_state = gk20a_gr_clear_sm_error_state;
9306 gops->gr.suspend_contexts = gr_gk20a_suspend_contexts; 9306 gops->gr.suspend_contexts = gr_gk20a_suspend_contexts;
9307 gops->gr.resume_contexts = gr_gk20a_resume_contexts;
9307 gops->gr.get_preemption_mode_flags = gr_gk20a_get_preemption_mode_flags; 9308 gops->gr.get_preemption_mode_flags = gr_gk20a_get_preemption_mode_flags;
9308 gops->gr.program_active_tpc_counts = gr_gk20a_program_active_tpc_counts; 9309 gops->gr.program_active_tpc_counts = gr_gk20a_program_active_tpc_counts;
9309 gops->gr.program_sm_id_numbering = gr_gk20a_program_sm_id_numbering; 9310 gops->gr.program_sm_id_numbering = gr_gk20a_program_sm_id_numbering;