]> www.infradead.org Git - linux.git/commit
drm/amdgpu/mes: fix mes ring buffer overflow
authorJack Xiao <Jack.Xiao@amd.com>
Thu, 18 Jul 2024 08:38:50 +0000 (16:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Aug 2024 16:50:01 +0000 (12:50 -0400)
commit11752c013f562a1124088a35bd314aa0e9f0e88f
tree9bf40e817aed7fb4a884b16532ffdaaae1c51821
parent7c626ce4bae1ac14f60076d00eafe71af30450ba
drm/amdgpu/mes: fix mes ring buffer overflow

wait memory room until enough before writing mes packets
to avoid ring buffer overflow.

v2: squash in sched_hw_submission fix

Fixes: de3246254156 ("drm/amdgpu: cleanup MES11 command submission")
Fixes: fffe347e1478 ("drm/amdgpu: cleanup MES12 command submission")
Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 34e087e8920e635c62e2ed6a758b0cd27f836d13)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c