drm/amd/display: Remove the check to see if pp_display_cfg is changed
authorFatemeh Darbehani <fatemeh.darbehani@amd.com>
Fri, 19 Oct 2018 14:12:56 +0000 (10:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Nov 2018 19:21:44 +0000 (14:21 -0500)
commitff83a9a0d15d3be46b3288346a1180777f1a4e41
tree39eabfe257d13a833b91b8bb667d2200864daf1b
parent5e2b2fbc4d99bee493f171ca73e80c6006b35f80
drm/amd/display: Remove the check to see if pp_display_cfg is changed

[Why]
When going to full-screen mode commit_planes_for_stream tries to decrease
dcf_deep_sleep value, but safe_to_lower is false, so we don't send the new value
to SMU but dc context gets updated.
Later when dc_post_update_surfaces_to_stream tries to lower dcf_ds when
safe_to_lower is true, this check prevents the message from being sent.

[How]
Remove the check that compares new value with what is stored in dc_context.
This check is not necessary as dcn1_update_clocks already checks if the value
is different from the current dcf_dp value.

Signed-off-by: Fatemeh Darbehani <fatemeh.darbehani@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_clk_mgr.c