MGS-6145 [#imx-2455] fix the QueryIdle fail when no weston
authorJiyu Yang <jiyu.yang@nxp.com>
Thu, 29 Apr 2021 08:47:03 +0000 (16:47 +0800)
committerJiyu Yang <jiyu.yang@nxp.com>
Thu, 13 May 2021 05:28:29 +0000 (13:28 +0800)
commit7742a338e205b4b2c0553868b10ea42d66108db0
treef9a9b821b0113f74d6ecbff11f4be88633c1dd15
parentd1db4d2a39592d9c76fba848f4445b157ff7a115
MGS-6145 [#imx-2455] fix the QueryIdle fail when no weston

When GPU hardware become idle, FE address will fall into
last wait-link loop, Wait-link has 2 instructions,
each instruction is 8 bytes, the valid offset is [0, 16],
Original programming is wrong to test FE not in idle
with last wait-link + 16.

Signed-off-by: Jiyu Yang <jiyu.yang@nxp.com>
drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware.c