summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSeshendra Gadagottu <sgadagottu@nvidia.com>2016-03-25 14:35:10 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-03-29 14:14:21 -0400
commitf5ce107f195a8b35581ff2fd3550214d0fbecc3b (patch)
tree6241becc65facb4fd19290e987869b99279717aa /drivers
parentcd29c45e673cb0ed8e69630dde684bf96c3c78e0 (diff)
gpu: nvgpu: dump gpu status on channel wdt
To get more useful debug info, dump gpu status on channel watchdog timeout. Bug 200163782 Change-Id: Ie160e3a65650b87f812e0c1d1d9b54814b45a1d7 Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/1115439 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index 0dd1fb8b..20976992 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -1706,6 +1706,10 @@ static void gk20a_channel_timeout_handler(struct work_struct *work)
1706 /* Need global lock since multiple channels can timeout at a time */ 1706 /* Need global lock since multiple channels can timeout at a time */
1707 mutex_lock(&g->ch_wdt_lock); 1707 mutex_lock(&g->ch_wdt_lock);
1708 1708
1709 gk20a_debug_dump(g->dev);
1710 gk20a_gr_debug_dump(g->dev);
1711
1712
1709 /* Get timed out job and reset the timer */ 1713 /* Get timed out job and reset the timer */
1710 mutex_lock(&ch->timeout.lock); 1714 mutex_lock(&ch->timeout.lock);
1711 job = ch->timeout.job; 1715 job = ch->timeout.job;