]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/mediatek: Add iotlb_sync_map to sync whole the iova range
authorYong Wu <yong.wu@mediatek.com>
Thu, 7 Jan 2021 12:29:05 +0000 (20:29 +0800)
committerWill Deacon <will@kernel.org>
Wed, 27 Jan 2021 12:32:26 +0000 (12:32 +0000)
commit1ad5c8232bd1a1731f1d07468c3d5482ca2c38ce
tree34f7d7f4ca36ba35a97b418c6d90ed0d867207b6
parent7842b90b550236a07fe8d67b1a118337696f9c85
iommu/mediatek: Add iotlb_sync_map to sync whole the iova range

Remove IO_PGTABLE_QUIRK_TLBI_ON_MAP to avoid tlb sync for each a small
chunk memory, Use the new iotlb_sync_map to tlb_sync once for whole the
iova range of iommu_map.

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-4-yong.wu@mediatek.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/mtk_iommu.c