]> git.hungrycats.org Git - linux/commitdiff
drm/amdgpu: Expand MES queue/pipe reset support
authorAmber Lin <Amber.Lin@amd.com>
Wed, 6 May 2026 19:02:35 +0000 (15:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Jun 2026 19:51:36 +0000 (15:51 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c

index b1b7f69bcff3f08d36cbd5d0d339b7434119a631..020d9c512306c5c2144afaef046083562b1504f0 100644 (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 */