提交 721529b5 编写于 作者: C Christian König 提交者: Dave Airlie

drm/radeon: fix radeon_fence_wait_empty_locked

Don't block forever if there is nothing to wait for.
Signed-off-by: NChristian König <christian.koenig@amd.com>
Tested-by: NRafa? Mi?ecki <zajec5@gmail.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 d9bbf189
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册