From f99f199754d2afbe3650ee200aa975fac025124c Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 17 Aug 2023 03:45:49 +0000 Subject: [PATCH] drm/amd/display: limit DPIA link rate to HBR3 From Peichen Huang 3d3fd58bfca151028859cc23757191fa2f65f679 in linux-6.1.y/6.1.46 0e69ef6ea82e8eece7d2b2b45a0da9670eaaefff in mainline linux --- sys/dev/pci/drm/amd/display/dc/core/dc_link.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/dev/pci/drm/amd/display/dc/core/dc_link.c b/sys/dev/pci/drm/amd/display/dc/core/dc_link.c index bba7e063530..8ea26f6e26e 100644 --- a/sys/dev/pci/drm/amd/display/dc/core/dc_link.c +++ b/sys/dev/pci/drm/amd/display/dc/core/dc_link.c @@ -1141,6 +1141,11 @@ static bool detect_link_and_local_sink(struct dc_link *link, (link->dpcd_caps.dongle_type != DISPLAY_DONGLE_DP_HDMI_CONVERTER)) converter_disable_audio = true; + + /* limited link rate to HBR3 for DPIA until we implement USB4 V2 */ + if (link->ep_type == DISPLAY_ENDPOINT_USB4_DPIA && + link->reported_link_cap.link_rate > LINK_RATE_HIGH3) + link->reported_link_cap.link_rate = LINK_RATE_HIGH3; break; } -- 2.20.1