diff options
author | Kevin Huang <kevinh@nvidia.com> | 2014-04-29 19:47:57 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:09:48 -0400 |
commit | 69f5a5718b6a5d9dd30dea5c2d31bfdf1d3fca71 (patch) | |
tree | fb29cac87aa9a46ea06789ac7adde469a2cda6c4 /drivers/gpu/nvgpu/gm20b | |
parent | 0781b55fc172f5439ee2f3ecd016c5fb4db6ce97 (diff) |
gpu: nvgpu: gm20b: add ltc isr
Bug 1507804
Change-Id: Ic58e21f4d995cf4f4fc7bb5fc6ec84a6c4d25d46
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/403214
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/ltc_gm20b.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c index 07d405b2..5da21c64 100644 --- a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c | |||
@@ -184,6 +184,15 @@ static void gm20b_ltc_init_fs_state(struct gk20a *g) | |||
184 | ltc_ltcs_ltss_dstg_cfg0_vdc_4to2_disable_m()); | 184 | ltc_ltcs_ltss_dstg_cfg0_vdc_4to2_disable_m()); |
185 | } | 185 | } |
186 | 186 | ||
187 | void gm20b_ltc_isr(struct gk20a *g) | ||
188 | { | ||
189 | u32 intr; | ||
190 | |||
191 | intr = gk20a_readl(g, ltc_ltc0_ltss_intr_r()); | ||
192 | gk20a_err(dev_from_gk20a(g), "ltc: %08x\n", intr); | ||
193 | gk20a_writel(g, ltc_ltc0_ltss_intr_r(), intr); | ||
194 | } | ||
195 | |||
187 | void gm20b_init_ltc(struct gpu_ops *gops) | 196 | void gm20b_init_ltc(struct gpu_ops *gops) |
188 | { | 197 | { |
189 | /* Gk20a reused ops. */ | 198 | /* Gk20a reused ops. */ |
@@ -201,4 +210,5 @@ void gm20b_init_ltc(struct gpu_ops *gops) | |||
201 | gops->ltc.init_comptags = gm20b_ltc_init_comptags; | 210 | gops->ltc.init_comptags = gm20b_ltc_init_comptags; |
202 | gops->ltc.cbc_ctrl = gm20b_ltc_cbc_ctrl; | 211 | gops->ltc.cbc_ctrl = gm20b_ltc_cbc_ctrl; |
203 | gops->ltc.elpg_flush = gk20a_mm_g_elpg_flush_locked; | 212 | gops->ltc.elpg_flush = gk20a_mm_g_elpg_flush_locked; |
213 | gops->ltc.isr = gm20b_ltc_isr; | ||
204 | } | 214 | } |