summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmber Lin <Amber.Lin@amd.com>2026-06-14 12:15:12 -0400
committerAlex Deucher <alexander.deucher@amd.com>2026-06-17 16:22:02 -0400
commitb54bf09ee083bdcf323321971d8d76d45701517c (patch)
tree38ac7c6809e84b70113becf9e33b31d38035e667
parentd0a8f98166ff3dc1047b93b0d5c45dd0b6696838 (diff)
drm/amdgpu: Add gfx12.0.1 adev to queue reset support
This patch adds the inclusion of gfx12.0.1 by checking GC's major number and minor number equal to 12.0.* with the same mes_sched version. 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>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
index 020d9c512306..6c0dde3786e3 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
@@ -864,12 +864,13 @@ 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) ||
- (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);
+ u32 ip_maj = IP_VERSION_MAJ(amdgpu_ip_version(adev, GC_HWIP, 0));
+ u32 ip_min = IP_VERSION_MIN(amdgpu_ip_version(adev, GC_HWIP, 0));
+ u32 mes_sched = adev->mes.sched_version & AMDGPU_MES_VERSION_MASK;
+
+ return (ip_maj == 11 && mes_sched >= 0x8c) ||
+ ((ip_maj == 12 && ip_min == 0) && mes_sched >= 0x8d) ||
+ ((ip_maj == 12 && ip_min == 1) && mes_sched >= 0x73);
}
/* Fix me -- node_id is used to identify the correct MES instances in the future */