Skip to content

Fix Intel IOMMU breakage in kdump kernel

Joerg Roedel linux-iommu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19iommu/vt-d: Cleanup log messagesdrivers/iommu/dmar.c drivers/iommu/intel-iommu.c drivers/iommu/intel_irq_remapping.c+101 -1100 replies
2/19iommu/vt-d: Init QI before root entry is allocateddrivers/iommu/intel-iommu.c+2 -30 replies
3/19iommu/vt-d: Make root entry visible for hardware right after allocationdrivers/iommu/intel-iommu.c+6 -40 replies
4/19iommu/vt-d: Detect pre enabled translationdrivers/iommu/intel-iommu.c include/linux/intel-iommu.h+23 -00 replies
5/19iommu/vt-d: Copy translation tables from old kerneldrivers/iommu/intel-iommu.c+205 -20 replies
6/19iommu/vt-d: Do not re-use domain-ids from the old kerneldrivers/iommu/intel-iommu.c+10 -10 replies
7/19iommu/vt-d: Mark copied context entriesdrivers/iommu/intel-iommu.c+51 -20 replies
8/19iommu/vt-d: Allocate si_domain in init_dmars()drivers/iommu/intel-iommu.c+7 -50 replies
9/19iommu/vt-d: Don't do early domain assignment if kdump kerneldrivers/iommu/intel-iommu.c+13 -00 replies
10/19iommu/vt-d: Don't copy translation tables if RTT bit needs to be changeddrivers/iommu/intel-iommu.c+11 -10 replies
11/19iommu/vt-d: Don't disable translation prior to OS handoverdrivers/iommu/intel-iommu.c+0 -70 replies
12/19iommu/vt-d: Enable Translation only if it was previously disableddrivers/iommu/intel-iommu.c+3 -10 replies
13/19iommu/vt-d: Move EIM detection to intel_prepare_irq_remappingdrivers/iommu/intel_irq_remapping.c+24 -230 replies
14/19iommu/vt-d: Move QI initializationt to intel_setup_irq_remappingdrivers/iommu/intel_irq_remapping.c+35 -570 replies
15/19iommu/vt-d: Disable IRQ remapping in intel_prepare_irq_remappingdrivers/iommu/intel_irq_remapping.c+3 -30 replies
16/19iommu/vt-d: Set IRTA in intel_setup_irq_remappingdrivers/iommu/intel_irq_remapping.c+14 -50 replies
17/19iommu/vt-d: Copy IR table from old kernel when in kdump modedrivers/iommu/intel_irq_remapping.c include/linux/intel-iommu.h+71 -00 replies
18/19iommu/vt-d: Make sure copied over IR entries are not reuseddrivers/iommu/intel_irq_remapping.c+10 -00 replies
19/19iommu/vt-d: Don't disable IR when it was previously enableddrivers/iommu/intel_irq_remapping.c+2 -40 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/19] Fix Intel IOMMU breakage in kdump kernel

Hi,

as David Woodhouse pointed out, my fixes and cleanups for the original patch-set turned out to be a complete rewrite. So to have a cleaner history of the feature and to make backporting easier, here is a rewrite of my changes based on v4.1-rc7.

Some additional issues have been fixed by this rewrite, like a kdump-kernel boot panic with 'iommu=pt' and support for copying the extended root-entry and context table formats has been added.

I plan to rebuild the x86/vt-d branch of the iommu tree with these patches.

Regards,

Joerg

Joerg Roedel (19):
iommu/vt-d: Cleanup log messages
iommu/vt-d: Init QI before root entry is allocated iommu/vt-d: Make root entry visible for hardware right after
allocation
iommu/vt-d: Detect pre enabled translation
iommu/vt-d: Copy translation tables from old kernel iommu/vt-d: Do not re-use domain-ids from the old kernel iommu/vt-d: Mark copied context entries
iommu/vt-d: Allocate si_domain in init_dmars() iommu/vt-d: Don't do early domain assignment if kdump kernel iommu/vt-d: Don't copy translation tables if RTT bit needs to be
changed
iommu/vt-d: Don't disable translation prior to OS handover iommu/vt-d: Enable Translation only if it was previously disabled iommu/vt-d: Move EIM detection to intel_prepare_irq_remapping iommu/vt-d: Move QI initializationt to intel_setup_irq_remapping iommu/vt-d: Disable IRQ remapping in intel_prepare_irq_remapping iommu/vt-d: Set IRTA in intel_setup_irq_remapping iommu/vt-d: Copy IR table from old kernel when in kdump mode iommu/vt-d: Make sure copied over IR entries are not reused iommu/vt-d: Don't disable IR when it was previously enabled

 drivers/iommu/dmar.c                |  28 +-
 drivers/iommu/intel-iommu.c         | 495 ++++++++++++++++++++++++++++--------
 drivers/iommu/intel_irq_remapping.c | 255 ++++++++++++-------
 include/linux/intel-iommu.h         |   5 +
 4 files changed, 573 insertions(+), 210 deletions(-)
Signature · 1 line
1.9.1