OSDN Git Service

arm: dma: Allow CMA pages to not have a kernel mapping.
authorPatrick Daly <pdaly@codeaurora.org>
Wed, 17 Feb 2016 23:58:22 +0000 (15:58 -0800)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:14:10 +0000 (11:14 -0700)
commitd224f0017fa0f767c9e6ff5270cc4772eb6d7e0c
tree164b7b8a68ab61496fb9ed35446953859c376953
parentb0dc751515fcc7b9267b7e688a2d931f37923609
arm: dma: Allow CMA pages to not have a kernel mapping.

Currently, there are use cases where not having any kernel
mapping is required; if the CMA memory needs to be used as
a pool which can have both cached and uncached mappings we
need to remove the mapping to avoid the multiple mapping
problem. Extend the dma APIs to use the DMA_ATTR_NO_KERNEL_MAPPING
with CMA. This doesn't end up saving any virtual address space
but the mapping will still not be present.

Change-Id: I64d21250abbe615c43e2b5b1272ee2b6d106705a
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
arch/arm/mm/dma-mapping.c