Skip to content

Commit 0cc84b6

Browse files
ChristianKoenigAMDgregkh
authored andcommitted
drm/amdgpu: always sync the GFX pipe on ctx switch
commit af04b32 upstream. 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> (cherry picked from commit def5943) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 65622de commit 0cc84b6

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)