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 <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/708465
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Deepak Nibade
2015-02-17 14:24:39 +05:30
committed by Dan Willemsen
parent bdb34abd93
commit ccfea85b47

View File

@@ -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 {