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/channel_gk20a.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index 60437e66..36697e02 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h @@ -159,6 +159,8 @@ void gk20a_set_error_notifier(struct channel_gk20a *ch, __u32 error); void gk20a_channel_semaphore_wakeup(struct gk20a *g); int gk20a_channel_alloc_priv_cmdbuf(struct channel_gk20a *c, u32 size, struct priv_cmd_entry **entry); +int gk20a_find_from_priv_cmdbuf(struct channel_gk20a *c, + u64 addr, u32 **cpu_va); int gk20a_channel_suspend(struct gk20a *g); int gk20a_channel_resume(struct gk20a *g); -- cgit v1.2.2