drm/amdgpu: stop calling amdgpu_gpu_reset from the flip code
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>
This commit is contained in:
Родитель
9b3896686f
Коммит
6800e2ea2e
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче