drm/amd/display: Set clock optimization required after update clocks

[WHY]
We see an issue that caused clk_optimized_required to be set true in
certain cases, causing passive flips to fail. This is because of a typo
where wm_optimized_required was set twice.

[HOW]
Set clk_optimized_required to false after updating clocks.

Signed-off-by: Sung Lee <sung.lee@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Sung Lee
2020-02-21 14:50:55 -05:00
committed by Alex Deucher
parent 8f174fdbe9
commit ffa1214192

View File

@@ -1674,7 +1674,7 @@ void dcn20_optimize_bandwidth(
dc->clk_mgr,
context,
true);
dc->wm_optimized_required = false;
dc->clk_optimized_required = false;
}
}