]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: Add mes v12_1_0 to discovery list
authorJack Xiao <Jack.Xiao@amd.com>
Tue, 18 Feb 2025 03:38:08 +0000 (11:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:39 +0000 (13:56 -0500)
Include mes v12_1_0 in the discovery list for
mes IP blocks.

Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Mukul Joshi <mukul.joshi@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

index c43509f95b89dce857abe5a94a5c73d1e3eadec6..0b94a23d03b6811c409640373708e1fe729a2471 100644 (file)
@@ -99,6 +99,7 @@
 #include "amdgpu_vkms.h"
 #include "mes_v11_0.h"
 #include "mes_v12_0.h"
+#include "mes_v12_1.h"
 #include "smuio_v11_0.h"
 #include "smuio_v11_0_6.h"
 #include "smuio_v13_0.h"
@@ -2566,6 +2567,13 @@ static int amdgpu_discovery_set_mes_ip_blocks(struct amdgpu_device *adev)
                if (amdgpu_uni_mes)
                        adev->enable_uni_mes = true;
                break;
+       case IP_VERSION(12, 1, 0):
+               amdgpu_device_ip_block_add(adev, &mes_v12_1_ip_block);
+               adev->enable_mes = true;
+               adev->enable_mes_kiq = true;
+               if (amdgpu_uni_mes)
+                       adev->enable_uni_mes = true;
+               break;
        default:
                break;
        }