Upstream This Patch

Logush, Oliver Oliver.Logush at amd.com
Thu Feb 10 16:53:26 UTC 2022


[AMD Official Use Only]

>From 488cc792021a60300df3659de204ebef954ba2bb Mon Sep 17 00:00:00 2001
From: Oliver Logush ollogush at amd.com<mailto:ollogush at amd.com>
Date: Wed, 9 Feb 2022 14:25:13 -0500
Subject: [PATCH] drm/amd/display: extend dcn201 support

Signed-off-by: Oliver Logush ollogush at amd.com<mailto:ollogush at amd.com>
Reviewed By: Alexander.Deucher at amd.com<mailto:Alexander.Deucher at amd.com>
           Charlene.Liu at amd.com<mailto:Charlene.Liu at amd.com>
---
drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 +-
drivers/gpu/drm/amd/display/include/dal_asic_id.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
index b36bae4b5bc9..71b393194c55 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
@@ -135,7 +135,7 @@ enum dce_version resource_parse_asic_id(struct hw_asic_id asic_id)

                case FAMILY_NV:
                               dc_version = DCN_VERSION_2_0;
-                              if (asic_id.chip_id == DEVICE_ID_NV_13FE) {
+                             if (asic_id.chip_id == DEVICE_ID_NV_13FE || asic_id.chip_id == DEVICE_ID_NV_143F) {
                                               dc_version = DCN_VERSION_2_01;
                                               break;
                               }
diff --git a/drivers/gpu/drm/amd/display/include/dal_asic_id.h b/drivers/gpu/drm/amd/display/include/dal_asic_id.h
index e4a2dfacab4c..e672be6327cb 100644
--- a/drivers/gpu/drm/amd/display/include/dal_asic_id.h
+++ b/drivers/gpu/drm/amd/display/include/dal_asic_id.h
@@ -212,6 +212,7 @@ enum {
#define ASICREV_IS_GREEN_SARDINE(eChipRev) ((eChipRev >= GREEN_SARDINE_A0) && (eChipRev < 0xFF))
#endif
#define DEVICE_ID_NV_13FE 0x13FE  // CYAN_SKILLFISH
+#define DEVICE_ID_NV_143F 0x143F
#define FAMILY_VGH 144
#define DEVICE_ID_VGH_163F 0x163F
#define VANGOGH_A0 0x01
--
2.25.1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20220210/deb09de9/attachment.htm>


More information about the amd-gfx mailing list