gpu: ion: Add cache maintenance to ion.
authorRebecca Schultz Zavin <rebecca@android.com>
Thu, 14 Jun 2012 22:08:53 +0000 (15:08 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:40:51 +0000 (13:40 -0700)
commit2007551fcd948147411012310cbf98eeed40c9d5
tree88980e4359733fa5158091ca2f243ed9dd1238f8
parentf3851c7cdfe285f5eeefadf03359fd617019baf0
gpu: ion: Add cache maintenance to ion.

This patch adds cache maintenance operations to ion.  As per mailing
list discussions regarding dma_buf, cache operations are done implicitly.
At buffer allocaiton time the user can select whether he'd like mappings
(both kernel and user) to be cached.  When cached mappings are selected,
no mappings will be created for a buffer at mmap time.  Instead pages will
be faulted in one at a time so we can track which pages require flushing
before dma.  When the buffers are mapped for dma (via the dma_buf apis)
any pages which were touched will be synced for device.

Change-Id: Id5d6894e8bb52af038c91dd895143bf3b4203b0b
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
drivers/gpu/ion/ion.c
drivers/gpu/ion/ion_carveout_heap.c
drivers/gpu/ion/ion_priv.h
drivers/gpu/ion/ion_system_heap.c
include/linux/ion.h