[PATCH AUTOSEL 6.17] drm/amdgpu: refactor bad_page_work for corner case handling