[PATCH 0/5] Fixes etc for fence merging

Tvrtko Ursulin tursulin at igalia.com
Fri Nov 15 10:21:48 UTC 2024


From: Tvrtko Ursulin <tvrtko.ursulin at igalia.com>

Consolidated series as an simpler alternative to
https://lore.kernel.org/dri-devel/20241024124159.4519-3-christian.koenig@amd.com/.

Hopefully fixes https://gitlab.freedesktop.org/drm/amd/-/issues/3617.

First two patches are fixes followed by one optimisation and then Christian's
and my selftest additions.

Cover letter now because it grew to five patches.

Please test and/or suggest more test cases to look at.

Cc: Christian König <christian.koenig at amd.com>
Cc: Friedrich Vock <friedrich.vock at gmx.de

Christian König (1):
  dma-buf: add selftest for fence order after merge

Tvrtko Ursulin (4):
  dma-fence: Fix reference leak on fence merge failure path
  dma-fence: Use kernel's sort for merging fences
  dma-fence: Add a single fence fast path for fence merging
  dma-fence: Add some more fence-merge-unwrap tests

 drivers/dma-buf/dma-fence-unwrap.c    | 137 ++++++-------
 drivers/dma-buf/st-dma-fence-unwrap.c | 268 +++++++++++++++++++++++++-
 2 files changed, 335 insertions(+), 70 deletions(-)

-- 
2.46.0



More information about the dri-devel mailing list