drm/syncobj: flatten dma_fence_chains on transfer
authorChristian König <christian.koenig@amd.com>
Wed, 9 Feb 2022 18:13:04 +0000 (19:13 +0100)
committerChristian König <christian.koenig@amd.com>
Fri, 11 Feb 2022 10:30:01 +0000 (11:30 +0100)
commit721255b52700b320c4ae2e23d57f7d9ad1db50b9
treea69645e2cf6bf5c328548dba652e3192d995a111
parent1528038385c0a706aac9ac165eeb24044fef6825
drm/syncobj: flatten dma_fence_chains on transfer

It is illegal to add a dma_fence_chain as timeline point. Flatten out
the fences into a dma_fence_array instead.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Nirmoy Das <nirmoy.das@linux.intel.com>
Cc: <stable@vger.kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220209182600.434803-1-christian.koenig@amd.com
drivers/gpu/drm/drm_syncobj.c