]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf07e5b9108989473d180985616e837a955aa879d
tree8d29afed4457ef37a40fd70a36056c4023506712
parent691d4a834e24e5a3dd4db9ab94d926fcdb9599f1
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