]> www.infradead.org Git - users/hch/configfs.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 13:57:52 +0000 (09:57 -0400)
commit34e087e8920e635c62e2ed6a758b0cd27f836d13
tree3340b071f69d1e86761b8515ecaf2eae59254ec1
parent46142cc1b9272d664e0258e105b537735bfeeccc
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>
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