linux/drivers/gpu/drm/amd/display/dc/calcs
Yongqiang Sun 45bb8dd696 drm/amd/display: Set disp clk in a safe way to avoid over high dpp clk. (v2)
Increase clock, if current dpp div is 0 and request dpp div is 1, request clk is
higher than maximum dpp clk as per dpm table.
	set dispclk to the value of maximum supported dpp clk
	set div to 1
	set dispclk to request value.
Decrease clock, currrent dpp div is 1 and request dpp div is 0, current clk is
higher than maximum dpp clk as per dpm table.
	set dispclk to the value of maximum supported dpp clk
	set div to 0
	set dispclk to request value.

v2: squash in !DCN build fix

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-03-14 15:16:34 -05:00
..
bw_fixed.c amdgpu/dc: allow inlining constant int to fixed a lot better. 2017-09-29 13:03:35 -04:00
custom_float.c drm/amd/display: Enable regamma 25 segments and use double buffer. 2017-09-26 17:14:18 -04:00
dce_calcs.c drm/amd/display: Change blackout time to 0 on CZ/ST 2018-02-19 14:20:00 -05:00
dcn_calc_auto.c drm/amd/display: fix global sync param retrieval when not pipe splitting 2017-12-20 14:47:11 -05:00
dcn_calc_auto.h drm/amdgpu/display: Add calcs code for DCN 2017-09-26 18:06:47 -04:00
dcn_calc_math.c drm/amd/display: Add disclaimer to BW and DML code provided by HW 2017-12-14 10:55:02 -05:00
dcn_calc_math.h Revert "amdgpu/dc: inline a bunch of float operations." 2017-10-21 16:45:17 -04:00
dcn_calcs.c drm/amd/display: Set disp clk in a safe way to avoid over high dpp clk. (v2) 2018-03-14 15:16:34 -05:00
Makefile amdgpu/dc/calcs: Support clang option for stack alignment 2018-02-19 14:19:51 -05:00