dma-buf: add dma_fence_chain_alloc/free v3
authorChristian König <christian.koenig@amd.com>
Wed, 5 May 2021 11:38:12 +0000 (13:38 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 14 Jun 2021 17:38:34 +0000 (19:38 +0200)
commit440d0f12b52a920f4c78376b3ce7039ba59244c5
tree68275ad9b3385a4fad67c75f281bd44d8c9d0fa2
parent9c61e789546810ee63708568737cb990d2b86605
dma-buf: add dma_fence_chain_alloc/free v3

Add a common allocation helper. Cleaning up the mix of kzalloc/kmalloc
and some unused code in the selftest.

v2: polish kernel doc a bit
v3: polish kernel doc even a bit more

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/20210611120301.10595-3-christian.koenig@amd.com
drivers/dma-buf/st-dma-fence-chain.c
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/drm_syncobj.c
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
drivers/gpu/drm/msm/msm_gem_submit.c
include/linux/dma-fence-chain.h