summaryrefslogtreecommitdiffstats
path: root/kernel/dma/Kconfig
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-03-23 18:19:30 +0100
committerChristoph Hellwig <hch@lst.de>2020-07-19 09:29:29 +0200
commitd35834c64820c7ef397f8a244061d4450720540e (patch)
tree5a2df279a26c6175bfc9dbf9859c52468967aa70 /kernel/dma/Kconfig
parent2f9237d4f6df49b74c51cdac555b0a9979d0c237 (diff)
downloadlinux-d35834c64820c7ef397f8a244061d4450720540e.tar.gz
linux-d35834c64820c7ef397f8a244061d4450720540e.tar.bz2
linux-d35834c64820c7ef397f8a244061d4450720540e.zip
dma-mapping: add a dma_ops_bypass flag to struct device
Several IOMMU drivers have a bypass mode where they can use a direct mapping if the devices DMA mask is large enough. Add generic support to the core dma-mapping code to do that to switch those drivers to a common solution. Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'kernel/dma/Kconfig')
-rw-r--r--kernel/dma/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/dma/Kconfig b/kernel/dma/Kconfig
index 5cfb2428593a..f4770fcfa62b 100644
--- a/kernel/dma/Kconfig
+++ b/kernel/dma/Kconfig
@@ -8,6 +8,14 @@ config HAS_DMA
config DMA_OPS
bool
+#
+# IOMMU drivers that can bypass the IOMMU code and optionally use the direct
+# mapping fast path should select this option and set the dma_ops_bypass
+# flag in struct device where applicable
+#
+config DMA_OPS_BYPASS
+ bool
+
config NEED_SG_DMA_LENGTH
bool