[PATCH 6.17 108/159] drm/amdgpu: handle wrap around in reemit handling