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

Commit 04ca0870 authored by Nirmal Abraham's avatar Nirmal Abraham Committed by Gerrit - the friendly Code Review server
Browse files

fbdev: msm: update fb_release sequence



Calling mdss_fb_pan_display from mdss_fb_release path can
result in commit cnt getting incremented resulting in UI freeze
issues due to difference between commit_cnt and release fence
count. To avoid this scenario, release the mdss overlay when
fb ref cnt is zero or there is a device shutdown.

Change-Id: Ibb6de7c712bda631ad9c9180af243661f3d51764
Signed-off-by: default avatarNirmal Abraham <nabrah@codeaurora.org>
parent 41539720
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -2900,15 +2900,7 @@ static int mdss_fb_release_all(struct fb_info *info, bool release_all)
			mdss_fb_free_fb_ion_memory(mfd);

		atomic_set(&mfd->ioctl_ref_cnt, 0);
	} else {
		if (mfd->mdp.release_fnc)
			ret = mfd->mdp.release_fnc(mfd, file);

		/* display commit is needed to release resources */
		if (ret)
			mdss_fb_pan_display(&mfd->fbi->var, mfd->fbi);
	}

	return ret;
}