]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3655573fe811d23f2e26ea3a98fa02fda4c7efaa
tree59172003048bff163dc6ef9a1707941781732b41
parent9291e659866afaf7c7072cce8ce27299dca1d135
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