Skip to content

iommu/vt-d: Refactor PRI enable/disable steps

Lu Baolu linux-iommu lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 13 repliesIn review
  2. v22 patches 7 repliesSuperseded

Changes in v3 from the cover letter

- Refine the lock requirement. Only assert the lock when it is required.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iommu/vt-d: Add helper to flush caches for context changedrivers/iommu/intel/iommu.c drivers/iommu/intel/iommu.h drivers/iommu/intel/pasid.c+92 -5012 replies
2/2iommu/vt-d: Refactor PCI PRI enabling/disabling callbacksdrivers/iommu/intel/iommu.c drivers/iommu/intel/iommu.h drivers/iommu/intel/pasid.c+61 -71 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKevin TianJacob Pan
1/2R-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] iommu/vt-d: Refactor PRI enable/disable steps

The page fault handling framework within the iommu core has defined the PRI enable and disable flows in the comments for the iopf_queue_remove_device() interface. This series aims to refactor the PRI enable/disable steps in the Intel iommu driver to align with these definitions.

Change log:
v3:
- Refine the lock requirement. Only assert the lock when it is required.

v2:
- https://lore.kernel.org/linux-iommu/[email protected]/
- The cache invalidation for a context entry change should not affect the devices not related to the entry. Fix this by always using device-selective cache invalidation.
v1:
- https://lore.kernel.org/linux-iommu/[email protected]/

Lu Baolu (2):
iommu/vt-d: Add helper to flush caches for context change iommu/vt-d: Refactor PCI PRI enabling/disabling callbacks

 drivers/iommu/intel/iommu.h |  13 +++++
 drivers/iommu/intel/iommu.c |  89 +++++++++++++++++------------
 drivers/iommu/intel/pasid.c | 108 +++++++++++++++++++++++++++++-------
 3 files changed, 153 insertions(+), 57 deletions(-)
Signature · 1 line
2.34.1