iommu/vt-d: Introduce batched cache invalidation
authorTina Zhang <tina.zhang@intel.com>
Mon, 2 Sep 2024 02:27:24 +0000 (10:27 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 2 Sep 2024 16:15:03 +0000 (18:15 +0200)
commit705c1cdf1e73c4c727bbfc8775434e6dd36e8baf
tree7530e8ca8327b71d725f901a5bc988806db18447
parent777cdd853434849cc98ef94787538b1eb9f492d9
iommu/vt-d: Introduce batched cache invalidation

Converts IOTLB and Dev-IOTLB invalidation to a batched model. Cache tag
invalidation requests for a domain are now accumulated in a qi_batch
structure before being flushed in bulk. It replaces the previous per-
request qi_flush approach with a more efficient batching mechanism.

Co-developed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Link: https://lore.kernel.org/r/20240815065221.50328-5-tina.zhang@intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/cache.c