]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: DPP DTO isn't update properly.
authorYongqiang Sun <yongqiang.sun@amd.com>
Thu, 5 Mar 2020 18:47:26 +0000 (13:47 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Mar 2020 04:03:04 +0000 (00:03 -0400)
commitdc8c884994b6a62594fef96b542fd494b9f0bbc2
tree976a8b31ee523eec6dfc699c026f655b1e9f0166
parentdc7f9ed403fed34e3f0a7f862c0407a48b4d54e0
drm/amd/display: DPP DTO isn't update properly.

[Why]
before update dpp DTO, we check dppclks in context to determine it is
changed or not, but dppclks in context will be updated anyways after
flip is done, so compare dppclks in context will always get an equal
result.

[How]
Add pipe dpp clks in dccg and compare values between dccg and context.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@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/dcn20/dcn20_dccg.c
drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h