summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2016-03-15 22:06:43 -0400
committerKen Adams <kadams@nvidia.com>2016-05-05 12:25:02 -0400
commit93678f571c323861458992de16d552ea7313e831 (patch)
tree7a1faae97be3a9be5f180b011d66075ab8a1541c /drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
parent8beea96fad15724bc1fb7302668077617c9dbcee (diff)
gpu: nvgpu: Add trace and debugfs for sched params
JIRA EVLR-244 JIRA EVLR-318 Change-Id: Ie95f42212dadcf2d0c1737eeb28812afb03b712f Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1120603 GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Ken Adams <kadams@nvidia.com>
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__*/