Skip to content

Commit

Permalink
drm/radeon: fix radeon_fence_wait_empty_locked
Browse files Browse the repository at this point in the history
Don't block forever if there is nothing to wait for.

Signed-off-by: Christian König <christian.koenig@amd.com>
Tested-by: Rafa? Mi?ecki <zajec5@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Christian König authored and Dave Airlie committed Nov 6, 2013
1 parent d9bbf18 commit 721529b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/radeon/radeon_fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,9 @@ int radeon_fence_wait_empty_locked(struct radeon_device *rdev, int ring)
int r;

seq[ring] = rdev->fence_drv[ring].sync_seq[ring];
if (!seq[ring])
return 0;

r = radeon_fence_wait_seq(rdev, seq, false, false);
if (r) {
if (r == -EDEADLK)
Expand Down

0 comments on commit 721529b

Please sign in to comment.