From 2503a45f46fb3f56786769cb8e930085bf1359ec Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Thu, 29 Jan 2015 12:46:59 -0800 Subject: gpu: nvgpu: Catch DS exception Catch DS exception and write an error to UART. Change-Id: Iaad9813c48191f0d3d734d4af264b976a3818672 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/679142 --- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index e4e0d163..e8340216 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -5612,6 +5612,12 @@ int gk20a_gr_isr(struct gk20a *g) NVGPU_CHANNEL_GR_ERROR_SW_NOTIFY); } + if (exception & gr_exception_ds_m()) { + u32 ds = gk20a_readl(g, gr_ds_hww_esr_r()); + gk20a_dbg(gpu_dbg_intr, "ds exception %08x\n", ds); + gk20a_writel(g, gr_ds_hww_esr_r(), ds); + } + gk20a_writel(g, gr_intr_r(), gr_intr_exception_reset_f()); gr_intr &= ~gr_intr_exception_pending_f(); } -- cgit v1.2.2