From: Colin Cross Date: Sat, 14 Dec 2013 03:26:32 +0000 (-0800) Subject: ion: fix bugs in cma heap X-Git-Tag: v3.14-rc1~150^2~365 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=661f82f6c219dc515ee5123213d8f57481694fe4;p=pandora-kernel.git ion: fix bugs in cma heap Implement ion_cma_unmap_kernel, ion will call it unconditionally. Use correct gfp flags when calling dma_alloc_coherent so it doesn't try to use atomic DMA memory. Check for invalid alignment when allocating. Reject cached allocations - the cpu address returned by dma_alloc_coherent is always going to be an uncached mapping, so map_kernel will not see data written by a cached userspace mapping. Signed-off-by: Colin Cross Signed-off-by: John Stultz Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed