summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
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/channel_gk20a.h
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/channel_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.h2
1 files changed, 2 insertions, 0 deletions
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);
159void gk20a_channel_semaphore_wakeup(struct gk20a *g); 159void gk20a_channel_semaphore_wakeup(struct gk20a *g);
160int gk20a_channel_alloc_priv_cmdbuf(struct channel_gk20a *c, u32 size, 160int gk20a_channel_alloc_priv_cmdbuf(struct channel_gk20a *c, u32 size,
161 struct priv_cmd_entry **entry); 161 struct priv_cmd_entry **entry);
162int gk20a_find_from_priv_cmdbuf(struct channel_gk20a *c,
163 u64 addr, u32 **cpu_va);
162 164
163int gk20a_channel_suspend(struct gk20a *g); 165int gk20a_channel_suspend(struct gk20a *g);
164int gk20a_channel_resume(struct gk20a *g); 166int gk20a_channel_resume(struct gk20a *g);