Skip to content

iommu/vt-d: Some cleanups

Lu Baolu linux-iommu lkml 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 0 repliesNew
  2. v37 patches 9 repliesSuperseded
  3. v28 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v17 patches10 repliesSuperseded

Changes in v4 from the cover letter

- Drop the change of "Fold dmar_remove_one_dev_info() into its caller" in order to avoid an inextricable ordering problem.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7iommu/vt-d: Allocate pasid table in device probe pathdrivers/iommu/intel/iommu.c+12 -80 replies
2/7iommu/vt-d: Add device_block_translation() helperdrivers/iommu/intel/iommu.c+38 -60 replies
3/7iommu/vt-d: Add blocking domain supportdrivers/iommu/intel/iommu.c+18 -80 replies
4/7iommu/vt-d: Rename iommu_disable_dev_iotlb()drivers/iommu/intel/iommu.c+3 -30 replies
5/7iommu/vt-d: Rename domain_add_dev_info()drivers/iommu/intel/iommu.c+3 -20 replies
6/7iommu/vt-d: Remove unnecessary domain_context_mapped()drivers/iommu/intel/iommu.c+3 -440 replies
7/7iommu/vt-d: Use real field for indication of first leveldrivers/iommu/intel/iommu.c drivers/iommu/intel/iommu.h+15 -250 replies

Reviews trailers per patch

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

PatchKevin Tian
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/7] iommu/vt-d: Some cleanups

Hi,

This series includes some cleanups in the Intel IOMMU implementation after the IOMMU core implemented the blocking domain. The cleanup work is mainly in the attach_dev/device_probe/device_release paths.

Please help to review.

Best regards,
baolu

Change log:
v4:
- Drop the change of "Fold dmar_remove_one_dev_info() into its caller" in order to avoid an inextricable ordering problem.

v3:
- https://lore.kernel.org/linux-iommu/[email protected]/
- Disable PCI capabilities (PASID/ATS/PRI) when there's no domain attached to the device.

v2:
- https://lore.kernel.org/linux-iommu/[email protected]/
- Reorder the patches to make the device_block_translation() work with
the existing path first.
- Add a new patch to improve iommu_enable_pci_caps().

v1:
- https://lore.kernel.org/linux-iommu/[email protected]/

Lu Baolu (7):
iommu/vt-d: Allocate pasid table in device probe path iommu/vt-d: Add device_block_translation() helper iommu/vt-d: Add blocking domain support iommu/vt-d: Rename iommu_disable_dev_iotlb() iommu/vt-d: Rename domain_add_dev_info() iommu/vt-d: Remove unnecessary domain_context_mapped() iommu/vt-d: Use real field for indication of first level

 drivers/iommu/intel/iommu.h |  15 ++--
 drivers/iommu/intel/iommu.c | 169 ++++++++++++++++++------------------
 2 files changed, 90 insertions(+), 94 deletions(-)
Signature · 1 line
2.34.1