]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu/vt-d: Cleanup use of iommu_flush_iotlb_psi()
authorLu Baolu <baolu.lu@linux.intel.com>
Wed, 24 Apr 2024 07:16:39 +0000 (15:16 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 26 Apr 2024 09:57:45 +0000 (11:57 +0200)
commit06792d06798931696dd78f65024de4cc66f2fd5b
tree5b5f9b76929516e0d2b132e0e52ad73b73508c45
parent129dab6e1286525fe5baed860d3dfcd9c6b4b327
iommu/vt-d: Cleanup use of iommu_flush_iotlb_psi()

Use cache_tag_flush_range() in switch_to_super_page() to invalidate the
necessary caches when switching mappings from normal to super pages. The
iommu_flush_iotlb_psi() call in intel_iommu_memory_notifier() is
unnecessary since there should be no cache invalidation for the identity
domain.

Clean up iommu_flush_iotlb_psi() after the last call site is removed.

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-8-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c