Commit 2aeb6aef authored by Christian König's avatar Christian König Committed by T.J. Mercier
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

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)
[TJ: Don't bring in dma_resv code]
Bug: 394776841
Signed-off-by: default avatarT.J. Mercier <tjmercier@google.com>
parent 81b6f83e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment