[PATCH 5.10 060/102] drm/amdgpu: Add check to prevent IH overflow