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.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c
index f5c6d7e7..c1ba2aee 100644
--- a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c
@@ -203,6 +203,15 @@ static void gk20a_ltc_init_fs_state(struct gk20a *g)
203 g->max_ltc_count = g->ltc_count = 1; 203 g->max_ltc_count = g->ltc_count = 1;
204} 204}
205 205
206void gk20a_ltc_isr(struct gk20a *g)
207{
208 u32 intr;
209
210 intr = gk20a_readl(g, ltc_ltc0_ltss_intr_r());
211 gk20a_err(dev_from_gk20a(g), "ltc: %08x\n", intr);
212 gk20a_writel(g, ltc_ltc0_ltss_intr_r(), intr);
213}
214
206void gk20a_init_ltc(struct gpu_ops *gops) 215void gk20a_init_ltc(struct gpu_ops *gops)
207{ 216{
208 gops->ltc.determine_L2_size_bytes = gk20a_determine_L2_size_bytes; 217 gops->ltc.determine_L2_size_bytes = gk20a_determine_L2_size_bytes;
@@ -220,4 +229,5 @@ void gk20a_init_ltc(struct gpu_ops *gops)
220#endif 229#endif
221 gops->ltc.elpg_flush = gk20a_mm_g_elpg_flush_locked; 230 gops->ltc.elpg_flush = gk20a_mm_g_elpg_flush_locked;
222 gops->ltc.init_fs_state = gk20a_ltc_init_fs_state; 231 gops->ltc.init_fs_state = gk20a_ltc_init_fs_state;
232 gops->ltc.isr = gk20a_ltc_isr;
223} 233}