]> git.baikalelectronics.ru Git - kernel.git/commit
iommu: Add iommu_dma_free_cpu_cached_iovas()
authorTom Murphy <murphyt7@tcd.ie>
Tue, 24 Nov 2020 08:20:52 +0000 (16:20 +0800)
committerWill Deacon <will@kernel.org>
Wed, 25 Nov 2020 12:03:48 +0000 (12:03 +0000)
commita07fac7f1c8547cfeed10e5c59a5497925568e5d
treef3306c2917e7854c44bc7b5c34aad84a487b3448
parente0ab34887b5282304045e85e426d144a286041e9
iommu: Add iommu_dma_free_cpu_cached_iovas()

Add a iommu_dma_free_cpu_cached_iovas function to allow drivers which
use the dma-iommu ops to free cached cpu iovas.

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-3-baolu.lu@linux.intel.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/dma-iommu.c
include/linux/dma-iommu.h