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

Commit 047d3a47 authored by Naseer Ahmed's avatar Naseer Ahmed Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: Adjust fence timeouts



Change the final fence wait timeout to be 7s for a total of 10s
Change the display operation timeout to be 1s more than that
instead of the excessively large timeout.

Change-Id: If9ae04f9e5993d754b6ccbfdd9e80ec46960e73b
Signed-off-by: default avatarNaseer Ahmed <naseer@codeaurora.org>
parent c6297e1e
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -32,10 +32,12 @@

#define MSM_FB_ENABLE_DBGFS
#define WAIT_FENCE_FIRST_TIMEOUT (3 * MSEC_PER_SEC)
#define WAIT_FENCE_FINAL_TIMEOUT (10 * MSEC_PER_SEC)
/* Display op timeout should be greater than total timeout */
#define WAIT_DISP_OP_TIMEOUT ((WAIT_FENCE_FIRST_TIMEOUT + \
		WAIT_FENCE_FINAL_TIMEOUT) * MDP_MAX_FENCE_FD)
#define WAIT_FENCE_FINAL_TIMEOUT (7 * MSEC_PER_SEC)
/* Display op timeout should be greater than the total timeout but not
 * unreasonably large. Set to 1s more than first wait + final wait which
 * are already quite long and proceed without any further waits. */
#define WAIT_DISP_OP_TIMEOUT (WAIT_FENCE_FIRST_TIMEOUT + \
		WAIT_FENCE_FINAL_TIMEOUT + 1)

#ifndef MAX
#define  MAX(x, y) (((x) > (y)) ? (x) : (y))