summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-04-09 06:33:31 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:09:06 -0400
commit3df84a13d142b20f63970b9523143dd0e46c2ff9 (patch)
tree262f8b11454349ea46a28ca808a43d673f934743 /drivers/gpu/nvgpu/gk20a/gr_gk20a.c
parent542f729aa9ea9c5eb845c35d855e3925f45ab24f (diff)
gpu: nvgpu: Make trigger mmu fault GPU specific
Add abstraction for triggering fake MMU fault, and a gk20a implementation. Also adds recovery to FE hardware warning exception to make testing easier. Bug 1495967 Change-Id: I6703cff37900a4c4592023423f9c0b31a8928db2 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index ced1f62f..b2a92f81 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -5333,6 +5333,7 @@ int gk20a_gr_isr(struct gk20a *g)
5333 u32 fe = gk20a_readl(g, gr_fe_hww_esr_r()); 5333 u32 fe = gk20a_readl(g, gr_fe_hww_esr_r());
5334 gk20a_dbg(gpu_dbg_intr, "fe warning %08x\n", fe); 5334 gk20a_dbg(gpu_dbg_intr, "fe warning %08x\n", fe);
5335 gk20a_writel(g, gr_fe_hww_esr_r(), fe); 5335 gk20a_writel(g, gr_fe_hww_esr_r(), fe);
5336 need_reset |= -EFAULT;
5336 } 5337 }
5337 5338
5338 /* check if a gpc exception has occurred */ 5339 /* check if a gpc exception has occurred */