drivers: dma-coherent: support coherent memory declaration with no kernel mapping
authorVandana Salve <vsalve@nvidia.com>
Thu, 1 Aug 2013 08:34:16 +0000 (13:34 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Tue, 17 Sep 2013 00:40:30 +0000 (17:40 -0700)
commitb69791bbd98eb94019c32f588712d9b71a3f1b02
tree85ee6427997e80bfabca7b07a1f216a83b8a95f4
parent1ee511a9d9fe4cb83bb7db74c58287bd51f76145
drivers: dma-coherent: support coherent memory declaration with no kernel mapping

Add DMA_MEMORY_NOMAP flag to avoid creation of kernel virtual mapping
during the declaration of DMA coherent memory.
This would allow managing carveout memories via dma-coherent API with no
impact on kernel VMALLOC space.

bug 898152

Change-Id: I700fbfc83716516d15a97f1e18ad0b1a8154a0a9
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/267938
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
drivers/base/dma-coherent.c
include/linux/dma-mapping.h