Skip to content

Commit def5943

Browse files
ChristianKoenigAMDalexdeucher
authored andcommitted
drm/amdgpu: always sync the GFX pipe on ctx switch
That is needed to enforce isolation between contexts. Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 177b76a commit def5943

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned int num_ibs,
191191
need_ctx_switch = ring->current_ctx != fence_ctx;
192192
if (ring->funcs->emit_pipeline_sync && job &&
193193
((tmp = amdgpu_sync_get_fence(&job->explicit_sync)) ||
194-
(amdgpu_sriov_vf(adev) && need_ctx_switch) ||
195-
amdgpu_vm_need_pipeline_sync(ring, job))) {
194+
need_ctx_switch || amdgpu_vm_need_pipeline_sync(ring, job))) {
195+
196196
need_pipe_sync = true;
197197

198198
if (tmp)

0 commit comments

Comments
 (0)