Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1667782
| From | Joerg Roedel <joro@8bytes.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/7] iommu/amd: Disable IOMMUs at boot if they are enabled |
| Date | 2017-06-16 16:20 +0200 |
| Message-ID | <tT0gq-1a4-13@gated-at.bofh.it> (permalink) |
| References | <tT0gp-1a4-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Joerg Roedel <jroedel@suse.de> 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: Joerg Roedel <jroedel@suse.de> --- drivers/iommu/amd_iommu_init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c index d9f5ddd..fb7035f 100644 --- a/drivers/iommu/amd_iommu_init.c +++ b/drivers/iommu/amd_iommu_init.c @@ -2316,6 +2316,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(); -- 2.7.4
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 1/7] iommu/amd: Disable IOMMUs at boot if they are enabled Joerg Roedel <joro@8bytes.org> - 2017-06-16 16:20 +0200
csiph-web