summaryrefslogtreecommitdiffstats
path: root/drivers/dma-buf/selftests.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2022-03-11 10:27:53 +0100
committerChristian König <christian.koenig@amd.com>2022-03-25 14:18:28 +0100
commit64a8f92fd783e750cdb81af75942dcd53bbf61bd (patch)
treecbddd8445aae570b7a0cca7fd66c4c9245fcdd34 /drivers/dma-buf/selftests.h
parentdma-buf: Add dma_fence_array_for_each (v2) (diff)
downloadlinux-64a8f92fd783e750cdb81af75942dcd53bbf61bd.tar.xz
linux-64a8f92fd783e750cdb81af75942dcd53bbf61bd.zip
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 Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20220311110244.1245-1-christian.koenig@amd.com
Diffstat (limited to 'drivers/dma-buf/selftests.h')
-rw-r--r--drivers/dma-buf/selftests.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma-buf/selftests.h b/drivers/dma-buf/selftests.h
index 97d73aaa31da..851965867d9c 100644
--- a/drivers/dma-buf/selftests.h
+++ b/drivers/dma-buf/selftests.h
@@ -12,4 +12,5 @@
selftest(sanitycheck, __sanitycheck__) /* keep first (igt selfcheck) */
selftest(dma_fence, dma_fence)
selftest(dma_fence_chain, dma_fence_chain)
+selftest(dma_fence_unwrap, dma_fence_unwrap)
selftest(dma_resv, dma_resv)