From 4f2c4ac27e12d4ed15ea441a32b3a0a32b717119 Mon Sep 17 00:00:00 2001 From: Abhijit Kulkarni Date: Wed, 2 Sep 2020 17:24:04 -0700 Subject: [PATCH] disp: msm: sde: disable idle notification This change disables sending idle notification if system cache is already enabled. If system cache is enabled it establishes that driver has already send prior notification and no configuration change was requested. Change-Id: I1aee002ab3c8c3d4193a8e7a4890d8e4f24da804 Signed-off-by: Abhijit Kulkarni --- msm/sde/sde_crtc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/msm/sde/sde_crtc.c b/msm/sde/sde_crtc.c index 3b9e3ee7beed..6aee0487769b 100644 --- a/msm/sde/sde_crtc.c +++ b/msm/sde/sde_crtc.c @@ -3542,7 +3542,8 @@ static void _sde_crtc_schedule_idle_notify(struct drm_crtc *crtc, if (!idle_time || !sde_encoder_check_curr_mode(sde_crtc->mixers[0].encoder, MSM_DISPLAY_VIDEO_MODE) || - (crtc->index >= ARRAY_SIZE(priv->event_thread))) + (crtc->index >= ARRAY_SIZE(priv->event_thread)) || + (sde_crtc->cache_state > CACHE_STATE_NORMAL)) return; /* schedule the idle notify delayed work */