SMUIO v15.0.3 support
Subsystems (2)
Alex Deucher
maintainercover SMUIO v15.0.3 support
This series adds SMUIO v15.0.3 support.
Hawking Zhang (2):
drm/amdgpu: Add smuio v15_0_3 ip headers v4
drm/amdgpu: Add smuio v15_0_3 support
drivers/gpu/drm/amd/amdgpu/Makefile | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 4 + drivers/gpu/drm/amd/amdgpu/smuio_v15_0_3.c | 84 +++++++++ drivers/gpu/drm/amd/amdgpu/smuio_v15_0_3.h | 30 ++++ .../asic_reg/smuio/smuio_15_0_3_offset.h | 79 +++++++++ .../asic_reg/smuio/smuio_15_0_3_sh_mask.h | 164 ++++++++++++++++++ 6 files changed, 362 insertions(+) create mode 100644 drivers/gpu/drm/amd/amdgpu/smuio_v15_0_3.c create mode 100644 drivers/gpu/drm/amd/amdgpu/smuio_v15_0_3.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/smuio/smuio_15_0_3_offset.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/smuio/smuio_15_0_3_sh_mask.h
Signature · 1 line
2.55.0
Alex Deucher
maintainerPATCH 1/2 drm/amdgpu: Add smuio v15_0_3 ip headers v4
From: Hawking Zhang <[email protected]>
Add header files for smuio v15_0_3 register offsets and shift masks
v2: Update smuio ip headers to LSC version
v3: Update smuio ip headers to BTO version
v4: Update registers (Alex)
Signed-off-by Hawking Zhang <[email protected]>
Reviewed-by Frank Min <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- .../asic_reg/smuio/smuio_15_0_3_offset.h | 79 +++++++++ .../asic_reg/smuio/smuio_15_0_3_sh_mask.h | 164 ++++++++++++++++++ 2 files changed, 243 insertions(+) create mode 100644 drivers/gpu/drm/amd/include/asic_reg/smuio/smuio_15_0_3_offset.h create mode 100644 drivers/gpu/drm/amd/include/asic_reg/smuio/smuio_15_0_3_sh_mask.h
drivers/gpu/drm/amd/include/asic_reg/smuio/smuio_15_0_3_offset.h new file +79 -0
@@ -0,0 +1,79 @@ +/* +* 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 _smuio_15_0_3_OFFSET_HEADER +#define _smuio_15_0_3_OFFSET_HEADER + + +// addressBlock: smuio_smuio_swtimer_SmuSmuioDec +// base address: 0x5aca8 +#define regPWR_VIRT_RESET_REQ 0x012a +#define regPWR_VIRT_RESET_REQ_BASE_IDX 1 +#define regPWR_DISP_TIMER_CONTROL 0x012b +#define regPWR_DISP_TIMER_CONTROL_BASE_IDX 1 +#define regPWR_DISP_TIMER_DEBUG 0x012c +#define regPWR_DISP_TIMER_DEBUG_BASE_IDX 1 +#define regPWR_DISP_TIMER2_CONTROL 0x012d +#define regPWR_DISP_TIMER2_CONTROL_BASE_IDX 1 +#define regPWR_DISP_TIMER2_DEBUG 0x012e +#define regPWR_DISP_TIMER2_DEBUG_BASE_IDX 1 +#define regPWR_DISP_TIMER_GLOBAL_CONTROL 0x012f +#define regPWR_DISP_TIMER_GLOBAL_CONTROL_BASE_IDX 1 +#define regPWR_IH_CONTROL 0x0130 +#define regPWR_IH_CONTROL_BASE_IDX 1 + + +// addressBlock: smuio_smuio_misc_SmuSmuioDec +// base address: 0x5a000 +#define regSMUIO_MCM_CONFIG 0x0023 +#define regSMUIO_MCM_CONFIG_BASE_IDX 0 +#define regIP_DISCOVERY_VERSION 0x0000 +#define regIP_DISCOVERY_VERSION_BASE_IDX 1 +#define regSMUIO_PCC_CONTROL 0x01bd +#define regSMUIO_PCC_CONTROL_BASE_IDX 1 +#define regSCRATCH_REGISTER0 0x01c3 +#define regSCRATCH_REGISTER0_BASE_IDX 1 +#define regSCRATCH_REGISTER1 0x01c4 +#define regSCRATCH_REGISTER1_BASE_IDX 1 +#define regSCRATCH_REGISTER2 0x01c5 +#define regSCRATCH_REGISTER2_BASE_IDX 1 +#define regSCRATCH_REGISTER3 0x01c6 +#define regSCRATCH_REGISTER3_BASE_IDX 1 +#define regSCRATCH_REGISTER4 0x01c7 +#define regSCRATCH_REGISTER4_BASE_IDX 1 +#define regSCRATCH_REGISTER5 0x01c8 +#define regSCRATCH_REGISTER5_BASE_IDX 1 +#define regSCRATCH_REGISTER6 0x01c9 +#define regSCRATCH_REGISTER6_BASE_IDX 1 +#define regSCRATCH_REGISTER7 0x01ca +#define regSCRATCH_REGISTER7_BASE_IDX 1 +#define regIO_SMUIO_PINSTRAP 0x01cb +#define regIO_SMUIO_PINSTRAP_BASE_IDX 1 + + +#define regCCD_GOLDEN_TSC_COUNT_UPPER 0x9C1F411 +#define regCCD_GOLDEN_TSC_COUNT_UPPER_BASE_IDX 2 +#define regCCD_GOLDEN_TSC_COUNT_LOWER 0x9C1F412 +#define regCCD_GOLDEN_TSC_COUNT_LOWER_BASE_IDX 2 + + +#endif
drivers/gpu/drm/amd/include/asic_reg/smuio/smuio_15_0_3_sh_mask.h new file +164 -0
164 lines not on this page · raw message
Signature · 1 line
2.55.0
Alex Deucher
maintainerPATCH 2/2 drm/amdgpu: Add smuio v15_0_3 support
In reply to Alex DeucherFrom: Hawking Zhang <[email protected]>
Add initial implementation for the new generation of smuio
v2: squash in clock counter changes
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/Makefile | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 4 + drivers/gpu/drm/amd/amdgpu/smuio_v15_0_3.c | 84 +++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/smuio_v15_0_3.h | 30 +++++++ 4 files changed, 119 insertions(+) create mode 100644 drivers/gpu/drm/amd/amdgpu/smuio_v15_0_3.c create mode 100644 drivers/gpu/drm/amd/amdgpu/smuio_v15_0_3.h
drivers/gpu/drm/amd/amdgpu/Makefile +1 -0
@@ -264,6 +264,7 @@ amdgpu-y += \ smuio_v13_0_6.o \ smuio_v14_0_2.o \ smuio_v15_0_0.o \ + smuio_v15_0_3.o \ smuio_v15_0_8.o # add reset block
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +4 -0
@@ -115,6 +115,7 @@#include "smuio_v13_0_6.h" #include "smuio_v14_0_2.h" #include "smuio_v15_0_0.h" +#include "smuio_v15_0_3.h" #include "smuio_v15_0_8.h" #include "vcn_v5_0_0.h" #include "vcn_v5_0_1.h"
@@ -3950,6 +3951,9 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (15 ,0 ,5 ): adev->smuio.funcs = &smuio_v15_0_0_funcs;break ; +case IP_VERSION (15 ,0 ,3 ): + adev->smuio.funcs = &smuio_v15_0_3_funcs; +break ;case IP_VERSION (15 ,0 ,8 ): adev->smuio.funcs = &smuio_v15_0_8_funcs;break ;
drivers/gpu/drm/amd/amdgpu/smuio_v15_0_3.c new file +84 -0
84 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/smuio_v15_0_3.h new file +30 -0
@@ -0,0 +1,30 @@ +/* +* Copyright 2025 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 __SMUIO_V15_0_3_H__ +#define __SMUIO_V15_0_3_H__ + +#include "soc15_common.h" + +extern const struct amdgpu_smuio_funcs smuio_v15_0_3_funcs; + +#endif /* __SMUIO_V15_0_3_H__ */
Signature · 1 line
2.55.0