MGS-3832 [#imx-921] Fix the cl_convolution of ACL which cause MMU exception
authorChenyan Feng <ella.feng@nxp.com>
Tue, 24 Apr 2018 15:13:42 +0000 (23:13 +0800)
committerChenyan Feng <ella.feng@nxp.com>
Tue, 24 Apr 2018 16:09:43 +0000 (00:09 +0800)
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 <ella.feng@nxp.com>
Reviewed-by: Xianzhong Li <xianzhong.li@nxp.com>
drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_event.c

index 1246fe0..7a3e6ed 100644 (file)
@@ -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);