iommu: Introduce iotlb_sync_map callback
authorDmitry Osipenko <digetx@gmail.com>
Wed, 12 Dec 2018 20:38:47 +0000 (23:38 +0300)
committerJoerg Roedel <jroedel@suse.de>
Wed, 16 Jan 2019 12:54:09 +0000 (13:54 +0100)
commit1d7ae53b152dbc5ba0a4f6a83ecc42ac66f52d11
treef5ac284e3b5cd24dbf01ee29c7a32942ceea3a5b
parent4b6f0ea384f4a39c07fad556a9b4d619759de6c5
iommu: Introduce iotlb_sync_map callback

Introduce iotlb_sync_map() callback that is invoked in the end of
iommu_map(). This new callback allows IOMMU drivers to avoid syncing
after mapping of each contiguous chunk and sync only when the whole
mapping is completed, optimizing performance of the mapping operation.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c
include/linux/iommu.h