Skip to content

Commit af04b32

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]> (cherry picked from commit def5943) Cc: [email protected]
1 parent 9050589 commit af04b32

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
@@ -193,8 +193,8 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned int num_ibs,
193193
need_ctx_switch = ring->current_ctx != fence_ctx;
194194
if (ring->funcs->emit_pipeline_sync && job &&
195195
((tmp = amdgpu_sync_get_fence(&job->explicit_sync)) ||
196-
(amdgpu_sriov_vf(adev) && need_ctx_switch) ||
197-
amdgpu_vm_need_pipeline_sync(ring, job))) {
196+
need_ctx_switch || amdgpu_vm_need_pipeline_sync(ring, job))) {
197+
198198
need_pipe_sync = true;
199199

200200
if (tmp)

0 commit comments

Comments
 (0)