drm/amdgpu: Expand MES queue/pipe reset support

MES in newer versions on gfx11 and gfx12 can support queue/pipe reset via
MES.

v2: update the fw version check (Jesse)

Signed-off-by: Amber Lin <Amber.Lin@amd.com>
Reviewed-by: Jesse Zhang <jesse.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Amber Lin
2026-05-06 15:02:35 -04:00
committed by Alex Deucher
parent f401a2633e
commit c847c557bb

View File

@@ -865,7 +865,11 @@ bool amdgpu_mes_suspend_resume_all_supported(struct amdgpu_device *adev)
bool amdgpu_mes_queue_reset_by_mes_supported(struct amdgpu_device *adev)
{
return (amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(12, 1, 0) &&
(adev->mes.sched_version & AMDGPU_MES_VERSION_MASK) >= 0x73);
(adev->mes.sched_version & AMDGPU_MES_VERSION_MASK) >= 0x73) ||
(IP_VERSION_MAJ(amdgpu_ip_version(adev, GC_HWIP, 0)) == 11 &&
(adev->mes.sched_version & AMDGPU_MES_VERSION_MASK) >= 0x8c) ||
(amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(12, 0, 0) &&
(adev->mes.sched_version & AMDGPU_MES_VERSION_MASK) >= 0x8d);
}
/* Fix me -- node_id is used to identify the correct MES instances in the future */