drm/i915: Use the correct max source link rate for MST
authorNikola Cornij <nikola.cornij@amd.com>
Fri, 30 Apr 2021 21:45:31 +0000 (17:45 -0400)
committerLyude Paul <lyude@redhat.com>
Fri, 30 Apr 2021 22:47:45 +0000 (18:47 -0400)
commit4128359666793d9eb733a4a113ada3afa5d0da88
tree05da2d3d82f3a8baeb8befbad582697c1b89350c
parent70e12560126685e982ee680e0e40049edbd66cf0
drm/i915: Use the correct max source link rate for MST

[why]
Previously used value was not safe to provide the correct value, i.e. it
could be 0 if not not configured, leading to no MST on this platform.

[how]
Do not use the value from BIOS, but from the structure populated at
encoder initialization time.

Fixes: 98025a62cb00 ("drm/dp_mst: Use Extended Base Receiver Capability DPCD space")
Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
[fixed open coded drm_dp_link_rate_to_bw_code()]
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210430214531.24565-2-nikola.cornij@amd.com
drivers/gpu/drm/i915/display/intel_dp_mst.c