aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 1f6121a2a94b..21e02df63730 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1947,7 +1947,8 @@ int amdgpu_gpu_reset(struct amdgpu_device *adev)
1947 continue; 1947 continue;
1948 kthread_park(ring->sched.thread); 1948 kthread_park(ring->sched.thread);
1949 } 1949 }
1950 1950 /* after all hw jobs are reset, hw fence is meaningless, so force_completion */
1951 amdgpu_fence_driver_force_completion(adev);
1951 1952
1952 /* save scratch */ 1953 /* save scratch */
1953 amdgpu_atombios_scratch_regs_save(adev); 1954 amdgpu_atombios_scratch_regs_save(adev);
@@ -2005,7 +2006,7 @@ retry:
2005 } 2006 }
2006 } 2007 }
2007 } else { 2008 } else {
2008 amdgpu_fence_driver_force_completion(adev); 2009 dev_err(adev->dev, "asic resume failed (%d).\n", r);
2009 for (i = 0; i < AMDGPU_MAX_RINGS; ++i) { 2010 for (i = 0; i < AMDGPU_MAX_RINGS; ++i) {
2010 if (adev->rings[i]) { 2011 if (adev->rings[i]) {
2011 kthread_unpark(adev->rings[i]->sched.thread); 2012 kthread_unpark(adev->rings[i]->sched.thread);