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

Skip to content
Commit 06501085 authored by Rebecca Schultz Zavin's avatar Rebecca Schultz Zavin Committed by Stephen Boyd
Browse files

gpu: ion: Add ion_page_pool.



This patch adds a new utility heaps can use to manage
memory.  In the past we have found it can be very
expensive to manage the caches when allocating memory,
but it is imposible to know whether a previous user of a
given memory allocation had a cached mapping. This patch
adds the ability to store a pool of pages that were
previously used uncached so that cache maintenance
only need be done when growing this pool.  The pool also
contains a shrinker so memory from the pool can be
recovered in low memory conditions.

Change-Id: I9127078cacb07ac83129b108a3eb50fd8d99af7d
Signed-off-by: default avatarRebecca Schultz Zavin <rebecca@android.com>
Git-commit: bb8266dc4954c95b11b114b80bcc7ce14a5ab403
Git-repo: https://android.googlesource.com/kernel/common


[lauraa@codeaurora.org: Context fixup in the Makefile due
to the addition of other heaps. Context fixup in ion_priv.h
with some msm additions. Changed flush API for newer kernel]
Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
parent dbd1a755
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment