Commit 16963011 authored by Christian König's avatar Christian König Committed by Todd Kjos
Browse files

BACKPORT: dma-buf: add dma_fence_unwrap v2



Add a general purpose helper to deep dive into dma_fence_chain/dma_fence_array
structures and iterate over all the fences in them.

This is useful when we need to flatten out all fences in those structures.

v2: some selftests cleanup, improved function naming and documentation

Bug: 310208240
Change-Id: I4d4bd21fd9444523917cc884107f5af13fa5a08f
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220311110244.1245-1-christian.koenig@amd.com


(cherry picked from commit 64a8f92f)
[richardfung: modified patch to remove build rules for st-dma-resv which
was introduced in a separate patch]
Signed-off-by: default avatarRichard Fung <richardfung@google.com>
parent 67e5ffd3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment