Skip to content

Enable support of Intel DMAR device hotplug

Jiang Liu linux-acpi linux-hotplug linux-iommu linux-pci lkml 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest8 patches 5 repliesIn review
  2. v68 patches 3 repliesSuperseded
  3. v58 patches 15 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v421 patches5 repliesSuperseded
v321 patches2 repliesSuperseded
v221 patches1 replySuperseded
v1 RFC22 patches6 repliesSuperseded

Changes in v7 from the cover letter

1) Rebase to v3.18-rc3

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8iommu/vt-d: Introduce helper function dmar_walk_resources()drivers/iommu/dmar.c drivers/iommu/intel-iommu.c include/linux/dmar.h+122 -1100 replies
2/8iommu/vt-d: Dynamically allocate and free seq_id for DMAR unitsdrivers/iommu/dmar.c drivers/iommu/intel-iommu.c include/linux/dmar.h+43 -160 replies
3/8iommu/vt-d: Implement DMAR unit hotplug frameworkdrivers/iommu/dmar.c drivers/iommu/intel-iommu.c drivers/iommu/intel_irq_remapping.c +1 more+370 -140 replies
4/8iommu/vt-d: Search for ACPI _DSM method for DMAR hotplugdrivers/iommu/dmar.c+30 -30 replies
5/8iommu/vt-d: Enhance intel_irq_remapping driver to support DMAR unit hotplugdrivers/iommu/intel_irq_remapping.c+178 -600 replies
6/8iommu/vt-d: Enhance error recovery in function intel_enable_irq_remapping()drivers/iommu/intel_irq_remapping.c+5 -30 replies
7/8iommu/vt-d: Enhance intel-iommu driver to support DMAR unit hotplugdrivers/iommu/intel-iommu.c+151 -550 replies
8/8pci, ACPI, iommu: Enhance pci_root to support DMAR device hotplugdrivers/acpi/pci_root.c+14 -20 replies

Reviews trailers per patch

6 of 8 patches have a Reviewed-by or Acked-by.

PatchYijing Wang
1/8
2/8R-b
3/8R-b
4/8R-b
5/8
6/8R-b
7/8R-b
8/8R-b

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

Read the v7 thread

Cover letter [Patch Part3 V7 0/8] Enable support of Intel DMAR device hotplug

When hot plugging a descrete IOH or a physical processor with embedded IIO, we need to handle DMAR(or IOMMU) unit in the PCIe host bridge if DMAR is in use. This patch set tries to enhance current DMAR/IOMMU/IR drivers to support hotplug and is based on latest Linus master branch.

All prerequisite patches to support DMAR device hotplug have been merged into the mainstream kernel, and this is the last patch set to enable DMAR device hotplug.

You may access the patch set at:
https://github.com/jiangliu/linux.git iommu/hotplug_v7

This patch set has been tested on Intel development machine. Appreciate any comments and tests.

V6->V7:
1) Rebase to v3.18-rc3
V5->V6:
1) Fix a race condition found during review
2) Refine dmar_walk_resources() to dmar_walk_remapping_entries()

Patch 1-4 enhances DMAR framework to support hotplug Patch 5 enhances Intel interrupt remapping driver to support hotplug Patch 6 enhances error handling in Intel IR driver
Patch 7 enhance Intel IOMMU to support hotplug
Patch 8 enhance ACPI pci_root driver to handle DMAR units

Jiang Liu (8):
iommu/vt-d: Introduce helper function dmar_walk_resources() iommu/vt-d: Dynamically allocate and free seq_id for DMAR units iommu/vt-d: Implement DMAR unit hotplug framework iommu/vt-d: Search for ACPI _DSM method for DMAR hotplug iommu/vt-d: Enhance intel_irq_remapping driver to support DMAR unit
hotplug
iommu/vt-d: Enhance error recovery in function
intel_enable_irq_remapping()
iommu/vt-d: Enhance intel-iommu driver to support DMAR unit hotplug pci, ACPI, iommu: Enhance pci_root to support DMAR device hotplug

 drivers/acpi/pci_root.c             |   16 +-
 drivers/iommu/dmar.c                |  532 ++++++++++++++++++++++++++++-------
 drivers/iommu/intel-iommu.c         |  297 ++++++++++++++-----
 drivers/iommu/intel_irq_remapping.c |  249 ++++++++++++----
 include/linux/dmar.h                |   50 +++-
 5 files changed, 897 insertions(+), 247 deletions(-)
Signature · 1 line
1.7.10.4