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>
Thu, 6 Aug 2020 20:38:16 +0000 (16:38 -0400)
commitbc0cd80783ff7c2201b44d384bab4629c9cb7db9
tree2851e6d58286333cb72df4ecdd7f67f7c72c9795
parentc6851841fc877d9e4361eeaa1e3851778fa440c4
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