drm/amd/display: Don't compare dppclk before updating DTO
authorAlvin Lee <alvin.lee2@amd.com>
Tue, 14 Jul 2020 19:06:40 +0000 (15:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Jul 2020 20:23:34 +0000 (16:23 -0400)
commitbe6ccdf861de048833b2000d80db800ab4f8d81b
treedee13cc71cde2c828a59f970cc442bf45c8803f9
parentf92e25e56137cb410c89dd5d69aed47849b3236c
drm/amd/display: Don't compare dppclk before updating DTO

[Why]
In dcn3_update_clocks there are situations where dppclk is not
lowered (i.e. stays the same), but DTO still needs to be increased
before we program pipe frontend (i.e. in prepare_bandwidth). If we
don't program the new DTO value before we program the pipe,
we will underflow as soon as the pipe lock is released until the
next call to dcn3_update_clocks where the DTO is updated.

[How]
Remove dppclk check before programming new DTO value.

Signed-off-by: Alvin Lee <alvin.lee2@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Eryk Brol <eryk.brol@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c