From ccfea85b47ef8f0cfc05310bfcfe247540020f6d Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 17 Feb 2015 14:24:39 +0530 Subject: gpu: nvgpu: register dump in ctxsw timeout Dump GR status registers in case of ctxsw timeout. This is helpful in case where ctxsw timeout is encountered during stress testing but we lose the bad state since we do the recovery. So dump as much status as we can when timeouts are seen Bug 200062436 Change-Id: Ie7d320cefa7b272f2cc607cdb5c01ba1f43ba1f2 Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/708465 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c index 9dcab250..b9183e76 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c @@ -1384,6 +1384,7 @@ static bool gk20a_fifo_handle_sched_error(struct gk20a *g) gk20a_err(dev_from_gk20a(g), "fifo sched ctxsw timeout error:" "engine = %u, ch = %d", engine_id, id); + gk20a_gr_debug_dump(g->dev); gk20a_fifo_recover(g, BIT(engine_id), ch->timeout_debug_dump); } else { -- cgit v1.2.2