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