MGS-5261 [#imx-1771] fix dummy draw hang for 8MM GPU
authorXianzhong <xianzhong.li@nxp.com>
Wed, 30 Oct 2019 14:57:20 +0000 (22:57 +0800)
committerXianzhong <xianzhong.li@nxp.com>
Wed, 30 Oct 2019 17:45:37 +0000 (01:45 +0800)
commit350c747d06a1025add8040befcf6f29aedc88b20
tree26b7da93346ab100b31d504e49625f4c7ad18f61
parent71c5490732baa290476c22a5904cd2909e01e7a2
MGS-5261 [#imx-1771] fix dummy draw hang for 8MM GPU

dummy draw is required for 8MM GPU errata - HBN1285,
this fix shall be applied for GPU power-up transition,
otherwise GPU shader hang with the unnecessary flush.

check GPU MMU state to enable dummy draw fix only.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
(cherry picked from commit f3f44f213eb1c5210aa4fe723256a2e1e699a4dc)
drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware.c