diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2015-02-17 03:54:39 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 21:07:37 -0400 |
commit | ccfea85b47ef8f0cfc05310bfcfe247540020f6d (patch) | |
tree | 3df432d1c865ee6dac103d769b72e568e7fcb52e | |
parent | bdb34abd93df5fdf741b060d3030bf59dd18b7e7 (diff) |
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>
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
1384 | gk20a_err(dev_from_gk20a(g), | 1384 | gk20a_err(dev_from_gk20a(g), |
1385 | "fifo sched ctxsw timeout error:" | 1385 | "fifo sched ctxsw timeout error:" |
1386 | "engine = %u, ch = %d", engine_id, id); | 1386 | "engine = %u, ch = %d", engine_id, id); |
1387 | gk20a_gr_debug_dump(g->dev); | ||
1387 | gk20a_fifo_recover(g, BIT(engine_id), | 1388 | gk20a_fifo_recover(g, BIT(engine_id), |
1388 | ch->timeout_debug_dump); | 1389 | ch->timeout_debug_dump); |
1389 | } else { | 1390 | } else { |