From 4deb494ad114088f5253d02d9ec31f9aaeb2778a Mon Sep 17 00:00:00 2001 From: Seema Khowala Date: Tue, 28 Feb 2017 11:03:09 -0800 Subject: gpu: nvgpu: debug dump enablement for t19x Fifo ops added for dumping channel & ramfc status and pbdma & engine status. Change-Id: Icc739f4f05f0864721954489517fefdfa2fa608a Signed-off-by: Seema Khowala Reviewed-on: http://git-master/r/1302369 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h index 75c801c6..37808928 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h @@ -23,6 +23,7 @@ #include "channel_gk20a.h" #include "tsg_gk20a.h" +#include "debug_gk20a.h" #define MAX_RUNLIST_BUFFERS 2 @@ -202,6 +203,12 @@ static inline const char *gk20a_fifo_interleave_level_name(u32 interleave_level) } } +struct ch_state { + int pid; + int refs; + u32 inst_block[0]; +}; + int gk20a_init_fifo_support(struct gk20a *g); int gk20a_init_fifo_setup_hw(struct gk20a *g); @@ -313,4 +320,15 @@ void gk20a_fifo_profile_release(struct gk20a *g, struct fifo_profile_gk20a *profile); #endif +void gk20a_dump_channel_status_ramfc(struct gk20a *g, + struct gk20a_debug_output *o, + u32 hw_chid, + struct ch_state *ch_state); +void gk20a_dump_pbdma_status(struct gk20a *g, + struct gk20a_debug_output *o); +void gk20a_dump_eng_status(struct gk20a *g, + struct gk20a_debug_output *o); +const char *gk20a_decode_ccsr_chan_status(u32 index); +const char *gk20a_decode_pbdma_chan_eng_ctx_status(u32 index); + #endif /*__GR_GK20A_H__*/ -- cgit v1.2.2