From: Hawking Zhang <[email protected]> To acommandate the specific ih client for soc v2_0
Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Frank Min <[email protected]> Signed-off-by: Alex Deucher <[email protected]> --- drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 35 +++++++++++++ drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h | 1 + .../drm/amd/include/soc_v2_0_ih_clientid.h | 51 +++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 drivers/gpu/drm/amd/include/soc_v2_0_ih_clientid.h diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c index dcf90a974326d..03219ee894a28 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 c88431471c303..5458ec3af19d2 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 0000000000000..eb24e76a666f3 --- /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 -- 2.55.0
