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>
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;