From: Nicholas Kazlauskas Date: Tue, 7 Apr 2020 16:10:41 +0000 (-0400) Subject: drm/amd/display: Factor in immediate flip support into DLG calculations X-Git-Tag: v5.8-rc1~194^2~15^2~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c400ecce96458709f94dc25ab8e4cd2fad8726d1;p=thirdparty%2Fkernel%2Flinux.git drm/amd/display: Factor in immediate flip support into DLG calculations [Why] We expect to be able to perform immediate flipping without having to recalculate and update all the watermarks. There are certain usecases today (1080p @ 90deg, 2160p @ 90deg) such that we get a urgency value of 0 for frac_urg_bw_flip because we're explicitly passing in a value of "false" for requiring immediate flip support into the DLG calculation. [How] Always pass in true into the calculation. With this we get a correct non-zero value for frac_urg_bw_flip. Signed-off-by: Nicholas Kazlauskas Reviewed-by: Jun Lei Acked-by: Rodrigo Siqueira Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c index 219aaed6e06e1..6472c3a2d2701 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c @@ -3033,7 +3033,7 @@ void dcn20_calculate_dlg_params( pipe_idx, cstate_en, context->bw_ctx.bw.dcn.clk.p_state_change_support, - false, false, false); + false, false, true); context->bw_ctx.dml.funcs.rq_dlg_get_rq_reg(&context->bw_ctx.dml, &context->res_ctx.pipe_ctx[i].rq_regs,