]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: combine watermark change and clock change for update clocks.
authorYongqiang Sun <yongqiang.sun@amd.com>
Thu, 5 Mar 2020 18:41:43 +0000 (13:41 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Mar 2020 04:03:04 +0000 (00:03 -0400)
commit73b685ba2c2bb3ffc9f608bcf85925df5822a8b6
treeb0b125d6439dd18b08511b18eaf92ed1ad4d4e9b
parentf3d796c6b0ab47350d02b26c8dbad2ebca319578
drm/amd/display: combine watermark change and clock change for update clocks.

[Why]
underflow happened when playing video on 1366x768 + 4K clone mode due to
incorrect handle watermark change flag and lower down clocks to early.

[How]
Check watermark change flag when decide doing optimized, and check
optimized required flag to do clock update.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Eric Yang <eric.yang2@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/core/dc.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c