summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHawking Zhang <Hawking.Zhang@amd.com>2026-04-09 21:33:51 +0800
committerAlex Deucher <alexander.deucher@amd.com>2026-10-01 11:22:34 -0400
commit46d702cdefd71e8f21a089e0292c2b7bc2dcf05f (patch)
tree4366aaff5521f932ec5a07f6d69366832a048b49
parent34f5b2eea328b1fb763894b744436f684eac1830 (diff)
drm/amdgpu: Add soc v2_0 ih client id table
To acommandate the specific ih client for soc v2_0 Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Frank Min <Frank.Min@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c35
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h1
-rw-r--r--drivers/gpu/drm/amd/include/soc_v2_0_ih_clientid.h51
3 files changed, 87 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
index dcf90a974326..03219ee894a2 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
@@ -134,6 +134,41 @@ const char *soc_v1_0_ih_clientid_name[] = {
"MP1",
};
+const char *soc_v2_0_ih_clientid_name[] = {
+ "IH",
+ "Reserved",
+ "ATHUB",
+ "BIF",
+ "DCN",
+ "Reserved",
+ "Reserved",
+ "RLC",
+ "Reserved",
+ "Reserved",
+ "GFX",
+ "IMU",
+ "NVE",
+ "Reserved",
+ "Reserved",
+ "THM",
+ "UMSCH_VCN",
+ "Reserved",
+ "VMC",
+ "Reserved",
+ "GRBM_CP",
+ "Reserved",
+ "Reserved",
+ "DF",
+ "VPE",
+ "SMUIO",
+ "Reserved",
+ "GC_UTCL2",
+ "Reserved",
+ "Reserved",
+ "MPASP",
+ "MP1",
+};
+
const int node_id_to_phys_map[NODEID_MAX] = {
[AID0_NODEID] = 0,
[XCD0_NODEID] = 0,
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h
index c88431471c30..5458ec3af19d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h
@@ -27,6 +27,7 @@
#include <linux/irqdomain.h>
#include "soc15_ih_clientid.h"
#include "soc_v1_0_ih_clientid.h"
+#include "soc_v2_0_ih_clientid.h"
#include "amdgpu_ih.h"
#define AMDGPU_MAX_IRQ_SRC_ID 0x100
diff --git a/drivers/gpu/drm/amd/include/soc_v2_0_ih_clientid.h b/drivers/gpu/drm/amd/include/soc_v2_0_ih_clientid.h
new file mode 100644
index 000000000000..eb24e76a666f
--- /dev/null
+++ b/drivers/gpu/drm/amd/include/soc_v2_0_ih_clientid.h
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2026 Advanced Micro Devices, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ */
+
+#ifndef __SOC_V2_0_IH_CLIENTID_H__
+#define __SOC_V2_0_IH_CLIENTID_H__
+
+extern const char *soc_v2_0_ih_clientid_name[];
+
+enum soc_v2_0_ih_clientid {
+ SOC_V2_0_IH_CLIENTID_IH = 0x00,
+ SOC_V2_0_IH_CLIENTID_ATHUB = 0x02,
+ SOC_V2_0_IH_CLIENTID_BIF = 0x03,
+ SOC_V2_0_IH_CLIENTID_DCN = 0x04,
+ SOC_V2_0_IH_CLIENTID_RLC = 0x07,
+ SOC_V2_0_IH_CLIENTID_GFX = 0x0a,
+ SOC_V2_0_IH_CLIENTID_IMU = 0x0b,
+ SOC_v2_1_IH_CLIENTID_NVE = 0x0c,
+ SOC_V2_0_IH_CLIENTID_THM = 0x0f,
+ SOC_V2_0_IH_CLIENTID_UMSCH_VCN = 0x10,
+ SOC_V2_0_IH_CLIENTID_VMC = 0x12,
+ SOC_V2_0_IH_CLIENTID_GRBM_CP = 0x14,
+ SOC_V2_0_IH_CLIENTID_DF = 0x17,
+ SOC_V2_0_IH_CLIENTID_VPE = 0x18,
+ SOC_V2_0_IH_CLIENTID_SMUIO = 0x19,
+ SOC_V2_0_IH_CLIENTID_GC_UTCL2 = 0x1b,
+ SOC_V2_0_IH_CLIENTID_MPASP = 0x1e,
+ SOC_V2_0_IH_CLIENTID_MP1 = 0x1f,
+ SOC_V2_0_IH_CLIENTID_MAX,
+};
+
+#endif