summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-06-11 07:53:38 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:10:13 -0400
commitc32ac10b0bba400c1e83540a20c5ca210fa48613 (patch)
treec2f82ebde6d6f79d670fe374620833075ab02093 /drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
parentaa3e3aaaa098e004045bcc8dd874431a3c0f2b2d (diff)
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 <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/422198
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fifo_gk20a.c6
1 files changed, 4 insertions, 2 deletions
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)
1180 struct channel_gk20a *ch = 1180 struct channel_gk20a *ch =
1181 g->fifo.channel + hw_chid; 1181 g->fifo.channel + hw_chid;
1182 1182
1183 if (verbose)
1184 gk20a_debug_dump(g->dev);
1185
1183 gk20a_channel_abort(ch); 1186 gk20a_channel_abort(ch);
1184 for (i = 0; i < g->fifo.max_runlists; i++) 1187 for (i = 0; i < g->fifo.max_runlists; i++)
1185 gk20a_fifo_update_runlist(g, i, 1188 gk20a_fifo_update_runlist(g, i,
1186 hw_chid, false, false); 1189 hw_chid, false, false);
1187 1190
1188 if (gk20a_fifo_set_ctx_mmu_error(g, ch)) 1191 gk20a_fifo_set_ctx_mmu_error(g, ch);
1189 gk20a_debug_dump(g->dev);
1190 } 1192 }
1191} 1193}
1192 1194