summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/mc_gp10b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-11-01 13:29:28 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:52:02 -0500
commitcaeddb940fb81b5956939168faf5804cfb3bebfd (patch)
treec579a6952de5fbd2b6715b71829b91e3d8b10d1f /drivers/gpu/nvgpu/gp10b/mc_gp10b.c
parent317e7bb75862eb7e7272271435a6387a4f5c9839 (diff)
gpu: nvgpu: gp10b: Enable interrupts in linsim
Change-Id: I7d4211743793b905a20080bb44c62c036f23c854 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/592336 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/mc_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/mc_gp10b.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/mc_gp10b.c b/drivers/gpu/nvgpu/gp10b/mc_gp10b.c
index cdafaf56..4f7ab698 100644
--- a/drivers/gpu/nvgpu/gp10b/mc_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/mc_gp10b.c
@@ -21,19 +21,17 @@
21 21
22void mc_gp10b_intr_enable(struct gk20a *g) 22void mc_gp10b_intr_enable(struct gk20a *g)
23{ 23{
24 if (!tegra_platform_is_linsim()) { 24 gk20a_writel(g, mc_intr_en_clear_r(0), 0xffffffff);
25 gk20a_writel(g, mc_intr_en_clear_r(0), 0xffffffff); 25 gk20a_writel(g, mc_intr_en_set_r(0),
26 gk20a_writel(g, mc_intr_en_set_r(0), 26 mc_intr_pfifo_pending_f()
27 mc_intr_pfifo_pending_f() 27 | mc_intr_pgraph_pending_f());
28 | mc_intr_pgraph_pending_f()); 28 gk20a_writel(g, mc_intr_en_clear_r(1), 0xffffffff);
29 gk20a_writel(g, mc_intr_en_clear_r(1), 0xffffffff); 29 gk20a_writel(g, mc_intr_en_set_r(1),
30 gk20a_writel(g, mc_intr_en_set_r(1), 30 mc_intr_pfifo_pending_f()
31 mc_intr_pfifo_pending_f() 31 | mc_intr_pgraph_pending_f()
32 | mc_intr_pgraph_pending_f() 32 | mc_intr_priv_ring_pending_f()
33 | mc_intr_priv_ring_pending_f() 33 | mc_intr_ltc_pending_f()
34 | mc_intr_ltc_pending_f() 34 | mc_intr_pbus_pending_f());
35 | mc_intr_pbus_pending_f());
36 }
37} 35}
38 36
39irqreturn_t mc_gp10b_isr_stall(struct gk20a *g) 37irqreturn_t mc_gp10b_isr_stall(struct gk20a *g)