From 0ecc150e069ae42e22096fdc6ec4bd33776a9abb Mon Sep 17 00:00:00 2001 From: Dhaval Patel Date: Fri, 29 Oct 2021 17:42:49 -0700 Subject: [PATCH] disp: rsc: update mode-1 threshold config to 1 hz Update mode-1 threshold configuration to 1 hz to avoid selecting mode-2 if panel vsync is irregular. Change-Id: I06b16b8ff35fc145df2af480353a45348548cc3b Signed-off-by: Dhaval Patel --- msm/sde_rsc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/msm/sde_rsc.c b/msm/sde_rsc.c index 2ffb67b2..2935cccf 100644 --- a/msm/sde_rsc.c +++ b/msm/sde_rsc.c @@ -366,9 +366,8 @@ static u32 sde_rsc_timer_calculate(struct sde_rsc_priv *rsc, rsc_time_slot_0_ns = div_u64(rsc_time_slot_0_ns, cxo_period_ns); rsc->timer_config.rsc_time_slot_0_ns = (u32) rsc_time_slot_0_ns; - /* time_slot_1 for mode1 latency */ - rsc_time_slot_1_ns = frame_time_ns; - rsc_time_slot_1_ns = div_u64(rsc_time_slot_1_ns, cxo_period_ns); + /* time_slot_1 for mode1 latency - 1 fps */ + rsc_time_slot_1_ns = div_u64(TICKS_IN_NANO_SECOND, cxo_period_ns); rsc->timer_config.rsc_time_slot_1_ns = (u32) rsc_time_slot_1_ns; /* mode 2 is infinite */