From dcb744acfbbc11e66cac2d0a674a42e62d908b9d Mon Sep 17 00:00:00 2001 From: Lakshmanan M Date: Fri, 19 May 2017 15:43:13 +0530 Subject: gpu: nvgpu: Add GCC exception handling support Add support for per-chip handling of GCC exception. JIRA GPUT19X-86 Change-Id: I76ea588dc76b5c821ae5b53529db6dd64b3a856a Signed-off-by: Lakshmanan M Reviewed-on: http://git-master/r/1485836 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 9 +++++++++ 1 file changed, 9 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 3486076e..4d41f9ff 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -6348,6 +6348,15 @@ static int gk20a_gr_handle_gpc_exception(struct gk20a *g, bool *post_event, * exceptions to be cleared */ gk20a_gr_clear_sm_hww(g, gpc, tpc, global_esr); } + + /* Handle GCC exception */ + if(gr_gpc0_gpccs_gpc_exception_gcc_v(gpc_exception) && + g->ops.gr.handle_gcc_exception) { + int gcc_ret = 0; + gcc_ret = g->ops.gr.handle_gcc_exception(g, gpc, tpc, + post_event, fault_ch, hww_global_esr); + ret = ret ? ret : gcc_ret; + } } return ret; -- cgit v1.2.2