dma-buf: dma_fence_wait must enable signaling
dma_fence_wait() should always enable signaling even when the fence is already signaled. Signed-off-by: Arvind Yadav <Arvind.Yadav@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220914164321.2156-5-Arvind.Yadav@amd.com Signed-off-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
d62c43a953
commit
b96fb1e724
1 changed files with 2 additions and 3 deletions
|
@ -508,6 +508,8 @@ dma_fence_wait_timeout(struct dma_fence *fence, bool intr, signed long timeout)
|
||||||
|
|
||||||
__dma_fence_might_wait();
|
__dma_fence_might_wait();
|
||||||
|
|
||||||
|
dma_fence_enable_sw_signaling(fence);
|
||||||
|
|
||||||
trace_dma_fence_wait_start(fence);
|
trace_dma_fence_wait_start(fence);
|
||||||
if (fence->ops->wait)
|
if (fence->ops->wait)
|
||||||
ret = fence->ops->wait(fence, intr, timeout);
|
ret = fence->ops->wait(fence, intr, timeout);
|
||||||
|
@ -771,9 +773,6 @@ dma_fence_default_wait(struct dma_fence *fence, bool intr, signed long timeout)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!__dma_fence_enable_signaling(fence))
|
|
||||||
goto out;
|
|
||||||
|
|
||||||
if (!timeout) {
|
if (!timeout) {
|
||||||
ret = 0;
|
ret = 0;
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Add table
Reference in a new issue