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>
/* Test if address is inside the last WAIT/LINK sequence. */
if ((address < Hardware->lastWaitLink) ||
- (address >= (gctUINT64)Hardware->lastWaitLink + 16))
+ (address > (gctUINT64)Hardware->lastWaitLink + 16))
{
/* FE is not in WAIT/LINK yet. */
break;