[PATCH 08/10] drm/amdgpu: recover gart table first when full reset

Chunming Zhou David1.Zhou at amd.com
Tue Aug 2 08:00:38 UTC 2016


Change-Id: Iad7a90646dbb5df930a8ba177ce6bdc48415ff7d
Signed-off-by: Chunming Zhou <David1.Zhou at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index b7b4cf8..16ba37d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -2191,6 +2191,8 @@ retry:
 				kthread_unpark(ring->sched.thread);
 				unpark_bits |= 1 << ring->idx;
 			}
+			DRM_INFO("recover gart table first\n");
+			amdgpu_gart_table_recover_from_shadow(adev);
 
 			spin_lock(&adev->vm_list_lock);
 			list_for_each_entry_safe(vm, tmp, &adev->vm_list, list) {
-- 
1.9.1



More information about the amd-gfx mailing list