Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 532274ed authored by Dhaval Patel's avatar Dhaval Patel Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm: add 2700 ns delta for sde rsc mode threshold



Current configuration updates mode threshold and backoff
time to same value and it can cause rsc qtimer value
setting to less than "current time". Avoid this race
condition for corner cases by adding 2700 ns time delta
in mode threshold programming.

Change-Id: I034b3b1d22ab5fdfda2cee4c251165da5e0aa0f6
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 02a29480
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -39,8 +39,11 @@
/* this time is ~1ms - only wake tcs in any mode */
#define RSC_BACKOFF_TIME_NS		 (SINGLE_TCS_EXECUTION_TIME + 100)

/* this time is ~1ms - only wake TCS in mode-0 */
#define RSC_MODE_THRESHOLD_TIME_IN_NS	(SINGLE_TCS_EXECUTION_TIME + 100)
/**
 * this time is ~1ms - only wake TCS in mode-0.
 * This time must be greater than backoff time.
 */
#define RSC_MODE_THRESHOLD_TIME_IN_NS	(RSC_BACKOFF_TIME_NS + 2700)

/* this time is ~2ms - sleep+ wake TCS in mode-1 */
#define RSC_TIME_SLOT_0_NS		((SINGLE_TCS_EXECUTION_TIME * 2) + 100)