summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fifo_gk20a.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
index 0979bf2b..c95ba71c 100644
--- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
@@ -140,6 +140,23 @@ struct fifo_gk20a {
140 struct mutex deferred_reset_mutex; 140 struct mutex deferred_reset_mutex;
141}; 141};
142 142
143static inline const char *gk20a_fifo_interleave_level_name(u32 interleave_level)
144{
145 switch (interleave_level) {
146 case NVGPU_RUNLIST_INTERLEAVE_LEVEL_LOW:
147 return "LOW";
148
149 case NVGPU_RUNLIST_INTERLEAVE_LEVEL_MEDIUM:
150 return "MEDIUM";
151
152 case NVGPU_RUNLIST_INTERLEAVE_LEVEL_HIGH:
153 return "HIGH";
154
155 default:
156 return "?";
157 }
158}
159
143int gk20a_init_fifo_support(struct gk20a *g); 160int gk20a_init_fifo_support(struct gk20a *g);
144 161
145void gk20a_fifo_isr(struct gk20a *g); 162void gk20a_fifo_isr(struct gk20a *g);
@@ -200,4 +217,10 @@ int gk20a_fifo_set_runlist_interleave(struct gk20a *g,
200 bool is_tsg, 217 bool is_tsg,
201 u32 runlist_id, 218 u32 runlist_id,
202 u32 new_level); 219 u32 new_level);
220
221void gk20a_fifo_debugfs_init(struct device *dev);
222
223const char *gk20a_fifo_interleave_level_name(u32 interleave_level);
224
225
203#endif /*__GR_GK20A_H__*/ 226#endif /*__GR_GK20A_H__*/