Commit 11123741 authored by Joerg Roedel's avatar Joerg Roedel

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
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment