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

Commit c49f2c01 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: mdss: Adjust fence timeouts"

parents 6a8f9499 047d3a47
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))