drm/amd/display: Adjust dprefclk by down spread percentage.
authorZhongwei <zhongwei.zhang@amd.com>
Wed, 27 Mar 2024 05:49:40 +0000 (13:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2024 02:16:45 +0000 (22:16 -0400)
commit364b1c1de6de36c1b28690265c904c682aecc266
tree694a804c574169f9f197e8f0bc33a6bf133cc926
parent038e2e2e0150f1649d40f7d915561cdf9e4dd5bf
drm/amd/display: Adjust dprefclk by down spread percentage.

[Why]
OLED panels show no display for large vtotal timings.

[How]
Check if ss is enabled and read from lut for spread spectrum percentage.
Adjust dprefclk as required. DP_DTO adjustment is for edp only.

Cc: stable@vger.kernel.org
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Zhongwei <zhongwei.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c