drm/amd/display: add explicit comparator as default optimization check
authorJun Lei <Jun.Lei@amd.com>
Mon, 9 Sep 2019 15:05:33 +0000 (11:05 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Oct 2019 00:31:35 +0000 (19:31 -0500)
commitdeb79818e1b420ee593443230eafb932094f0674
tree8d29afed4457ef37a40fd70a36056c4023506712
parent3c2381b92cba739b19be9beecdcb49d4730a42f2
drm/amd/display: add explicit comparator as default optimization check

[why]
memcmp is vulnerable to regression due to dc_clocks structures not being
organized properly (not "current" clock related structures being at the beginning
of the structure) and causes unnecessary setting of the optimize bit

[how]
add a dcn sepcific comparator, implement for dcn2

Signed-off-by: Jun Lei <Jun.Lei@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h