From f5ce107f195a8b35581ff2fd3550214d0fbecc3b Mon Sep 17 00:00:00 2001 From: Seshendra Gadagottu Date: Fri, 25 Mar 2016 11:35:10 -0700 Subject: 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 Reviewed-on: http://git-master/r/1115439 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers') 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) /* Need global lock since multiple channels can timeout at a time */ mutex_lock(&g->ch_wdt_lock); + gk20a_debug_dump(g->dev); + gk20a_gr_debug_dump(g->dev); + + /* Get timed out job and reset the timer */ mutex_lock(&ch->timeout.lock); job = ch->timeout.job; -- cgit v1.2.2