提交 fcccab2e 编写于 作者: F Francisco Jerez 提交者: Ben Skeggs

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

Signed-off-by: NFrancisco Jerez <currojerez@riseup.net>
Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 aa5ac735
......@@ -390,7 +390,7 @@ nouveau_fence_sync(struct nouveau_fence *fence,
if (!sema) {
/* Early card or broken userspace, fall back to
* 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
......@@ -399,7 +399,7 @@ nouveau_fence_sync(struct nouveau_fence *fence,
*/
if (!mutex_trylock(&chan->mutex)) {
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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册