summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2017-01-25 19:59:31 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-09 13:44:55 -0500
commit6c35cebdcb2d14741385cfe051577882a806cdb8 (patch)
tree80c0e8f0519dc253839a1aa7c8fe6e7da7ad336a /drivers/gpu/nvgpu/gm20b/gr_gm20b.c
parentbc47d822298b9f3b2f93a384a7780a3763fee495 (diff)
gpu: nvgpu: vgpu: suspend/resume contexts
Add ability to suspend/resume contexts for a debug session (NVGPU_DBG_GPU_IOCTL_SUSPEND_RESUME_CONTEXTS), in virtualized case: - added hal function to resume contexts. - added vgpu support for suspend contexts, i.e. build a list of channel ids, and send TEGRA_VGPU_CMD_SUSPEND_CONTEXTS - added vgpu support for resume contexts, i.e. build a list of channel ids, and send TEGRA_VGPU_CMD_RESUME_CONTEXTS Bug 1791111 Change-Id: Icc1c00d94a94dab6384ac263fb811c00fa4b07bf Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1294761 (cherry picked from commit d17a38eda312ffa92ce92e5bafc30727a8b76c4e) Reviewed-on: http://git-master/r/1299059 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Cory Perry <cperry@nvidia.com> Tested-by: Cory Perry <cperry@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/gr_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/gr_gm20b.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
index de3f879a..5b5fa82c 100644
--- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c
@@ -1589,6 +1589,7 @@ void gm20b_init_gr(struct gpu_ops *gops)
1589 gops->gr.update_sm_error_state = gm20b_gr_update_sm_error_state; 1589 gops->gr.update_sm_error_state = gm20b_gr_update_sm_error_state;
1590 gops->gr.clear_sm_error_state = gm20b_gr_clear_sm_error_state; 1590 gops->gr.clear_sm_error_state = gm20b_gr_clear_sm_error_state;
1591 gops->gr.suspend_contexts = gr_gk20a_suspend_contexts; 1591 gops->gr.suspend_contexts = gr_gk20a_suspend_contexts;
1592 gops->gr.resume_contexts = gr_gk20a_resume_contexts;
1592 gops->gr.get_preemption_mode_flags = gr_gm20b_get_preemption_mode_flags; 1593 gops->gr.get_preemption_mode_flags = gr_gm20b_get_preemption_mode_flags;
1593 gops->gr.fuse_override = gm20b_gr_fuse_override; 1594 gops->gr.fuse_override = gm20b_gr_fuse_override;
1594 gops->gr.init_sm_id_table = gr_gk20a_init_sm_id_table; 1595 gops->gr.init_sm_id_table = gr_gk20a_init_sm_id_table;