]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Ignore UHBR13.5 cable ID cap for passive cable max link rate
authorGeorge Shen <george.shen@amd.com>
Thu, 23 May 2024 20:01:21 +0000 (16:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:17:15 +0000 (16:17 -0400)
[Why]
Passive DP40 cables were updated in the latest DP spec to support
UHBR13.5 link rate. Current max link rate logic checks against the
cable ID DPCD even for passive cables.

[How]
Ignore UHBR13.5 cable ID DPCD cap in get_max_link_rate logic.

Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: George Shen <george.shen@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c

index 1ff9876e3ca37d3459dbb6e6628949d08861dcec..41bdadc585b38d424cd6564c86e345699ac7af82 100644 (file)
@@ -2124,7 +2124,8 @@ struct dc_link_settings dp_get_max_link_cap(struct dc_link *link)
                if (cable_max_link_rate < max_link_cap.link_rate)
                        max_link_cap.link_rate = cable_max_link_rate;
 
-               if (!link->dpcd_caps.cable_id.bits.UHBR13_5_CAPABILITY)
+               if (!link->dpcd_caps.cable_id.bits.UHBR13_5_CAPABILITY &&
+                               link->dpcd_caps.cable_id.bits.CABLE_TYPE >= 2)
                        is_uhbr13_5_supported = false;
        }