Loading drivers/gpu/drm/msm/sde/sde_encoder.c +10 −3 Original line number Diff line number Diff line Loading @@ -2307,10 +2307,17 @@ static int sde_encoder_resource_control(struct drm_encoder *drm_enc, _sde_encoder_resource_control_rsc_update(drm_enc, true); _sde_encoder_resource_control_helper(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; } Loading drivers/gpu/drm/msm/sde/sde_encoder.h +1 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
drivers/gpu/drm/msm/sde/sde_encoder.c +10 −3 Original line number Diff line number Diff line Loading @@ -2307,10 +2307,17 @@ static int sde_encoder_resource_control(struct drm_encoder *drm_enc, _sde_encoder_resource_control_rsc_update(drm_enc, true); _sde_encoder_resource_control_helper(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; } Loading
drivers/gpu/drm/msm/sde/sde_encoder.h +1 −0 Original line number Diff line number Diff line Loading @@ -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 Loading