gpu: ion: add CMA heap
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Fri, 22 Mar 2013 17:08:30 +0000 (18:08 +0100)
committerColin Cross <ccross@android.com>
Thu, 19 Sep 2013 18:50:05 +0000 (13:50 -0500)
commitae2b22e9b7a207d9392df5b5ec93b8c042d4b3ce
tree857e3ce98094abcff9d4f076e0a7e9d61d6937c2
parent0a87e75ab5ab0d8a14a3f293d4970f9b3e50bf6e
gpu: ion: add CMA heap

New heap type ION_HEAP_TYPE_DMA where allocation is done with dma_alloc_coherent API.
device coherent_dma_mask must be set to DMA_BIT_MASK(32).
ion_platform_heap private field is used to retrieve the device linked to CMA,
if NULL the default CMA area is used.
ion_cma_get_sgtable is a copy of dma_common_get_sgtable function which should
be in kernel 3.5

Change-Id: If4b1a3f9c8a6bd72053226208832f4971e44372f
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
drivers/gpu/ion/Makefile
drivers/gpu/ion/ion_cma_heap.c [new file with mode: 0644]
drivers/gpu/ion/ion_heap.c
drivers/gpu/ion/ion_priv.h
include/linux/ion.h