summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ltc_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/ltc_gk20a.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c
index 08aedecd..6da5adb9 100644
--- a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c
@@ -184,6 +184,13 @@ static void gk20a_ltc_sync_debugfs(struct gk20a *g)
184} 184}
185#endif 185#endif
186 186
187static void gk20a_ltc_init_fs_state(struct gk20a *g)
188{
189 gk20a_dbg_info("initialize gk20a L2");
190
191 g->max_ltc_count = g->ltc_count = 1;
192}
193
187void gk20a_init_ltc(struct gpu_ops *gops) 194void gk20a_init_ltc(struct gpu_ops *gops)
188{ 195{
189 gops->ltc.determine_L2_size_bytes = gk20a_determine_L2_size_bytes; 196 gops->ltc.determine_L2_size_bytes = gk20a_determine_L2_size_bytes;
@@ -200,4 +207,5 @@ void gk20a_init_ltc(struct gpu_ops *gops)
200 gops->ltc.sync_debugfs = gk20a_ltc_sync_debugfs; 207 gops->ltc.sync_debugfs = gk20a_ltc_sync_debugfs;
201#endif 208#endif
202 gops->ltc.elpg_flush = gk20a_mm_g_elpg_flush_locked; 209 gops->ltc.elpg_flush = gk20a_mm_g_elpg_flush_locked;
210 gops->ltc.init_fs_state = gk20a_ltc_init_fs_state;
203} 211}