]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: rework dma_resv handling v3
authorChristian König <christian.koenig@amd.com>
Wed, 9 Jun 2021 11:51:36 +0000 (13:51 +0200)
committerChristian König <christian.koenig@amd.com>
Tue, 22 Jun 2021 09:05:05 +0000 (11:05 +0200)
commit8c505bdc9c8b955223b054e34a0be9c3d841cd20
tree8c250885aa9872de706787183d97fdac3bd059a1
parent22f0463ae606a34134fdabacd27ede59e535a7cc
drm/amdgpu: rework dma_resv handling v3

Drop the workaround and instead implement a better solution.

Basically we are now chaining all submissions using a dma_fence_chain
container and adding them as exclusive fence to the dma_resv object.

This way other drivers can still sync to the single exclusive fence
while amdgpu only sync to fences from different processes.

v3: add the shared fence first before the exclusive one

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210614174536.5188-2-christian.koenig@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h