MGS-3495 [#imx-701] gpu failed to power off when nothing to be update
authorYuchou Gan <yuchou.gan@nxp.com>
Fri, 8 Dec 2017 16:22:11 +0000 (00:22 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:50:32 +0000 (14:50 -0500)
Merge fix patch from VSI. Tested on wayland,the power could be cut
off in a few seconds, if ctrl + c to terminate a running program making
gpu idle

Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@nxp.com>
Reviewed-by: Yuchou Gan <yuchou.gan@nxp.com>
Reviewed-by: Xianzhong <xianzhong.li@nxp.com>
drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware.c

index 61217eb..7c02790 100644 (file)
@@ -8690,7 +8690,7 @@ gckHARDWARE_QueryIdle(
             gckOS_ReadRegisterEx(Hardware->os, Hardware->core, 0x00004, &idle));
 
         /* Pipe must be idle. */
-        if (idle != 0x7ffffffe)
+        if ((idle | (1 << 14)) != 0x7ffffffe)
         {
             /* Something is busy. */
             isIdle = gcvFALSE;