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 <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 177b76a commit def5943

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)