diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2016-03-21 14:16:47 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-04-07 16:56:38 -0400 |
commit | b2dd107455267b7f5ed3c6687c2bba48f3bdb941 (patch) | |
tree | 9c785afc79d1dd8cdcb8621383f6644c18bc1af1 /drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | |
parent | 327644a1a0af43ce2e369bd0a87b7e2142368285 (diff) |
gpu: nvgpu: add trace event for channel reset
Change-Id: I319e877978b7f483108ef8f67c05702b71709f62
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: http://git-master/r/1120501
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c index 9421c017..27a3992d 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | |||
@@ -1053,8 +1053,13 @@ static bool gk20a_fifo_handle_mmu_fault( | |||
1053 | mutex_lock(&g->fifo.gr_reset_mutex); | 1053 | mutex_lock(&g->fifo.gr_reset_mutex); |
1054 | /* if lock is already taken, a reset is taking place | 1054 | /* if lock is already taken, a reset is taking place |
1055 | so no need to repeat */ | 1055 | so no need to repeat */ |
1056 | if (!was_reset) | 1056 | if (!was_reset) { |
1057 | trace_gk20a_channel_reset( | ||
1058 | ch ? ch->hw_chid : ~0, | ||
1059 | tsg ? tsg->tsgid : | ||
1060 | NVGPU_INVALID_TSG_ID); | ||
1057 | gk20a_fifo_reset_engine(g, engine_id); | 1061 | gk20a_fifo_reset_engine(g, engine_id); |
1062 | } | ||
1058 | mutex_unlock(&g->fifo.gr_reset_mutex); | 1063 | mutex_unlock(&g->fifo.gr_reset_mutex); |
1059 | } | 1064 | } |
1060 | /* disable the channel/TSG from hw and increment | 1065 | /* disable the channel/TSG from hw and increment |