OSDN Git Service

dma-buf & drm/amdgpu: remove dma_resv workaround
authorChristian König <christian.koenig@amd.com>
Tue, 23 Nov 2021 08:33:07 +0000 (09:33 +0100)
committerChristian König <christian.koenig@amd.com>
Thu, 7 Apr 2022 10:53:53 +0000 (12:53 +0200)
commit047a1b877ed48098bed71fcfb1d4891e1b54441d
tree59172003048bff163dc6ef9a1707941781732b41
parent73511edf8b196e6f1ccda0fdf294ff57aa2dc9db
dma-buf & drm/amdgpu: remove dma_resv workaround

Rework the internals of the dma_resv object to allow adding more than one
write fence and remember for each fence what purpose it had.

This allows removing the workaround from amdgpu which used a container for
this instead.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: amd-gfx@lists.freedesktop.org
Link: https://patchwork.freedesktop.org/patch/msgid/20220407085946.744568-4-christian.koenig@amd.com
drivers/dma-buf/dma-resv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
include/linux/dma-resv.h