[PATCH 5.4 43/72] drm/amdgpu: Add check to prevent IH overflow