Skip to content

Convert Intel IOMMU to use sva-lib helpers

Lu Baolu linux-iommu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11iommu/vt-d: Add pasid private data helpersdrivers/iommu/intel/svm.c+41 -213 replies
2/11iommu/vt-d: Use iommu_sva_alloc(free)_pasid() helpersdrivers/iommu/intel/Kconfig drivers/iommu/intel/iommu.c drivers/iommu/intel/svm.c +1 more+120 -1630 replies
3/11iommu/vt-d: Use common helper to lookup svm devicesdrivers/iommu/intel/svm.c+40 -280 replies
4/11iommu/vt-d: Refactor prq_event_thread()drivers/iommu/intel/svm.c+136 -1030 replies
5/11iommu/vt-d: Allocate/register iopf queue for sva devicesdrivers/iommu/intel/iommu.c drivers/iommu/intel/svm.c include/linux/intel-iommu.h+79 -260 replies
6/11iommu/vt-d: Report prq to io-pgfault frameworkdrivers/iommu/intel/iommu.c drivers/iommu/intel/svm.c+17 -810 replies
7/11iommu/vt-d: Add prq_report trace eventdrivers/iommu/intel/svm.c include/linux/intel-iommu.h include/trace/events/intel_iommu.h+73 -00 replies
8/11iommu/vt-d: Add common code for dmar latency performance monitorsdrivers/iommu/intel/Kconfig drivers/iommu/intel/Makefile drivers/iommu/intel/perf.c +2 more+244 -00 replies
9/11iommu/vt-d: Expose latency monitor data through debugfsdrivers/iommu/intel/Kconfig drivers/iommu/intel/debugfs.c+112 -00 replies
10/11iommu/vt-d: Add cache invalidation latency samplingdrivers/iommu/intel/dmar.c+31 -00 replies
11/11iommu/vt-d: Add PRQ handling latency samplingdrivers/iommu/intel/svm.c+13 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/11] Convert Intel IOMMU to use sva-lib helpers

This patch series converts the Intel IOMMU to use the generic sva helpers defined in iommu-sva-lib.c and io-pgfault.c. It includes the SVA pasid management and IO page fault handling.

This series could be divided into below parts:
PATCH[1~3]: Use iommu_sva_alloc/free_pasid() to manage the SVA pasid. PATCH[4-6]: Use the generic sva io page fault handler iommu_queue_iopf. PATCH[7-11]: Add ftrace and debugfs support for io page fault handling.

Please help to review.

Best regards,
baolu

Lu Baolu (11):
iommu/vt-d: Add pasid private data helpers
iommu/vt-d: Use iommu_sva_alloc(free)_pasid() helpers iommu/vt-d: Use common helper to lookup svm devices iommu/vt-d: Refactor prq_event_thread()
iommu/vt-d: Allocate/register iopf queue for sva devices iommu/vt-d: Report prq to io-pgfault framework iommu/vt-d: Add prq_report trace event
iommu/vt-d: Add common code for dmar latency performance monitors iommu/vt-d: Expose latency monitor data through debugfs iommu/vt-d: Add cache invalidation latency sampling iommu/vt-d: Add PRQ handling latency sampling

 include/linux/intel-iommu.h        |  33 +-
 drivers/iommu/intel/perf.h         |  73 ++++
 include/trace/events/intel_iommu.h |  37 ++
 drivers/iommu/intel/debugfs.c      | 111 +++++
 drivers/iommu/intel/dmar.c         |  31 ++
 drivers/iommu/intel/iommu.c        |  73 +++-
 drivers/iommu/intel/perf.c         | 166 ++++++++
 drivers/iommu/intel/svm.c          | 627 ++++++++++++++---------------
 drivers/iommu/intel/Kconfig        |   5 +
 drivers/iommu/intel/Makefile       |   1 +
 10 files changed, 819 insertions(+), 338 deletions(-)
 create mode 100644 drivers/iommu/intel/perf.h
 create mode 100644 drivers/iommu/intel/perf.c
Signature · 1 line
2.25.1