drm/amd/display: Fix DP MST timeslot issue when fallback happened
authorCruise Hung <Cruise.Hung@amd.com>
Thu, 8 Sep 2022 14:04:09 +0000 (22:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Sep 2022 19:14:55 +0000 (15:14 -0400)
commitc1143ca2d523dee0f6012638068abd202a50a42b
tree2aebd86073c4547d5498cce64a86394bd27af2a4
parentabffd871d4862f9e77979708d1df45152becf8b4
drm/amd/display: Fix DP MST timeslot issue when fallback happened

[Why]
When USB4 DP link training failed and fell back to lower link rate,
the time slot calculation uses the verified_link_cap.
And the verified_link_cap was not updated to the new one.
It caused the wrong VC payload time-slot was allocated.

[How]
Updated verified_link_cap with the new one from cur_link_settings
after the LT completes successfully.

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Cruise Hung <Cruise.Hung@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/core/dc_link_dp.c