linux-hardened/drivers/gpu/drm/amd
Anthony Koo 15ae3b28f8 drm/amd/display: disable link before changing link settings
[Why]
If link is already enabled at a different rate (for example 5.4 Gbps)
then calling VBIOS command table to switch to a new rate
(for example 2.7 Gbps) will not take effect.
This can lead to link training failure to occur.

[How]
If the requested link rate is different than the current link rate,
the link must be disabled in order to re-enable at the new
link rate.

In today's logic it is currently only impacting eDP since DP
connection types will always disable the link during display
detection, when initial link verification occurs.

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Acked-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-04-10 13:53:28 -05:00
..
acp drm/amdgpu: Remove wrapper layer of cgs irq handling 2018-03-21 14:36:58 -05:00
amdgpu drm/amd/display: Remove semicolon from to_dm_plane_state definition 2019-04-10 13:53:27 -05:00
amdkfd Revert "drm/amdkfd: avoid HMM change cause circular lock" 2019-03-28 10:15:49 -05:00
display drm/amd/display: disable link before changing link settings 2019-04-10 13:53:28 -05:00
include drm/amdgpu: remove chash 2019-03-19 15:36:58 -05:00
powerplay drm/amd/powerplay: simplify the code of [get|set]_activity_monitor_coeff 2019-04-10 13:49:02 -05:00