Skip to contentSkip to conversation

drm/amd/pm: Update SMU v13.0.6 PPT caps initialization

PATCH In review Jesse.Zhang 2 participants 2 messages Aug 22, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 drm/amd/pm: Update SMU v13.0.6 PPT caps initialization

Update the conditions for setting the SMU vcn reset caps in the SMU v13.0.6 PPT initialization function. Specifically:

- Add support for VCN reset capability for firmware versions 0x00558200 and above when the program version is 0.
- Add support for VCN reset capability for firmware versions 0x05551800 and above when the program version is 5.

v2: correct the smu mp1 version for program 5 (Lijo)

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +4 -1
index d65c912d2408..13fb5825e24d 100644
@@ -312,6 +312,8 @@ 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 >= x5551800)
+		smu_v13_0_6_cap_set(smu, SMU_CAP(VCN_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));
@@ -437,7 +439,8 @@ static void smu_v13_0_6_init_caps(struct smu_context *smu)
 	    ((pgm == 4) && (fw_ver >= 0x4557000)))
 		smu_v13_0_6_cap_set(smu, SMU_CAP(SDMA_RESET));
 
-	if ((pgm == 4) && (fw_ver >= 0x04557100))
+	if (((pgm == 0) && (fw_ver >= 0x00558200)) ||
+	    ((pgm == 4) && (fw_ver >= 0x04557100)))
 		smu_v13_0_6_cap_set(smu, SMU_CAP(VCN_RESET));
 }
 
Signature · 1 line
2.49.0
Reviewed-by Acked-by Alex Deucher Reviewed-by Yang Wang on v4 1/1
#1 lore raw

[Public]

x5551800 => 0x5551800

With that changed -

Thanks,
Lijo

-----Original Message-----
From: Jesse.Zhang <[email protected]>
Sent: Friday, August 22, 2025 12:54 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Lazar, Lijo <[email protected]>; Liu, Leo <[email protected]>; Jiang, Sonny <[email protected]>; Zhang, Jesse(Jie) <[email protected]>; Deucher, Alexander <[email protected]>; Wang, Yang(Kevin) <[email protected]>
Subject: [v4] drm/amd/pm: Update SMU v13.0.6 PPT caps initialization

Update the conditions for setting the SMU vcn reset caps in the SMU v13.0.6 PPT initialization function. Specifically:

- Add support for VCN reset capability for firmware versions 0x00558200 and above when the program version is 0.
- Add support for VCN reset capability for firmware versions 0x05551800 and above when the program version is 5.

v2: correct the smu mp1 version for program 5 (Lijo)

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +2 -0
index d65c912d2408..13fb5825e24d 100644
@@ -312,6 +312,8 @@ 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 >= x5551800)
+               smu_v13_0_6_cap_set(smu, SMU_CAP(VCN_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)); @@ -437,7 +439,8 @@ static void smu_v13_0_6_init_caps(struct smu_context *smu)
            ((pgm == 4) && (fw_ver >= 0x4557000)))
                smu_v13_0_6_cap_set(smu, SMU_CAP(SDMA_RESET));

- if ((pgm == 4) && (fw_ver >= 0x04557100))
+ if (((pgm == 0) && (fw_ver >= 0x00558200)) ||
+ ((pgm == 4) && (fw_ver >= 0x04557100)))

                smu_v13_0_6_cap_set(smu, SMU_CAP(VCN_RESET));  }

--
2.49.0