Skip to contentSkip to conversation

drm/amd/pm: Enable static metrics table support

PATCH In review Asad Kamal 2 participants 3 messages May 26, 2025 – May 27, 2025

Subsystems (3)
lore
Share & tools
lore

Asad Kamal

author
#0 lore raw

PATCH 1/2 drm/amd/pm: Enable static metrics table support

Enable static metrics support to fetch board voltage and pldm version for other smu_v13_0_6 program

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +4 -2
index 271458b74f2d..2651c8c41ad7 100644
@@ -392,11 +392,13 @@ static void smu_v13_0_6_init_caps(struct smu_context *smu)
 		if ((pgm == 7 && fw_ver >= 0x7550E00) ||
 		    (pgm == 0 && fw_ver >= 0x00557E00))
 			smu_v13_0_6_cap_set(smu, SMU_CAP(HST_LIMIT_METRICS));
-		if (fw_ver >= 0x00557F01) {
+		if ((pgm == 0 && fw_ver >= 0x00557F01) ||
+		    (pgm == 7 && fw_ver >= 0x7551000)) {
 			smu_v13_0_6_cap_set(smu, SMU_CAP(STATIC_METRICS));
 			smu_v13_0_6_cap_set(smu, SMU_CAP(BOARD_VOLTAGE));
 		}
-		if (fw_ver >= 0x00558000)
+		if ((pgm == 0 && fw_ver >= 0x00558000) ||
+		    (pgm == 7 && fw_ver >= 0x7551000))
 			smu_v13_0_6_cap_set(smu, SMU_CAP(PLDM_VERSION));
 	}
 	if (((pgm == 7) && (fw_ver >= 0x7550700)) ||
Signature · 1 line
2.46.0
author
#1 lore raw

PATCH 2/2 drm/amd/pm: Enable static metrics table support

Enable static metrics support to fetch board voltage and pldm version for smu_v13_0_14

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +5 -0
index 2651c8c41ad7..f00ef7f3f355 100644
@@ -312,6 +312,11 @@ static void smu_v13_0_14_init_caps(struct smu_context *smu)
 		smu_v13_0_6_cap_set(smu, SMU_CAP(PER_INST_METRICS));
 	if (fw_ver >= 0x5551200)
 		smu_v13_0_6_cap_set(smu, SMU_CAP(SDMA_RESET));
+	if (fw_ver >= 0x5551600) {
+		smu_v13_0_6_cap_set(smu, SMU_CAP(STATIC_METRICS));
+		smu_v13_0_6_cap_set(smu, SMU_CAP(BOARD_VOLTAGE));
+		smu_v13_0_6_cap_set(smu, SMU_CAP(PLDM_VERSION));
+	}
 }
 
 static void smu_v13_0_12_init_caps(struct smu_context *smu)
Signature · 1 line
2.46.0
Reviewed-by Reviewed-by Lijo Lazar on v1 2/2
#2 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Series is

Regards,
Hawking
-----Original Message-----
From: Kamal, Asad <[email protected]>
Sent: Monday, May 26, 2025 23:13
To: [email protected]; Lazar, Lijo <[email protected]>
Cc: Zhang, Hawking <[email protected]>; Ma, Le <[email protected]>; Zhang, Morris <[email protected]>; Kamal, Asad <[email protected]>; Deucher, Alexander <[email protected]>
Subject: [PATCH 2/2] drm/amd/pm: Enable static metrics table support

Enable static metrics support to fetch board voltage and pldm version for smu_v13_0_14

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +5 -0
index 2651c8c41ad7..f00ef7f3f355 100644
@@ -312,6 +312,11 @@ static void smu_v13_0_14_init_caps(struct smu_context *smu)
                smu_v13_0_6_cap_set(smu, SMU_CAP(PER_INST_METRICS));
        if (fw_ver >= 0x5551200)
                smu_v13_0_6_cap_set(smu, SMU_CAP(SDMA_RESET));
+       if (fw_ver >= 0x5551600) {
+               smu_v13_0_6_cap_set(smu, SMU_CAP(STATIC_METRICS));
+               smu_v13_0_6_cap_set(smu, SMU_CAP(BOARD_VOLTAGE));
+               smu_v13_0_6_cap_set(smu, SMU_CAP(PLDM_VERSION));
+       }
 }
 
 static void smu_v13_0_12_init_caps(struct smu_context *smu)

--
2.46.0