drm/amd/display: limit DPIA link rate to HBR3
authorjsg <jsg@openbsd.org>
Thu, 17 Aug 2023 03:45:49 +0000 (03:45 +0000)
committerjsg <jsg@openbsd.org>
Thu, 17 Aug 2023 03:45:49 +0000 (03:45 +0000)
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

index bba7e06..8ea26f6 100644 (file)
@@ -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;
                }