iommu/vt-d: Use cache_tag_flush_range_np() in iotlb_sync_map
authorLu Baolu <baolu.lu@linux.intel.com>
Wed, 24 Apr 2024 07:16:38 +0000 (15:16 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 26 Apr 2024 09:57:45 +0000 (11:57 +0200)
commit129dab6e1286525fe5baed860d3dfcd9c6b4b327
tree0285dc6edc11958419b1da414f9b4bfc0ea97a5c
parenta600ccd0a347e8f9c9f35f229e1ccd0dca9374c4
iommu/vt-d: Use cache_tag_flush_range_np() in iotlb_sync_map

The iotlb_sync_map callback is called by the iommu core after non-present
to present mappings are created. The iommu driver uses this callback to
invalidate caches if IOMMU is working in caching mode and second-only
translation is used for the domain. Use cache_tag_flush_range_np() in this
callback.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20240416080656.60968-7-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c