From 1c254be41132c6bd41524659e06f9b1898234c98 Mon Sep 17 00:00:00 2001 From: Asad Kamal Date: Sun, 9 Nov 2025 14:12:43 +0800 Subject: [PATCH] drm/amd/pm: Enable system power caps for smu_v13_0_12 Enable system power caps to fetch system power and threshold for smu_v13_0_12 Signed-off-by: Asad Kamal Reviewed-by: Lijo Lazar Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c index 2fefd258bc0e..a3ceecbe5d68 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c @@ -356,8 +356,11 @@ static void smu_v13_0_12_init_caps(struct smu_context *smu) if (fw_ver > 0x04560900) smu_v13_0_6_cap_set(smu, SMU_CAP(VCN_RESET)); - if (fw_ver >= 0x04560D00) + if (fw_ver >= 0x04560D00) { smu_v13_0_6_cap_set(smu, SMU_CAP(FAST_PPT)); + if (smu->adev->gmc.xgmi.physical_node_id == 0) + smu_v13_0_6_cap_set(smu, SMU_CAP(SYSTEM_POWER_METRICS)); + } if (fw_ver >= 0x04560700) { if (fw_ver >= 0x04560900) {