Skip to contentSkip to conversation

drm/amdgpu: add missing DCE6 to dce_version_to_string()

PATCH Applied Alexandre Demers 2 participants 2 messages Apr 13, 2025 – Apr 14, 2025

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

PATCH 1/1 drm/amdgpu: add missing DCE6 to dce_version_to_string()

Missing DCE 6.0 6.1 and 6.4 are identified as UNKNOWN. Fix this.

---
 drivers/gpu/drm/amd/display/dc/dc_helper.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/display/dc/dc_helper.c +6 -0
index b402be59b2c8..3d483b5193e1 100644
@@ -689,6 +689,12 @@ void reg_sequence_wait_done(const struct dc_context *ctx)
 char *dce_version_to_string(const int version)
 {
 	switch (version) {
+	case DCE_VERSION_6_0:
+		return "DCE 6.0";
+	case DCE_VERSION_6_1:
+		return "DCE 6.1";
+	case DCE_VERSION_6_4:
+		return "DCE 6.4";
 	case DCE_VERSION_8_0:
 		return "DCE 8.0";
 	case DCE_VERSION_8_1:
Signature · 1 line
2.49.0
Applied
#1 lore raw

Applied. Thanks!

Quoted 28 lines · Alexandre Demers

Missing DCE 6.0 6.1 and 6.4 are identified as UNKNOWN. Fix this.

---
 drivers/gpu/drm/amd/display/dc/dc_helper.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/display/dc/dc_helper.c +6 -1
index b402be59b2c8..3d483b5193e1 100644
@@ -689,6 +689,12 @@ void reg_sequence_wait_done(const struct dc_context *ctx)
 char *dce_version_to_string(const int version)
 {
        switch (version) {
+       case DCE_VERSION_6_0:
+               return "DCE 6.0";
+       case DCE_VERSION_6_1:
+               return "DCE 6.1";
+       case DCE_VERSION_6_4:
+               return "DCE 6.4";
        case DCE_VERSION_8_0:
                return "DCE 8.0";
        case DCE_VERSION_8_1:
--

2.49.0