Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8199c6b4 authored by Sachin Bhayare's avatar Sachin Bhayare
Browse files

fbdev: msm: Increment commit count in case of ESD recovery



In case of ESD recovery an early return is performed for commit.
Due to this commit count in not incremented and pending fences
are signaled. This is resulting in UI corruption because of
premature fence signaling after ESD recovery is performed.

Fix issue by incrementing commit count in case of ESD recovery.

Change-Id: I2d0bf1a786640ae5c48e1b42adb40d758203f9f1
Signed-off-by: default avatarSachin Bhayare <sachin.bhayare@codeaurora.org>
parent ca831606
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4508,6 +4508,9 @@ static int mdss_fb_atomic_commit_ioctl(struct fb_info *info,
		 * In case of an ESD attack, since we early return from the
		 * commits, we need to signal the outstanding fences.
		 */
		mutex_lock(&mfd->mdp_sync_pt_data.sync_mutex);
		atomic_inc(&mfd->mdp_sync_pt_data.commit_cnt);
		mutex_unlock(&mfd->mdp_sync_pt_data.sync_mutex);
		mdss_fb_release_fences(mfd);
		if ((mfd->panel.type == MIPI_CMD_PANEL) &&
			mfd->mdp.signal_retire_fence && mdp5_data)