drm/radeon: fix radeon_fence_wait_empty_locked
Subsystems (2)
PATCH 1/1 drm/radeon: fix radeon_fence_wait_empty_locked
From: Christian König <[email protected]>
Don't block forever if there is nothing to wait for.
Signed-off-by Christian König <[email protected]>
--- drivers/gpu/drm/radeon/radeon_fence.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/radeon/radeon_fence.c +3 -0
@@ -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 )
Signature · 6 lines
1.8.1.2 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
2013/11/5 Christian König <[email protected]>:
Quoted 5 lines
From: Christian König <[email protected]>
Don't block forever if there is nothing to wait for.
Signed-off-by Christian König <[email protected]>
Tested-by Rafał Miłecki <[email protected]>
Signature · 5 lines
Rafał _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel