Merge "disp: msm: sde: increase EPT timeout threshold"

This commit is contained in:
qctecmdr
2024-04-11 02:40:58 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -82,6 +82,8 @@
/* Worst case time required for trigger the frame after the EPT wait */
#define EPT_BACKOFF_THRESHOLD (3 * NSEC_PER_MSEC)
#define MAX_EPT_TIMEOUT_US (10 * USEC_PER_SEC)
#define IS_ROI_UPDATED(a, b) (a.x1 != b.x1 || a.x2 != b.x2 || \
a.y1 != b.y1 || a.y2 != b.y2)
@@ -5261,8 +5263,8 @@ void _sde_encoder_delay_kickoff_processing(struct sde_encoder_virt *sde_enc)
}
timeout_us = DIV_ROUND_UP((ept_ts - current_ts), 1000);
/* validate timeout is not beyond the min fps */
if (timeout_us > DIV_ROUND_UP(USEC_PER_SEC, min_fps)) {
/* validate timeout is not beyond 10 seconds */
if (timeout_us > MAX_EPT_TIMEOUT_US) {
pr_err_ratelimited(
"enc:%d, invalid timeout_us:%llu; ept:%llu, ept_ts:%llu, cur_ts:%llu min_fps:%d, fps:%d, qsync_mode:%d, avr_step_fps:%d\n",
DRMID(&sde_enc->base), timeout_us, ept, ept_ts, current_ts,