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

Commit 11123741 authored by Joerg Roedel's avatar Joerg Roedel
Browse files

iommu/amd: Disable IOMMUs at boot if they are enabled



When booting, make sure the IOMMUs are disabled. They could
be previously enabled if we boot into a kexec or kdump
kernel. So make sure they are off.

Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 54bd6357
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2318,6 +2318,9 @@ static int __init early_amd_iommu_init(void)
	if (ret)
		goto out;

	/* Disable any previously enabled IOMMUs */
	disable_iommus();

	if (amd_iommu_irq_remap)
		amd_iommu_irq_remap = check_ioapic_information();