From b45b583f53472a40d53908921bb2e0c03d4547aa Mon Sep 17 00:00:00 2001 From: Jayaprakash Madisetty Date: Thu, 26 Aug 2021 17:10:18 +0530 Subject: [PATCH] disp: msm: sde: use fixed prefill lines in rscc static wakeup calculation In dual display during bootup, panel prefill lines may be used in configuring rscc static wakeup due to ongoing autorefresh in secondary display. Due to this, there can be a case when transfer time for the commit is greater than the static wakeup calculated when panel has large prefill lines(vbp + vpw + vfp) causing janks on primary when secondary display enters idle and primary display is running. Add changes to use default_prefill_lines for configuring static wakeup during bootup when rsc is in clk state. For vid state only, panel prefill lines will be taken into account for rsc static wakeup calculation. Change-Id: I3c0ceec984b24b81e3e4d0341f25cdd28f178925 Signed-off-by: Jayaprakash Madisetty --- msm/sde_rsc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msm/sde_rsc.c b/msm/sde_rsc.c index e06b5f7fe937..75dcb932a77d 100644 --- a/msm/sde_rsc.c +++ b/msm/sde_rsc.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. */ #define pr_fmt(fmt) "[sde_rsc:%s:%d]: " fmt, __func__, __LINE__ @@ -310,7 +310,7 @@ static u32 sde_rsc_timer_calculate(struct sde_rsc_priv *rsc, default_prefill_lines = (rsc->cmd_config.fps * DEFAULT_PANEL_MIN_V_PREFILL) / DEFAULT_PANEL_FPS; - if ((state == SDE_RSC_CMD_STATE) || !rsc->cmd_config.prefill_lines) + if ((state != SDE_RSC_VID_STATE) || !rsc->cmd_config.prefill_lines) rsc->cmd_config.prefill_lines = default_prefill_lines; pr_debug("frame fps:%d jitter_numer:%d jitter_denom:%d vtotal:%d prefill lines:%d\n",