]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit203b554cbcdb57bb57fea5306d453a7630315e54
treecb840eb8d8596d6e832d94427e714eeea05dc419
parentae25cce9e63359253c4bf5c7c6ea5b4953ff5de9
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