]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Use preferred DP link rate if specified
authorTimur Kristóf <timur.kristof@gmail.com>
Mon, 26 Jan 2026 21:08:32 +0000 (22:08 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Feb 2026 19:28:32 +0000 (14:28 -0500)
commit88b2cbd2bc76d7c95003a3f027d9c2ffc14eb9c4
treea9c70ba61af0b1ee40f2fcf744e1b7694ac5a706
parent05a606fc39840257b66bbe3bafef733218657304
drm/amd/display: Use preferred DP link rate if specified

The DisplayPort code already has the concept of preferred link
settings, but it only allows setting a preferred lane count and
link width at the same time. It does not consider the possiblity
that some devices may not work on lower link rates but may
support various lane counts.

Allow specifying a preferred link rate which will be used as
the initial link rate when deciding the DP link settings.

This is necessary to support NUTMEG which only works with HBR
but not with RBR.

For reference, see the legacy non-DC amdgpu display code:
amdgpu_atombios_dp_get_dp_link_config()

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c