Skip to content

Commit 91fac86

Browse files
Revert "dma-buf: Report signaled links inside dma-fence-chain"
This reverts commit 5de376b. This change breaks synchronization of a timeline. dma_fence_chain_find_seqno() might be a bit of a confusing name but this function is not trying to find a particular seqno, is supposed to give a fence to wait on for a particular point in the timeline. In a timeline, a particular value is reached when all the points up to and including that value have signaled. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Christian König <christian.koenig@amd.com> Link: https://patchwork.freedesktop.org/patch/372958/ Signed-off-by: Christian König <christian.koenig@amd.com>
1 parent 55dd37e commit 91fac86

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎drivers/dma-buf/dma-fence-chain.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,6 @@ int dma_fence_chain_find_seqno(struct dma_fence **pfence, uint64_t seqno)
9999
return -EINVAL;
100100

101101
dma_fence_chain_for_each(*pfence, &chain->base) {
102-
if ((*pfence)->seqno < seqno) { /* already signaled */
103-
dma_fence_put(*pfence);
104-
*pfence = NULL;
105-
break;
106-
}
107-
108102
if ((*pfence)->context != chain->base.context ||
109103
to_dma_fence_chain(*pfence)->prev_seqno < seqno)
110104
break;
@@ -228,7 +222,6 @@ EXPORT_SYMBOL(dma_fence_chain_ops);
228222
* @chain: the chain node to initialize
229223
* @prev: the previous fence
230224
* @fence: the current fence
231-
* @seqno: the sequence number (syncpt) of the fence within the chain
232225
*
233226
* Initialize a new chain node and either start a new chain or add the node to
234227
* the existing chain of the previous fence.

0 commit comments

Comments
 (0)