diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c index b0e2ce1f..cf97b33a 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | |||
@@ -1082,15 +1082,16 @@ static bool gk20a_fifo_handle_mmu_fault( | |||
1082 | mutex_lock(&g->fifo.gr_reset_mutex); | 1082 | mutex_lock(&g->fifo.gr_reset_mutex); |
1083 | /* if lock is already taken, a reset is taking place | 1083 | /* if lock is already taken, a reset is taking place |
1084 | so no need to repeat */ | 1084 | so no need to repeat */ |
1085 | if (!was_reset) { | 1085 | if (!was_reset) |
1086 | if (ch) | ||
1087 | gk20a_ctxsw_trace_channel_reset(g, ch); | ||
1088 | else | ||
1089 | gk20a_ctxsw_trace_tsg_reset(g, tsg); | ||
1090 | gk20a_fifo_reset_engine(g, engine_id); | 1086 | gk20a_fifo_reset_engine(g, engine_id); |
1091 | } | ||
1092 | mutex_unlock(&g->fifo.gr_reset_mutex); | 1087 | mutex_unlock(&g->fifo.gr_reset_mutex); |
1093 | } | 1088 | } |
1089 | |||
1090 | if (ch) | ||
1091 | gk20a_ctxsw_trace_channel_reset(g, ch); | ||
1092 | else if (tsg) | ||
1093 | gk20a_ctxsw_trace_tsg_reset(g, tsg); | ||
1094 | |||
1094 | /* disable the channel/TSG from hw and increment | 1095 | /* disable the channel/TSG from hw and increment |
1095 | * syncpoints */ | 1096 | * syncpoints */ |
1096 | 1097 | ||