disp: msm: sde: avoid rsvp_nxt allocation for suspend commit

During suspend commit, crtc_commit thread is blocked waiting
for touch response in drm_panel_notifier_call_chain and
rsvp_nxt pointer clear in drm_atomic_state_put is pending
(>100ms wait) which was allocated in atomic_check. When
resume commit is triggered early, RM poll timeouts are seen
due to rsvp_nxt pointer is not cleared and thus causing
power on commit failures. This change avoids RM reserve
during atomic_check of suspend commit as msm_crtc_set_mode
returns early and rsvp_nxt is not used elsewhere in commit path.

Change-Id: I4e7bb41d38f5b88ee75f63007dc4403b6b903265
Signed-off-by: Jayaprakash Madisetty <jmadiset@codeaurora.org>
This commit is contained in:
Jayaprakash Madisetty 2021-11-01 15:01:42 +05:30
parent a245be26e4
commit b71e9dc15f

View File

@ -918,9 +918,10 @@ static int _sde_encoder_atomic_check_reserve(struct drm_encoder *drm_enc,
}
/* Skip RM allocation for Primary during CWB usecase */
if (!crtc_state->mode_changed && !crtc_state->active_changed &&
if ((!crtc_state->mode_changed && !crtc_state->active_changed &&
crtc_state->connectors_changed && (conn_state->crtc ==
conn_state->connector->state->crtc))
conn_state->connector->state->crtc)) ||
(crtc_state->active_changed && !crtc_state->active))
goto skip_reserve;
/* Reserve dynamic resources, indicating atomic_check phase */