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:Rebecca 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:
Laura Abbott <lauraa@codeaurora.org>
Loading
Please register or sign in to comment