From 4d1ddd5d8e6396abab8264fe45ba725c05f0761c Mon Sep 17 00:00:00 2001 From: Chenyan Feng Date: Tue, 24 Apr 2018 23:13:42 +0800 Subject: [PATCH] MGS-3832 [#imx-921] Fix the cl_convolution of ACL which cause MMU exception Dump the error info only when there is an error. If the gcdALLOC_ON_FAULT is not enabled, still need to check the HW status to decide whether to dump the exception info or not Signed-off-by: Ella Feng Reviewed-by: Xianzhong Li --- drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_event.c b/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_event.c index 1246fe04e572..7a3e6edb3aeb 100644 --- a/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_event.c +++ b/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_event.c @@ -2215,8 +2215,8 @@ gckEVENT_Notify( #if gcdALLOC_ON_FAULT status = gckHARDWARE_HandleFault(Event->kernel->hardware); - if (gcmIS_ERROR(status)) #endif + if (gcmIS_ERROR(status)) { /* Dump error is fault can't be handle. */ gckHARDWARE_DumpMMUException(Event->kernel->hardware); -- 2.17.1