summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/link
diff options
context:
space:
mode:
authorGeorge Shen <george.shen@amd.com>2023-04-13 19:03:59 -0400
committerAlex Deucher <alexander.deucher@amd.com>2023-06-09 09:28:20 -0400
commit124155c0bd4a4ed822c1ba246bdf5123b42c3ad9 (patch)
tree62cf3c5984660c5241ff0bc921f29b7ed3fd068a /drivers/gpu/drm/amd/display/dc/link
parent029c85adccb2e23352f622394288ecd133449332 (diff)
downloadlinux-stable-124155c0bd4a4ed822c1ba246bdf5123b42c3ad9.tar.gz
linux-stable-124155c0bd4a4ed822c1ba246bdf5123b42c3ad9.tar.bz2
linux-stable-124155c0bd4a4ed822c1ba246bdf5123b42c3ad9.zip
drm/amd/display: Add w/a to disable DP dual mode on certain ports
[Why] Certain ports on DCN3.2 configs do not properly populate the BIOS info table flag to indicate DP dual mode is unsupported. [How] Add a workaround to disable DP dual mode on the ports with the missing BIOS info table flag. Reviewed-by: Michael Strauss <Michael.Strauss@amd.com> Acked-by: Alan Liu <HaoPing.Liu@amd.com> Signed-off-by: George Shen <george.shen@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/link')
-rw-r--r--drivers/gpu/drm/amd/display/dc/link/link_detection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/link/link_detection.c b/drivers/gpu/drm/amd/display/dc/link/link_detection.c
index a131e30fd7d6..17904de4f155 100644
--- a/drivers/gpu/drm/amd/display/dc/link/link_detection.c
+++ b/drivers/gpu/drm/amd/display/dc/link/link_detection.c
@@ -593,6 +593,10 @@ static bool detect_dp(struct dc_link *link,
/* DP SST branch */
link->type = dc_connection_sst_branch;
} else {
+ if (link->dc->debug.disable_dp_plus_plus_wa &&
+ link->link_enc->features.flags.bits.IS_UHBR20_CAPABLE)
+ return false;
+
/* DP passive dongles */
sink_caps->signal = dp_passive_dongle_detection(link->ddc,
sink_caps,