mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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>
This commit is contained in:
committed by
Dan Willemsen
parent
0781b55fc1
commit
69f5a5718b
@@ -184,6 +184,15 @@ static void gm20b_ltc_init_fs_state(struct gk20a *g)
|
||||
ltc_ltcs_ltss_dstg_cfg0_vdc_4to2_disable_m());
|
||||
}
|
||||
|
||||
void gm20b_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 gm20b_init_ltc(struct gpu_ops *gops)
|
||||
{
|
||||
/* Gk20a reused ops. */
|
||||
@@ -201,4 +210,5 @@ void gm20b_init_ltc(struct gpu_ops *gops)
|
||||
gops->ltc.init_comptags = gm20b_ltc_init_comptags;
|
||||
gops->ltc.cbc_ctrl = gm20b_ltc_cbc_ctrl;
|
||||
gops->ltc.elpg_flush = gk20a_mm_g_elpg_flush_locked;
|
||||
gops->ltc.isr = gm20b_ltc_isr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user