Skip to content

iommu/vt-d: Fix kdump boot with VT-d enabled

Joerg Roedel linux-iommu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5iommu/vt-d: Add attach_deferred() helperdrivers/iommu/intel-iommu.c+8 -43 replies
2/5iommu/vt-d: Move deferred device attachment into helper functiondrivers/iommu/intel-iommu.c+12 -82 replies
3/5iommu/vt-d: Do deferred attachment in iommu_need_mapping()drivers/iommu/intel-iommu.c+3 -36 replies
4/5iommu/vt-d: Remove deferred_attach_domain()drivers/iommu/intel-iommu.c+3 -81 reply
5/5iommu/vt-d: Simplify check in identity_mapping()drivers/iommu/intel-iommu.c+1 -11 reply

Reviews trailers per patch

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

PatchJerry SnitselaarLu Baolu
1/5R-b
2/5R-b
3/5R-b R-b A-b
4/5R-b
5/5R-b

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

Read the v1 thread

Cover letter [PATCH 0/5] iommu/vt-d: Fix kdump boot with VT-d enabled

Hi,

booting into a crashdump kernel with Intel IOMMU enabled and configured into passthrough mode does not succeed with the current kernel. The reason is that the check for identity mappings happen before the check for deferred device attachments. That results in wrong results returned from iommu_need_mapping() and subsequently in a wrong domain-type used in __intel_map_single(). A stripped oops is in the commit-message of patch 3.

The patch-set fixes the issue and does a few code cleanups along the way. I have not yet researched the stable and fixes tags, but when the patches are fine I will add the tags before applying the patches.

Please review.

Thanks,

Joerg

Joerg Roedel (5):
iommu/vt-d: Add attach_deferred() helper
iommu/vt-d: Move deferred device attachment into helper function iommu/vt-d: Do deferred attachment in iommu_need_mapping() iommu/vt-d: Remove deferred_attach_domain() iommu/vt-d: Simplify check in identity_mapping()

 drivers/iommu/intel-iommu.c | 37 ++++++++++++++++++++-----------------
 1 file changed, 20 insertions(+), 17 deletions(-)
Signature · 6 lines
2.17.1

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu