Commit 721529b5 authored by Christian König's avatar Christian König Committed by Dave Airlie

drm/radeon: fix radeon_fence_wait_empty_locked

Don't block forever if there is nothing to wait for.
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Tested-by: default avatarRafa? Mi?ecki <zajec5@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent d9bbf189
...@@ -510,6 +510,9 @@ int radeon_fence_wait_empty_locked(struct radeon_device *rdev, int ring) ...@@ -510,6 +510,9 @@ int radeon_fence_wait_empty_locked(struct radeon_device *rdev, int ring)
int r; int r;
seq[ring] = rdev->fence_drv[ring].sync_seq[ring]; seq[ring] = rdev->fence_drv[ring].sync_seq[ring];
if (!seq[ring])
return 0;
r = radeon_fence_wait_seq(rdev, seq, false, false); r = radeon_fence_wait_seq(rdev, seq, false, false);
if (r) { if (r) {
if (r == -EDEADLK) if (r == -EDEADLK)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment