]> git.baikalelectronics.ru Git - kernel.git/commit
iommu: Add iova and size as parameters in iotlb_sync_map
authorYong Wu <yong.wu@mediatek.com>
Thu, 7 Jan 2021 12:29:04 +0000 (20:29 +0800)
committerWill Deacon <will@kernel.org>
Wed, 27 Jan 2021 12:32:26 +0000 (12:32 +0000)
commit7842b90b550236a07fe8d67b1a118337696f9c85
tree1740375c71f22f2ccb80fc1713d86e641f5bbe5f
parentdf1a4160cee3ba41556f5074d213a334d7ba4611
iommu: Add iova and size as parameters in iotlb_sync_map

iotlb_sync_map allow IOMMU drivers tlb sync after completing the whole
mapping. This patch adds iova and size as the parameters in it. then the
IOMMU driver could flush tlb with the whole range once after iova mapping
to improve performance.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210107122909.16317-3-yong.wu@mediatek.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/iommu.c
drivers/iommu/tegra-gart.c
include/linux/iommu.h