mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
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 <jmadiset@codeaurora.org>
This commit is contained in:
parent
8c8660fcda
commit
b45b583f53
1 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue