From: Christian König Date: Thu, 11 Feb 2016 13:51:47 +0000 (+0100) Subject: drm/amdgpu: stop calling amdgpu_gpu_reset from the flip code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6800e2ea2e74635e5386fc4bb43b0b69edd85a19;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/amdgpu: stop calling amdgpu_gpu_reset from the flip code We don't return -EDEADLK any more. Signed-off-by: Christian König Acked-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c index 531627b0a900..1d6ef1a95e74 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c @@ -38,20 +38,12 @@ static void amdgpu_flip_wait_fence(struct amdgpu_device *adev, struct fence **f) { - struct amdgpu_fence *fence; long r; if (*f == NULL) return; - fence = to_amdgpu_fence(*f); - if (fence) { - r = fence_wait(&fence->base, false); - if (r == -EDEADLK) - r = amdgpu_gpu_reset(adev); - } else - r = fence_wait(*f, false); - + r = fence_wait(*f, false); if (r) DRM_ERROR("failed to wait on page flip fence (%ld)!\n", r);