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/channel_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/channel_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index da73d95d..58175141 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |||
@@ -853,6 +853,7 @@ static void gk20a_free_channel(struct channel_gk20a *ch) | |||
853 | unsigned long timeout = gk20a_get_gr_idle_timeout(g); | 853 | unsigned long timeout = gk20a_get_gr_idle_timeout(g); |
854 | struct dbg_session_gk20a *dbg_s; | 854 | struct dbg_session_gk20a *dbg_s; |
855 | bool was_reset; | 855 | bool was_reset; |
856 | |||
856 | gk20a_dbg_fn(""); | 857 | gk20a_dbg_fn(""); |
857 | 858 | ||
858 | WARN_ON(ch->g == NULL); | 859 | WARN_ON(ch->g == NULL); |
@@ -901,6 +902,7 @@ static void gk20a_free_channel(struct channel_gk20a *ch) | |||
901 | /* if lock is already taken, a reset is taking place | 902 | /* if lock is already taken, a reset is taking place |
902 | so no need to repeat */ | 903 | so no need to repeat */ |
903 | if (!was_reset) { | 904 | if (!was_reset) { |
905 | trace_gk20a_channel_reset(ch->hw_chid, ch->tsgid); | ||
904 | gk20a_fifo_reset_engine(g, | 906 | gk20a_fifo_reset_engine(g, |
905 | g->fifo.deferred_fault_engines); | 907 | g->fifo.deferred_fault_engines); |
906 | } | 908 | } |