Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20b46dff authored by Baoquan He's avatar Baoquan He Committed by Joerg Roedel
Browse files

iommu/amd: Disable iommu only if amd_iommu=off is specified



It's ok to disable iommu early in normal kernel or in kdump kernel when
amd_iommu=off is specified. While we should not disable it in kdump kernel
when on-flight dma is still on-going.

Signed-off-by: default avatarBaoquan He <bhe@redhat.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent daae2d25
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2499,6 +2499,7 @@ static int __init early_amd_iommu_init(void)
		goto out;

	/* Disable any previously enabled IOMMUs */
	if (!is_kdump_kernel() || amd_iommu_disabled)
		disable_iommus();

	if (amd_iommu_irq_remap)