[PATCH] drm/amdgpu: Also reserve bad pages after gpu reset
Pan, Xinhui
Xinhui.Pan at amd.com
Tue Jul 23 03:30:45 UTC 2019
In case we add bad pages during gpu reset. Bad pages might not been
reserved in time.
Signed-off-by: xinhui pan <xinhui.pan at amd.com>
---
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
More information about the amd-gfx
mailing list