OSDN Git Service

drm/amd/display: Read eDP link settings on detection
authorAnthony Koo <Anthony.Koo@amd.com>
Tue, 26 Mar 2019 00:33:35 +0000 (20:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Apr 2019 05:20:19 +0000 (00:20 -0500)
commit32a5b542a6c6c7b175b9a37dd5e155667cbb2e7b
tree0bd10084f46f5faeb5f31a6a9d32f46c67fec5a0
parente54ae524294f0fe66f5fbbde4cdcb4a52e89bdd5
drm/amd/display: Read eDP link settings on detection

[Why]
Unlike external DP panels, internal eDP does not perform
verify link caps because the panel connection is fixed.

So if GOP enabled the eDP at boot, we can retain its
trained link settings to optimize.

[How]
Read the lane count and link rate by reading this
information from DPCD 100h, 101h, 115h

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c