iommu: Allow the dma-iommu api to use bounce buffers
authorTom Murphy <murphyt7@tcd.ie>
Tue, 24 Nov 2020 08:20:53 +0000 (16:20 +0800)
committerWill Deacon <will@kernel.org>
Wed, 25 Nov 2020 12:03:48 +0000 (12:03 +0000)
commit82612d66d51d3bacdd789e31d2e875d2494b7514
tree20b27cea6ed889d1b65b921a1292d64fd1891578
parent230309d08b871e439f8618db3610f2cc9b5f7c72
iommu: Allow the dma-iommu api to use bounce buffers

Allow the dma-iommu api to use bounce buffers for untrusted devices.
This is a copy of the intel bounce buffer code.

Co-developed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Tom Murphy <murphyt7@tcd.ie>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Tested-by: Logan Gunthorpe <logang@deltatee.com>
Link: https://lore.kernel.org/r/20201124082057.2614359-4-baolu.lu@linux.intel.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/dma-iommu.c