mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 03:43:03 +00:00
msm: mdss: free ion memory after panel is blanked
Frame buffer memory could still be fetched until panel is completely blanked, in order to avoid potential page faults by unmapping early, move unmapping of this memory until after panel is blanked. CRs-Fixed: 763046 Change-Id: Ib7eea73a7549b453cf2fc31a31f5cc3e9e1cce39 Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
This commit is contained in:
parent
ba6ee8cfbe
commit
1f968069a6
|
@ -2277,9 +2277,6 @@ static int mdss_fb_release_all(struct fb_info *info, bool release_all)
|
|||
if (mfd->mdp.release_fnc)
|
||||
mfd->mdp.release_fnc(mfd, true, pid);
|
||||
|
||||
if (mfd->fb_ion_handle)
|
||||
mdss_fb_free_fb_ion_memory(mfd);
|
||||
|
||||
ret = mdss_fb_blank_sub(FB_BLANK_POWERDOWN, info,
|
||||
mfd->op_enable);
|
||||
if (ret) {
|
||||
|
@ -2287,6 +2284,9 @@ static int mdss_fb_release_all(struct fb_info *info, bool release_all)
|
|||
mfd->index, ret, task->comm, current->tgid, pid);
|
||||
return ret;
|
||||
}
|
||||
if (mfd->fb_ion_handle)
|
||||
mdss_fb_free_fb_ion_memory(mfd);
|
||||
|
||||
atomic_set(&mfd->ioctl_ref_cnt, 0);
|
||||
} else if (release_needed) {
|
||||
pr_debug("current process=%s pid=%d known pid=%d mfd->ref=%d\n",
|
||||
|
|
Loading…
Reference in a new issue