mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
msm: kgsl: fix accounting of memory mapped to userspace
The mapsize of kgsl_memdesc and gpumem_mapped of process are incremented only in vmfault handler. But for cache modes write through and write back, pages are inserted in kgsl_mmap. So account for those mappings also in gpumem_mapped. Change-Id: I98e29b28fa6fd2915b03bdcb9c655015a926d0eb Signed-off-by: Puranam V G Tejaswi <[email protected]>
This commit is contained in:
parent
eb33248e0e
commit
30a223f051
1 changed files with 2 additions and 0 deletions
|
|
@ -4659,6 +4659,8 @@ static int kgsl_mmap(struct file *file, struct vm_area_struct *vma)
|
|||
vm_insert_page(vma, addr, page);
|
||||
addr += PAGE_SIZE;
|
||||
}
|
||||
m->mapsize = m->size;
|
||||
entry->priv->gpumem_mapped += m->mapsize;
|
||||
}
|
||||
|
||||
vma->vm_file = file;
|
||||
|
|
|
|||
Loading…
Reference in a new issue