History log of /drivers/gpu/ion/ion_page_pool.c
Revision Date Author Comments
27182f504ce9fa7b10cb2520e8684f7c17bc8c86 09-Oct-2012 Rebecca Schultz Zavin <rebecca@android.com> gpu: ion: Fix several issues with page pool

Split out low and high mem pages so they are correctly reported
when the shrinker is called.
Fix potential deadlock caused by holding the page pool lock while
allocationg and also needing that lock from the shrink function

Change-Id: I6def3a3111f59914ef6b5b59d81a6fde37cb60c5
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
bb8266dc4954c95b11b114b80bcc7ce14a5ab403 08-Jun-2012 Rebecca Schultz Zavin <rebecca@android.com> 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: I686fd7d192060fd32d34ef66471f62b7829006ee
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>