drm/amdgpu: unwrap fence chains in the explicit sync fence
authorChristian König <christian.koenig@amd.com>
Tue, 8 Jun 2021 13:47:16 +0000 (15:47 +0200)
committerChristian König <christian.koenig@amd.com>
Tue, 22 Jun 2021 09:05:04 +0000 (11:05 +0200)
commit22f0463ae606a34134fdabacd27ede59e535a7cc
treede1b8a2a0bf110cbef8e48d0c70c2ccac77a77da
parent1451d0e90f47df758e600e4bdcddb1ac97b68097
drm/amdgpu: unwrap fence chains in the explicit sync fence

Unwrap the explicit fence if it is a dma_fence_chain and
sync to the first fence not matching the owner rules.

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-1-christian.koenig@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c