summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/inc/dce_calcs.h
diff options
context:
space:
mode:
authorYongqiang Sun <yongqiang.sun@amd.com>2018-02-28 17:14:50 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-03-14 15:16:34 -0500
commit45bb8dd696eaff9c96afd2b210f0d8cf5025dd65 (patch)
treeda8602a53412e46bf5f0555f038503dac4269b47 /drivers/gpu/drm/amd/display/dc/inc/dce_calcs.h
parent5231f5d1124eef853573cb3d2e3dc3c4ddc43e22 (diff)
downloadlinux-45bb8dd696eaff9c96afd2b210f0d8cf5025dd65.tar.gz
linux-45bb8dd696eaff9c96afd2b210f0d8cf5025dd65.tar.bz2
linux-45bb8dd696eaff9c96afd2b210f0d8cf5025dd65.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/dce_calcs.h')
0 files changed, 0 insertions, 0 deletions