drm/amdgpu: Skip mark offset for high priority rings
authorJiadong Zhu <Jiadong.Zhu@amd.com>
Thu, 15 Jun 2023 11:10:57 +0000 (19:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Jun 2023 19:31:50 +0000 (15:31 -0400)
Only low priority rings are using chunks to save the offset.
Bypass the mark offset callings from high priority rings.

Signed-off-by: Jiadong Zhu <Jiadong.Zhu@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 73516ab..b779ee4 100644 (file)
@@ -423,6 +423,9 @@ void amdgpu_sw_ring_ib_mark_offset(struct amdgpu_ring *ring, enum amdgpu_ring_mu
        struct amdgpu_ring_mux *mux = &adev->gfx.muxer;
        unsigned offset;
 
+       if (ring->hw_prio > AMDGPU_RING_PRIO_DEFAULT)
+               return;
+
        offset = ring->wptr & ring->buf_mask;
 
        amdgpu_ring_mux_ib_mark_offset(mux, ring, offset, type);