From 0781b55fc172f5439ee2f3ecd016c5fb4db6ce97 Mon Sep 17 00:00:00 2001 From: Kevin Huang Date: Tue, 29 Apr 2014 16:42:48 -0700 Subject: gpu: nvgpu: halize ltc isr Bug 1507804 Change-Id: I3cca0e83dbf911c94422f8bb0b2df675a170b990 Signed-off-by: Kevin Huang Reviewed-on: http://git-master/r/403213 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/ltc_gk20a.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/ltc_gk20a.c') 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) g->max_ltc_count = g->ltc_count = 1; } +void gk20a_ltc_isr(struct gk20a *g) +{ + u32 intr; + + intr = gk20a_readl(g, ltc_ltc0_ltss_intr_r()); + gk20a_err(dev_from_gk20a(g), "ltc: %08x\n", intr); + gk20a_writel(g, ltc_ltc0_ltss_intr_r(), intr); +} + void gk20a_init_ltc(struct gpu_ops *gops) { gops->ltc.determine_L2_size_bytes = gk20a_determine_L2_size_bytes; @@ -220,4 +229,5 @@ void gk20a_init_ltc(struct gpu_ops *gops) #endif gops->ltc.elpg_flush = gk20a_mm_g_elpg_flush_locked; gops->ltc.init_fs_state = gk20a_ltc_init_fs_state; + gops->ltc.isr = gk20a_ltc_isr; } -- cgit v1.2.2