disp: msm: sde: reset sw state on vm transition

This change resets the plane and crtc dirty properties on
transition to other VM. This ensures when the VM acquires the
hw again all these properties on the new state are reapplied.

Change-Id: Id95676453eb9ae937b1b22f0e244b47449101cb0
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
This commit is contained in:
Abhijit Kulkarni
2020-11-18 14:25:36 -08:00
förälder 7a98aa2134
incheckning fef65e7b8c
3 ändrade filer med 12 tillägg och 2 borttagningar

Visa fil

@@ -3971,7 +3971,7 @@ static void sde_crtc_clear_cached_mixer_cfg(struct drm_crtc *crtc)
SDE_EVT32(DRMID(crtc));
}
static void sde_crtc_reset_sw_state_for_ipc(struct drm_crtc *crtc)
void sde_crtc_reset_sw_state(struct drm_crtc *crtc)
{
struct sde_crtc_state *cstate = to_sde_crtc_state(crtc->state);
struct drm_plane *plane;
@@ -4074,7 +4074,7 @@ static void sde_crtc_handle_power_event(u32 event_type, void *arg)
sde_cp_crtc_pre_ipc(crtc);
break;
case SDE_POWER_EVENT_POST_DISABLE:
sde_crtc_reset_sw_state_for_ipc(crtc);
sde_crtc_reset_sw_state(crtc);
sde_cp_crtc_suspend(crtc);
event.type = DRM_EVENT_SDE_POWER;
event.length = sizeof(power_on);