summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
diff options
context:
space:
mode:
authorSeema Khowala <seemaj@nvidia.com>2017-02-28 14:03:09 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-09 15:23:29 -0500
commit4deb494ad114088f5253d02d9ec31f9aaeb2778a (patch)
tree7f13dee2f64dd4ebe121aaf820d16ec0aae529ff /drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
parent2caea7576a42c5f6593c58229d51f74517e0c60c (diff)
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 <seemaj@nvidia.com> Reviewed-on: http://git-master/r/1302369 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fifo_gk20a.h18
1 files changed, 18 insertions, 0 deletions
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 @@
23 23
24#include "channel_gk20a.h" 24#include "channel_gk20a.h"
25#include "tsg_gk20a.h" 25#include "tsg_gk20a.h"
26#include "debug_gk20a.h"
26 27
27#define MAX_RUNLIST_BUFFERS 2 28#define MAX_RUNLIST_BUFFERS 2
28 29
@@ -202,6 +203,12 @@ static inline const char *gk20a_fifo_interleave_level_name(u32 interleave_level)
202 } 203 }
203} 204}
204 205
206struct ch_state {
207 int pid;
208 int refs;
209 u32 inst_block[0];
210};
211
205int gk20a_init_fifo_support(struct gk20a *g); 212int gk20a_init_fifo_support(struct gk20a *g);
206 213
207int gk20a_init_fifo_setup_hw(struct gk20a *g); 214int gk20a_init_fifo_setup_hw(struct gk20a *g);
@@ -313,4 +320,15 @@ void gk20a_fifo_profile_release(struct gk20a *g,
313 struct fifo_profile_gk20a *profile); 320 struct fifo_profile_gk20a *profile);
314#endif 321#endif
315 322
323void gk20a_dump_channel_status_ramfc(struct gk20a *g,
324 struct gk20a_debug_output *o,
325 u32 hw_chid,
326 struct ch_state *ch_state);
327void gk20a_dump_pbdma_status(struct gk20a *g,
328 struct gk20a_debug_output *o);
329void gk20a_dump_eng_status(struct gk20a *g,
330 struct gk20a_debug_output *o);
331const char *gk20a_decode_ccsr_chan_status(u32 index);
332const char *gk20a_decode_pbdma_chan_eng_ctx_status(u32 index);
333
316#endif /*__GR_GK20A_H__*/ 334#endif /*__GR_GK20A_H__*/