mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Batch IOTLB/dev-IOTLB invalidation
@ 2024-08-09  2:54 Tina Zhang
  2024-08-09  2:54 ` [PATCH v2 1/5] iommu/vt-d: Refactor IOTLB/Dev-IOTLB invalidation command logic Tina Zhang
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Tina Zhang @ 2024-08-09  2:54 UTC (permalink / raw)
  To: Lu Baolu, Kevin Tian; +Cc: iommu, linux-kernel, Tina Zhang

IOTLB and dev-IOTLB invalidation operations are performance-critical.
The current implementation in the VT-d driver submits these commands
individually, leading to some inefficiencies due to the IOMMU
programming and invalidation command processing overhead for each
operation.

This patch series enhances the efficiency of Queue Invalidation (QI)
operations by adding support for batch processing. Microbenchmarks
show that with a DSA device working in SVA, batching IOTLB and dev-IOTLB
invalidations can decrease the time spent in qi_submit_sync()
by roughly more than 800 cycles.

Changelog
v2:
 * Rebased on 6.11-rc2
 * Updated commit messages
 * Added changes of refactoring IOTLB/Dev-IOTLB invalidation logic
   and quirk_extra_dev_tlb_flush() logic

v1:
 https://lore.kernel.org/linux-iommu/20240517003728.251115-1-tina.zhang@intel.com/

Tina Zhang (5):
  iommu/vt-d: Refactor IOTLB/Dev-IOTLB invalidation command logic
  iommu/vt-d: Refactor IOTLB and Dev-IOTLB flush logic
  iommu/vt-d: Introduce interfaces for QI batching operations
  vt-d/iommu: Refactor quirk_extra_dev_tlb_flush()
  vt-d/iommu: Enable batching of IOTLB/Dev-IOTLB invalidations

 drivers/iommu/intel/cache.c | 269 ++++++++++++++++++++++++++--------
 drivers/iommu/intel/dmar.c  | 281 +++++++++++++++++++++++++-----------
 drivers/iommu/intel/iommu.c |  56 +++++--
 drivers/iommu/intel/iommu.h |  44 ++++++
 drivers/iommu/intel/svm.c   |   5 +-
 5 files changed, 491 insertions(+), 164 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-08-09  9:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-09  2:54 [PATCH v2 0/5] Batch IOTLB/dev-IOTLB invalidation Tina Zhang
2024-08-09  2:54 ` [PATCH v2 1/5] iommu/vt-d: Refactor IOTLB/Dev-IOTLB invalidation command logic Tina Zhang
2024-08-09  2:54 ` [PATCH v2 2/5] iommu/vt-d: Refactor IOTLB and Dev-IOTLB flush logic Tina Zhang
2024-08-09  8:09   ` Baolu Lu
2024-08-09  2:54 ` [PATCH v2 3/5] iommu/vt-d: Introduce interfaces for QI batching operations Tina Zhang
2024-08-09  8:15   ` Baolu Lu
2024-08-09  8:59     ` Zhang, Tina
2024-08-09  2:54 ` [PATCH v2 4/5] vt-d/iommu: Refactor quirk_extra_dev_tlb_flush() Tina Zhang
2024-08-09  8:25   ` Baolu Lu
2024-08-09  9:10     ` Zhang, Tina
2024-08-09  2:54 ` [PATCH v2 5/5] vt-d/iommu: Enable batching of IOTLB/Dev-IOTLB invalidations Tina Zhang
2024-08-09  8:22   ` Baolu Lu
2024-08-09  9:24     ` Zhang, Tina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®