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
Showing
- drivers/dma-buf/dma-resv.c 141 additions, 212 deletionsdrivers/dma-buf/dma-resv.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.h 0 additions, 1 deletiondrivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.h
- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 5 additions, 48 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
- include/linux/dma-resv.h 11 additions, 36 deletionsinclude/linux/dma-resv.h
Loading