In case we add bad pages during gpu reset. Bad pages might not been
reserved in time.

Signed-off-by: xinhui pan <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index 230c06e619ed..709b52e6ebaf 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -1271,6 +1271,8 @@ static void amdgpu_ras_do_recovery(struct work_struct 
*work)
 
        amdgpu_device_gpu_recover(ras->adev, 0);
        atomic_set(&ras->in_recovery, 0);
+       /* in case we add bad pages during gpu reset. */
+       amdgpu_ras_reserve_bad_pages(ras->adev);
 }
 
 static int amdgpu_ras_release_vram(struct amdgpu_device *adev,
-- 
2.17.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to