linux_dsm_epyc7002/drivers/gpu/drm/amd/display
Leo Li 508f5fcb54 drm/amd/display: Compensate for XGMI SS downspread on dprefclk
[Why]
When XGMI is enabled, we need to adjust the dprefclk according to the
WAFL link's spread spectrum info. This is for VG20 (DCE121) only.

[How]
dce_clk_mgr already stores SS info, currently being used by audio clock.
Therefore, patch the clk_mgr's SS info with the xGMI SS info, if xGMI
is enabled. For display clock, adjust it during dce12_update_clocks()
before calling set_clock().

Since we rely on a mmhub register to reliably determine if xGMI is
enabled, the patching step needs to happen after resource_construct()
has initialized the hardware sequencer.

Signed-off-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-01-14 15:04:41 -05:00
..
amdgpu_dm drm/amd/display: Fix driver load crash in amdgpu_dm 2019-01-14 15:04:40 -05:00
dc drm/amd/display: Compensate for XGMI SS downspread on dprefclk 2019-01-14 15:04:41 -05:00
include drm/amd/display: Use 100 Hz precision for pipe pixel clocks 2019-01-14 15:04:39 -05:00
modules drm/amd/display: Use 100 Hz precision for pipe pixel clocks 2019-01-14 15:04:39 -05:00
Kconfig drm/amd/display: Add DC config flag for Raven2 (v2) 2018-09-14 09:36:56 -05:00
Makefile drm/amd/display: Load DMCU IRAM 2018-11-26 15:47:53 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00