]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Fix API status offset for MES queue reset
authorJesse.Zhang <Jesse.Zhang@amd.com>
Mon, 28 Apr 2025 02:35:19 +0000 (10:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Apr 2025 22:10:06 +0000 (18:10 -0400)
commitad7c088e31f026d71fe87fd09473fafb7d6ed006
treef23959d21324786a4c5e3797e54583165805db05
parent3a2191efe45d00f9890071a9a81be15db9dab68d
drm/amdgpu: Fix API status offset for MES queue reset

The mes_v11_0_reset_hw_queue and mes_v12_0_reset_hw_queue functions were
using the wrong union type (MESAPI__REMOVE_QUEUE) when getting the offset
for api_status. Since these functions handle queue reset operations, they
should use MESAPI__RESET union instead.

This fixes the polling of API status during hardware queue reset operations
in the MES for both v11 and v12 versions.

Signed-off-by: Jesse Zhang <jesse.zhang@amd.com>
Reviewed-By: Shaoyun.liu <Shaoyun.liu@amd.com>
Reviewed-by: Prike Liang <Prike.Liang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c