disp: msm: sde: ignore HW recovery disable event

The current SDE driver logic during MDP hang cases is to send a capture
event to user-mode if recovery custom event is registered. Otherwise, it
will enforce a device panic for debugging purpose. This might have a race
condition during the display tear-down sequence as user-mode unregisters
the recovery event when the last frame is in progress. If the last frame
causes any MDP hang, it will result in a device reset. Support only the
event registration to avoid this case, since HW recovery is not expected
to be changed dynamically.

Change-Id: I8a11e1060b239ac6827f1d078e3e396cff4c1325
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
This commit is contained in:
Veera Sundaram Sankaran
2020-12-01 18:00:53 -08:00
부모 a2a3c5e864
커밋 98c9ba6153
3개의 변경된 파일8개의 추가작업 그리고 11개의 파일을 삭제

파일 보기

@@ -5422,8 +5422,7 @@ bool sde_encoder_recovery_events_enabled(struct drm_encoder *encoder)
return sde_enc->recovery_events_enabled;
}
void sde_encoder_recovery_events_handler(struct drm_encoder *encoder,
bool enabled)
void sde_encoder_enable_recovery_event(struct drm_encoder *encoder)
{
struct sde_encoder_virt *sde_enc;
@@ -5433,5 +5432,5 @@ void sde_encoder_recovery_events_handler(struct drm_encoder *encoder,
}
sde_enc = to_sde_encoder_virt(encoder);
sde_enc->recovery_events_enabled = enabled;
sde_enc->recovery_events_enabled = true;
}