Skip to content

iommu/amd: Disable previously enabled IOMMUs at boot

Joerg Roedel linux-iommu lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7iommu/amd: Disable IOMMUs at boot if they are enableddrivers/iommu/amd_iommu_init.c+3 -00 replies
2/7iommu/amd: Rename free_on_init_error()drivers/iommu/amd_iommu_init.c+2 -20 replies
3/7iommu/amd: Add new init-state IOMMU_CMDLINE_DISABLEDdrivers/iommu/amd_iommu_init.c+5 -20 replies
4/7iommu/amd: Check for error states first in iommu_go_to_state()drivers/iommu/amd_iommu_init.c+2 -20 replies
5/7iommu/amd: Set global pointers to NULL after freeing themdrivers/iommu/amd_iommu_init.c+5 -00 replies
6/7iommu/amd: Free IOMMU resources when disabled on command linedrivers/iommu/amd_iommu_init.c+7 -00 replies
7/7iommu/amd: Remove amd_iommu_disabled check from amd_iommu_detect()drivers/iommu/amd_iommu_init.c+0 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] iommu/amd: Disable previously enabled IOMMUs at boot

Hi,

here is a patch-set refactoring the AMD IOMMU init code a bit to make sure the IOMMUs get disabled at boot, even when amd_iommu=off is specified on the kernel command line.

The patch-set is tested with various combinations of kernel command-line parameters and with kexec. It applies to the x86/amd branch of the iommu-tree.

Regards,

Joerg

Joerg Roedel (7):
iommu/amd: Disable IOMMUs at boot if they are enabled iommu/amd: Rename free_on_init_error()
iommu/amd: Add new init-state IOMMU_CMDLINE_DISABLED iommu/amd: Check for error states first in iommu_go_to_state() iommu/amd: Set global pointers to NULL after freeing them iommu/amd: Free IOMMU resources when disabled on command line iommu/amd: Remove amd_iommu_disabled check from amd_iommu_detect()

 drivers/iommu/amd_iommu_init.c | 33 ++++++++++++++++++++++++---------
 1 file changed, 24 insertions(+), 9 deletions(-)
Signature · 1 line
2.7.4