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

Commit ad71dac9 authored by Jayant Shekhar's avatar Jayant Shekhar Committed by Shubhashree Dhar
Browse files

drm/msm/sde: Increase command mode idle timeout in early wake-up



Sometimes updates from framework comes with slight delay after
early wake up. In such case prevent clock switch off to avoid
frame miss or jank in next update. So, increase the command
mode idle timeout sufficiently to prevent such issue.

Change-Id: I4c92f3cfca5402ee9f6ee29beaf7a32506ac92c7
Signed-off-by: default avatarJayant Shekhar <jshekhar@codeaurora.org>
parent 19f6ab69
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -2546,10 +2546,17 @@ static int sde_encoder_resource_control(struct drm_encoder *drm_enc,

			_sde_encoder_resource_control_rsc_update(drm_enc, true);

			/*
			 * In some cases, commit comes with slight delay
			 * (> 80 ms)after early wake up, prevent clock switch
			 * off to avoid jank in next update. So, increase the
			 * command mode idle timeout sufficiently to prevent
			 * such case.
			 */
			kthread_mod_delayed_work(&disp_thread->worker,
					&sde_enc->delayed_off_work,
					msecs_to_jiffies(
						IDLE_POWERCOLLAPSE_DURATION));
					IDLE_POWERCOLLAPSE_IN_EARLY_WAKEUP));

			sde_enc->rc_state = SDE_ENC_RC_STATE_ON;
		}
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
#define SDE_ENCODER_FRAME_EVENT_SIGNAL_RETIRE_FENCE	BIT(4)

#define IDLE_POWERCOLLAPSE_DURATION	(66 - 16/2)
#define IDLE_POWERCOLLAPSE_IN_EARLY_WAKEUP (200 - 16/2)

/**
 * Encoder functions and data types