dma-buf: wait for map to complete for static attachments
authorChristian König <christian.koenig@amd.com>
Tue, 23 Nov 2021 08:58:36 +0000 (09:58 +0100)
committerChristian König <christian.koenig@amd.com>
Thu, 7 Apr 2022 10:53:54 +0000 (12:53 +0200)
commit46b35b33cc561f0b1e61dcd518e2588cb168dd3f
treecb840eb8d8596d6e832d94427e714eeea05dc419
parent0cc848a75b742c3f9800e643cd2c03b9cfdc3d69
dma-buf: wait for map to complete for static attachments

We have previously done that in the individual drivers but it is
more defensive to move that into the common code.

Dynamic attachments should wait for map operations to complete by themselves.

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/20220407085946.744568-12-christian.koenig@amd.com
drivers/dma-buf/dma-buf.c
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
drivers/gpu/drm/nouveau/nouveau_prime.c
drivers/gpu/drm/radeon/radeon_prime.c