arm64/dma-mapping: Implement DMA_ATTR_PRIVILEGED
authorMitchel Humpherys <mitchelh@codeaurora.org>
Fri, 6 Jan 2017 13:28:12 +0000 (18:58 +0530)
committerWill Deacon <will.deacon@arm.com>
Thu, 19 Jan 2017 15:56:19 +0000 (15:56 +0000)
commit737c85ca1c3af4f97acb61cd53415ec039b31111
tree84935d1f5fbf6eb5501583f739b651c261742363
parentb2fb366425ceb85dca56afa538257ec5a2c4f6d1
arm64/dma-mapping: Implement DMA_ATTR_PRIVILEGED

The newly added DMA_ATTR_PRIVILEGED is useful for creating mappings that
are only accessible to privileged DMA engines.  Implement it in
dma-iommu.c so that the ARM64 DMA IOMMU mapper can make use of it.

Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Tested-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/dma-mapping.c
drivers/iommu/dma-iommu.c
include/linux/dma-iommu.h