From c32ac10b0bba400c1e83540a20c5ca210fa48613 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 11 Jun 2014 14:53:38 +0300 Subject: gpu: nvgpu: Dump offending push buffer fragment When outputting debug dump, print the contents of current push buffer segment. Also changes the debug dump to use pr_cont when applicable, and dumps state before recovering in case channel was not loaded to an engine. Bug 1498688 Change-Id: I5ca12f64bae8f12333d82350278c700645d5007e Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/422198 --- drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (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 cba1f0fd..3c0611e6 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c @@ -1180,13 +1180,15 @@ void gk20a_fifo_recover_ch(struct gk20a *g, u32 hw_chid, bool verbose) struct channel_gk20a *ch = g->fifo.channel + hw_chid; + if (verbose) + gk20a_debug_dump(g->dev); + gk20a_channel_abort(ch); for (i = 0; i < g->fifo.max_runlists; i++) gk20a_fifo_update_runlist(g, i, hw_chid, false, false); - if (gk20a_fifo_set_ctx_mmu_error(g, ch)) - gk20a_debug_dump(g->dev); + gk20a_fifo_set_ctx_mmu_error(g, ch); } } -- cgit v1.2.2