rk: ion: Add support cma heap placed in highmem zone
authorCMY <cmy@rock-chips.com>
Thu, 26 Jun 2014 03:21:41 +0000 (11:21 +0800)
committerCMY <cmy@rock-chips.com>
Thu, 26 Jun 2014 06:42:20 +0000 (14:42 +0800)
commitf5c4d1ac8ecda20dac30b9ccb75942582a5b638c
tree8822de04a2c7cadf5b6b29f543cc7881d6a76ece
parent862c97fb0260087cd166321a13a83105834eef35
rk: ion: Add support cma heap placed in highmem zone

Add CONFIG_ION_CMA_HIGHMEM to support cma that placed in highmem zone.

Use dma_alloc_attrs() with DMA_ATTR_NO_KERNEL_MAPPING to alloc memory from
cma heap that placed in highmem zone, and use dma_free_attrs() with
DMA_ATTR_NO_KERNEL_MAPPING to free the memory.

Use ion_heap_map_kernel/ion_heap_unmap_kernel for map/unmap to the kernel
when support cma in highmem.
drivers/staging/android/ion/Kconfig
drivers/staging/android/ion/ion_cma_heap.c