Skip to contentSkip to conversation

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

PATCH Superseded Jesse.Zhang 2 participants 2 messages Aug 19, 2025

Subsystems (3)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

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

Update the conditions for setting the SMU vcn reset caps in the SMU v13.0.6 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.

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +3 -1
index 3484fce0d41a..c502e19bcc97 100644
@@ -440,7 +440,9 @@ 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)) ||
+	    ((pgm == 5) && (fw_ver >= 0x05551800)))
 		smu_v13_0_6_cap_set(smu, SMU_CAP(VCN_RESET));
 }
 
Signature · 1 line
2.49.0
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Jesse.Zhang

Update the conditions for setting the SMU vcn reset caps in the SMU v13.0.6 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.

Quoted 22 lines
---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +3 -2
index 3484fce0d41a..c502e19bcc97 100644
@@ -440,7 +440,9 @@ 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)) ||
+           ((pgm == 5) && (fw_ver >= 0x05551800)))
                smu_v13_0_6_cap_set(smu, SMU_CAP(VCN_RESET));
 }
 
--

2.49.0