Commit fcccab2e authored by Francisco Jerez's avatar Francisco Jerez Committed by Ben Skeggs

drm/nouveau: Use lazy fence waits when doing software interchannel sync.

Signed-off-by: default avatarFrancisco Jerez <currojerez@riseup.net>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent aa5ac735
...@@ -390,7 +390,7 @@ nouveau_fence_sync(struct nouveau_fence *fence, ...@@ -390,7 +390,7 @@ nouveau_fence_sync(struct nouveau_fence *fence,
if (!sema) { if (!sema) {
/* Early card or broken userspace, fall back to /* Early card or broken userspace, fall back to
* software sync. */ * software sync. */
return nouveau_fence_wait(fence, NULL, false, false); return nouveau_fence_wait(fence, NULL, true, false);
} }
/* try to take chan's mutex, if we can't take it right away /* try to take chan's mutex, if we can't take it right away
...@@ -399,7 +399,7 @@ nouveau_fence_sync(struct nouveau_fence *fence, ...@@ -399,7 +399,7 @@ nouveau_fence_sync(struct nouveau_fence *fence,
*/ */
if (!mutex_trylock(&chan->mutex)) { if (!mutex_trylock(&chan->mutex)) {
free_semaphore(&sema->ref); free_semaphore(&sema->ref);
return nouveau_fence_wait(fence, NULL, false, false); return nouveau_fence_wait(fence, NULL, true, false);
} }
/* Make wchan wait until it gets signalled */ /* Make wchan wait until it gets signalled */
......
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