From: Sung Lee Date: Fri, 21 Feb 2020 19:50:55 +0000 (-0500) Subject: drm/amd/display: Set clock optimization required after update clocks X-Git-Tag: v5.15~4077^2~22^2~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ffa121419257d72ea520bf31e15d12effb50c039;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Tony Cheng Acked-by: Rodrigo Siqueira Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c index 49f5af9e3016..045ba08c85b4 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c @@ -1674,7 +1674,7 @@ void dcn20_optimize_bandwidth( dc->clk_mgr, context, true); - dc->wm_optimized_required = false; + dc->clk_optimized_required = false; } }