All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Revert "dma-buf: Report signaled links inside dma-fence-chain"
@ 2020-06-25 12:34 ` Lionel Landwerlin
  0 siblings, 0 replies; 41+ messages in thread
From: Lionel Landwerlin @ 2020-06-25 12:34 UTC (permalink / raw)
  To: dri-devel; +Cc: intel-gfx, christian.koenig, chris

This reverts commit 5de376bb434f80a13138f0ebedc8351ab73d8b0d.

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>
---
 drivers/dma-buf/dma-fence-chain.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/dma-buf/dma-fence-chain.c b/drivers/dma-buf/dma-fence-chain.c
index c435bbba851c..3d123502ff12 100644
--- a/drivers/dma-buf/dma-fence-chain.c
+++ b/drivers/dma-buf/dma-fence-chain.c
@@ -99,12 +99,6 @@ int dma_fence_chain_find_seqno(struct dma_fence **pfence, uint64_t seqno)
 		return -EINVAL;
 
 	dma_fence_chain_for_each(*pfence, &chain->base) {
-		if ((*pfence)->seqno < seqno) { /* already signaled */
-			dma_fence_put(*pfence);
-			*pfence = NULL;
-			break;
-		}
-
 		if ((*pfence)->context != chain->base.context ||
 		    to_dma_fence_chain(*pfence)->prev_seqno < seqno)
 			break;
@@ -228,7 +222,6 @@ EXPORT_SYMBOL(dma_fence_chain_ops);
  * @chain: the chain node to initialize
  * @prev: the previous fence
  * @fence: the current fence
- * @seqno: the sequence number (syncpt) of the fence within the chain
  *
  * Initialize a new chain node and either start a new chain or add the node to
  * the existing chain of the previous fence.
-- 
2.27.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 41+ messages in thread

end of thread, other threads:[~2020-07-02 12:57 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-25 12:34 [PATCH 1/2] Revert "dma-buf: Report signaled links inside dma-fence-chain" Lionel Landwerlin
2020-06-25 12:34 ` [Intel-gfx] " Lionel Landwerlin
2020-06-25 12:34 ` [PATCH 2/2] dma-buf: fix dma-fence-chain out of order test Lionel Landwerlin
2020-06-25 12:34   ` [Intel-gfx] " Lionel Landwerlin
2020-06-25 12:44   ` Christian König
2020-06-25 12:44     ` [Intel-gfx] " Christian König
2020-06-25 13:18   ` Chris Wilson
2020-06-25 13:18     ` Chris Wilson
2020-06-25 13:23     ` Lionel Landwerlin
2020-06-25 13:23       ` Lionel Landwerlin
2020-06-25 13:47       ` Chris Wilson
2020-06-25 13:47         ` Chris Wilson
2020-06-25 13:56         ` Lionel Landwerlin
2020-06-25 13:56           ` Lionel Landwerlin
2020-06-25 13:59       ` Daniel Vetter
2020-06-25 13:59         ` Daniel Vetter
2020-07-02 12:57         ` Christian König
2020-07-02 12:57           ` Christian König
2020-06-25 12:43 ` [PATCH 1/2] Revert "dma-buf: Report signaled links inside dma-fence-chain" Christian König
2020-06-25 12:43   ` [Intel-gfx] " Christian König
2020-06-25 17:13   ` Dave Airlie
2020-06-25 17:13     ` Dave Airlie
2020-06-25 19:27     ` Jani Nikula
2020-06-25 19:27       ` Jani Nikula
2020-06-25 19:54       ` Daniel Vetter
2020-06-25 19:54         ` Daniel Vetter
2020-06-26  4:43         ` Sumit Semwal
2020-06-26  4:43           ` Sumit Semwal
2020-06-26  7:03           ` Christian König
2020-06-26  7:03             ` Christian König
2020-06-26 12:39             ` Daniel Vetter
2020-06-26 12:39               ` Daniel Vetter
2020-06-26 15:34               ` Sumit Semwal
2020-06-26 15:34                 ` Sumit Semwal
2020-06-26  1:36       ` Dave Airlie
2020-06-26  1:36         ` Dave Airlie
2020-07-02  8:26   ` Lionel Landwerlin
2020-07-02  8:26     ` [Intel-gfx] " Lionel Landwerlin
2020-07-02  8:28     ` Christian König
2020-07-02  8:28       ` [Intel-gfx] " Christian König
2020-06-26 14:15 ` [Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.