Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: Return earlier in amdgpu_sw_ring_ib_end if mcbp is off

As we don't trigger preemption is sw ring muxer when mcbp is
disabled,so return earlier in amdgpu_sw_ring_ib_end function
if mcbp is disabled ,not required to call amdgpu_ring_mux_end_ib

Signed-off-by: Soham Dandapat <sdandapa@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Soham Dandapat and committed by
Alex Deucher
406792dc 37ee1456

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c
··· 410 410 struct amdgpu_ring_mux *mux = &adev->gfx.muxer; 411 411 412 412 WARN_ON(!ring->is_sw_ring); 413 - if (ring->hw_prio > AMDGPU_RING_PRIO_DEFAULT) 413 + if (adev->gfx.mcbp && ring->hw_prio > AMDGPU_RING_PRIO_DEFAULT) 414 414 return; 415 415 amdgpu_ring_mux_end_ib(mux, ring); 416 416 }