]> www.infradead.org Git - linux.git/commitdiff
drm/amdgpu: Return earlier in amdgpu_sw_ring_ib_end if mcbp is off
authorSoham Dandapat <sdandapa@amd.com>
Mon, 29 Jul 2024 06:29:11 +0000 (11:59 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Aug 2024 18:17:31 +0000 (14:17 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c

index d234b7ccfaafcd5df30bae8c173f24e10d4fff6c..1c66da1c3fb42f1e4b9573d3eea727d86ee821d6 100644 (file)
@@ -410,7 +410,7 @@ void amdgpu_sw_ring_ib_end(struct amdgpu_ring *ring)
        struct amdgpu_ring_mux *mux = &adev->gfx.muxer;
 
        WARN_ON(!ring->is_sw_ring);
-       if (ring->hw_prio > AMDGPU_RING_PRIO_DEFAULT)
+       if (adev->gfx.mcbp && ring->hw_prio > AMDGPU_RING_PRIO_DEFAULT)
                return;
        amdgpu_ring_mux_end_ib(mux, ring);
 }