bianbu-linux-6.6/drivers/gpu/drm/amd/display/dc
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
..
basics drm/amd/display: Add function to create 4d19 fixed point 2019-03-19 15:04:02 -05:00
bios drm/amd/display/dc/bios_parser2: Mark expected switch fall-throughs 2019-02-18 18:01:00 -05:00
calcs drm/amd/display: Fix multi-thread writing to 1 state 2019-04-03 11:57:07 -05:00
core drm/amd/display: disable link before changing link settings 2019-04-10 13:53:28 -05:00
dce drm/amd/display: Fix multi-thread writing to 1 state 2019-04-03 11:57:07 -05:00
dce80 drm/amd/display: Fix multi-thread writing to 1 state 2019-04-03 11:57:07 -05:00
dce100 drm/amd/display: Fix multi-thread writing to 1 state 2019-04-03 11:57:07 -05:00
dce110 drm/amd/display: fix clk_mgr naming 2019-04-10 13:53:27 -05:00
dce112 drm/amd/display: Fix multi-thread writing to 1 state 2019-04-03 11:57:07 -05:00
dce120 drm/amd/display: Add plane capabilities to dc_caps 2019-03-19 15:04:03 -05:00
dcn10 drm/amd/display: Call hwss.set_cursor_sdr_white_level, if available 2019-04-10 13:53:28 -05:00
dml drm/amd/display: implement bounding box update based on uclk breakdown 2019-03-19 15:36:49 -05:00
gpio drm/amd/display: add gpio lock/unlock 2019-02-05 21:16:23 -05:00
inc drm/amd/display: return correct dc_status for dcn10_validate_global 2019-04-10 13:53:28 -05:00
irq drm/amd/display: In VRR mode, do DRM core vblank handling at end of vblank. (v2) 2019-04-03 10:00:33 -05:00
virtual drm/amd/display: Pass SDP spliting in parameters 2019-03-27 22:42:30 -05:00
dc.h drm/amd/display: 3.2.25 2019-04-10 13:53:28 -05:00
dc_bios_types.h drm/amd/display: Connect dig_fe to otg directly instead of calling bios 2019-01-25 16:15:37 -05:00
dc_ddc_types.h drm/amd/display: add i2c over aux failure handling 2019-03-19 15:36:49 -05:00
dc_dp_types.h drm/amd/display: cache additional dpcd caps for HDR capability check 2019-03-20 23:39:48 -05:00
dc_helper.c drm/amd/display: Move dm_read_reg_func to dc_helper. 2019-03-20 23:39:48 -05:00
dc_hw_types.h drm/amd/display: Introduce DC VM interface 2019-01-25 16:15:36 -05:00
dc_link.h drm/amd/display: prefer preferred link cap over verified link settings 2019-04-10 13:53:28 -05:00
dc_stream.h drm/amd/display: Expose generic SDP message access interface 2019-03-20 23:39:49 -05:00
dc_types.h drm/amd/display: fix dp_hdmi_max_pixel_clk units 2019-04-10 13:53:27 -05:00
dm_event_log.h drm/amd/display: Add customizable tracing event 2018-11-30 12:02:49 -05:00
dm_helpers.h drm/amd/display: Poll pending DOWN_REP before enabling the link 2019-03-19 15:04:02 -05:00
dm_pp_smu.h drm/amd/display: Clean up old pplib interface functions 2019-03-27 22:41:49 -05:00
dm_services.h drm/amd/display: Move dm_read_reg_func to dc_helper. 2019-03-20 23:39:48 -05:00
dm_services_types.h drm/amd/display: PPLIB Hookup 2019-03-05 15:09:32 -05:00
irq_types.h drm/amd/display: Add Vline1 interrupt source to InterruptManager 2019-01-28 11:44:10 -05:00
Makefile drm/amd/display: Introduce DC VM interface 2019-01-25 16:15:36 -05:00
os_types.h amd-gpu: Don't undefine READ and WRITE 2018-10-24 00:36:12 +01:00