Skip to content

Commit b529093

Browse files
Lin.Caoalexdeucher
authored andcommitted
drm/amdgpu: fix ring timeout issue in gfx10 sr-iov environment
commit 26c95e8 ("drm/amdgpu: set the VM pointer to NULL in amdgpu_job_prepare") set job->vm as NULL if there is no fence. It will cause emit switch buffer be skippen if job->vm set as NULL. Check job rather than vm could solve this problem. Fixes: 26c95e8 ("drm/amdgpu: set the VM pointer to NULL in amdgpu_job_prepare") Signed-off-by: Lin.Cao <lincao12@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 1bf06a1 commit b529093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned int num_ibs,
297297
amdgpu_ring_patch_cond_exec(ring, cond_exec);
298298

299299
ring->current_ctx = fence_ctx;
300-
if (vm && ring->funcs->emit_switch_buffer)
300+
if (job && ring->funcs->emit_switch_buffer)
301301
amdgpu_ring_emit_switch_buffer(ring);
302302

303303
if (ring->funcs->emit_wave_limit &&

0 commit comments

Comments
 (0)