diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c index fabc6819..d109dbf8 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |||
@@ -1413,8 +1413,7 @@ static int gr_gv11b_pre_process_sm_exception(struct gk20a *g, | |||
1413 | bool *early_exit, bool *ignore_debugger) | 1413 | bool *early_exit, bool *ignore_debugger) |
1414 | { | 1414 | { |
1415 | int ret; | 1415 | int ret; |
1416 | bool cilp_enabled = (fault_ch->ch_ctx.gr_ctx->compute_preempt_mode == | 1416 | bool cilp_enabled = false; |
1417 | NVGPU_COMPUTE_PREEMPTION_MODE_CILP) ; | ||
1418 | u32 global_mask = 0, dbgr_control0, global_esr_copy; | 1417 | u32 global_mask = 0, dbgr_control0, global_esr_copy; |
1419 | u32 offset = proj_gpc_stride_v() * gpc + | 1418 | u32 offset = proj_gpc_stride_v() * gpc + |
1420 | proj_tpc_in_gpc_stride_v() * tpc; | 1419 | proj_tpc_in_gpc_stride_v() * tpc; |
@@ -1422,6 +1421,10 @@ static int gr_gv11b_pre_process_sm_exception(struct gk20a *g, | |||
1422 | *early_exit = false; | 1421 | *early_exit = false; |
1423 | *ignore_debugger = false; | 1422 | *ignore_debugger = false; |
1424 | 1423 | ||
1424 | if (fault_ch) | ||
1425 | cilp_enabled = (fault_ch->ch_ctx.gr_ctx->compute_preempt_mode == | ||
1426 | NVGPU_COMPUTE_PREEMPTION_MODE_CILP); | ||
1427 | |||
1425 | gk20a_dbg(gpu_dbg_fn | gpu_dbg_gpu_dbg, "SM Exception received on gpc %d tpc %d = %u\n", | 1428 | gk20a_dbg(gpu_dbg_fn | gpu_dbg_gpu_dbg, "SM Exception received on gpc %d tpc %d = %u\n", |
1426 | gpc, tpc, global_esr); | 1429 | gpc, tpc, global_esr); |
1427 | 1430 | ||