disp: msm: sde: add kickoff_in_progress flag in sde crtc
In dual display usecases, during pm suspend/resume, commit is scheduled only on primary crtc thread. If idle timeout value is very short such as in LP2 mode, it might result in race condition due to idle pc off work getting scheduled on its crtc thread. This change adds kickoff in progress flag to handle such cases as crtc frame pending count is only updated after rc kickoff. Change-Id: Iebb331d914b23cc5eeadfeb2a488891e88b3202a Signed-off-by: Yashwanth <yvulapu@codeaurora.org>
This commit is contained in:

committed by
Nilaan Gunabalachandran

parent
4f8792dfc6
commit
75f3403326
@@ -2091,7 +2091,8 @@ static int _sde_encoder_rc_idle(struct drm_encoder *drm_enc,
|
||||
sw_event, sde_enc->rc_state);
|
||||
SDE_EVT32(DRMID(drm_enc), sw_event, sde_enc->rc_state, SDE_EVTLOG_ERROR);
|
||||
goto end;
|
||||
} else if (sde_crtc_frame_pending(sde_enc->crtc)) {
|
||||
} else if (sde_crtc_frame_pending(sde_enc->crtc) ||
|
||||
sde_crtc->kickoff_in_progress) {
|
||||
SDE_DEBUG_ENC(sde_enc, "skip idle entry");
|
||||
SDE_EVT32(DRMID(drm_enc), sw_event, sde_enc->rc_state,
|
||||
sde_crtc_frame_pending(sde_enc->crtc), SDE_EVTLOG_ERROR);
|
||||
|
Reference in New Issue
Block a user