drm/amdgpu: avoid ras error injection for retired page
authorTao Zhou <tao.zhou1@amd.com>
Mon, 30 Sep 2019 06:48:19 +0000 (14:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Oct 2019 00:35:27 +0000 (19:35 -0500)
commit6e4be98767b249923e97b5a3c509e722d22e462d
tree8698e87d228b7914f3665fa19e521dd3392c5d43
parent4e930d96c906b8512c73038209038d48a70398a9
drm/amdgpu: avoid ras error injection for retired page

check whether a page is bad page before umc error injection, bad page
should not be accessed again

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c