summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
diff options
context:
space:
mode:
authorSeema Khowala <seemaj@nvidia.com>2017-07-02 18:39:27 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-05 06:06:59 -0400
commit29b688960fcf6279f58d95f7e17f31ef15129a80 (patch)
tree38d90b161b404c2b7884c6d40d35b9e858fe8960 /drivers/gpu/nvgpu/gp10b/gr_gp10b.c
parent0e2e3898f7f8828ff9601d414f730b9fa8d09b3f (diff)
gpu: nvgpu: add suspend_all_sms gr ops
This is required to support multiple SM and t19x sm register address changes JIRA GPUT19X-75 Change-Id: Icdae3b6ed67a3d3deeb17f29528184b2d7a70af5 Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: https://git-master/r/1512215 GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gr_gp10b.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
index 5d17472f..afd3750b 100644
--- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
@@ -1822,7 +1822,7 @@ static int gr_gp10b_pre_process_sm_exception(struct gk20a *g,
1822 gk20a_dbg(gpu_dbg_fn | gpu_dbg_gpu_dbg, 1822 gk20a_dbg(gpu_dbg_fn | gpu_dbg_gpu_dbg,
1823 "CILP: Broadcasting STOP_TRIGGER from gpc %d tpc %d\n", 1823 "CILP: Broadcasting STOP_TRIGGER from gpc %d tpc %d\n",
1824 gpc, tpc); 1824 gpc, tpc);
1825 gk20a_suspend_all_sms(g, global_mask, false); 1825 g->ops.gr.suspend_all_sms(g, global_mask, false);
1826 1826
1827 gk20a_dbg_gpu_clear_broadcast_stop_trigger(fault_ch); 1827 gk20a_dbg_gpu_clear_broadcast_stop_trigger(fault_ch);
1828 } else { 1828 } else {
@@ -1991,7 +1991,7 @@ static bool gr_gp10b_suspend_context(struct channel_gk20a *ch,
1991 *cilp_preempt_pending = false; 1991 *cilp_preempt_pending = false;
1992 1992
1993 if (gk20a_is_channel_ctx_resident(ch)) { 1993 if (gk20a_is_channel_ctx_resident(ch)) {
1994 gk20a_suspend_all_sms(g, 0, false); 1994 g->ops.gr.suspend_all_sms(g, 0, false);
1995 1995
1996 if (gr_ctx->compute_preempt_mode == NVGPU_COMPUTE_PREEMPTION_MODE_CILP) { 1996 if (gr_ctx->compute_preempt_mode == NVGPU_COMPUTE_PREEMPTION_MODE_CILP) {
1997 err = gr_gp10b_set_cilp_preempt_pending(g, ch); 1997 err = gr_gp10b_set_cilp_preempt_pending(g, ch);