drm/amdgpu: stop calling amdgpu_gpu_reset from the flip code
authorChristian König <christian.koenig@amd.com>
Thu, 11 Feb 2016 13:51:47 +0000 (14:51 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Feb 2016 22:23:31 +0000 (17:23 -0500)
We don't return -EDEADLK any more.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c

index 531627b..1d6ef1a 100644 (file)
 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);