drm/amdgpu: handle pipeline sync without a VM fence
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Aug 2026 15:39:16 +0000 (11:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Aug 2026 14:13:33 +0000 (10:13 -0400)
commit0e4ef0ead600e367b4dd431daa97a345a5ff8a86
treefa2e8b04dab9e710cc25784cfdfe5be17983fbcd
parent4d7390530853eb7befda9cc786e4c86e8ad7ac9e
drm/amdgpu: handle pipeline sync without a VM fence

If we end up emitting a VM fence keep pipeline sync
associated with that fence.  If not, emit them as
part of the IB fence.

v2: fix need_pipe_sync handling
v3: simplify the function

Cc: David Rosca <david.rosca@amd.com>
Fixes: cb1e657ccac8 ("drm/amdgpu: handle GDS and SPM without a VM fence")
Reviewed-by: David Rosca <david.rosca@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h