Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1667782 > unrolled thread

[PATCH 1/7] iommu/amd: Disable IOMMUs at boot if they are enabled

Started byJoerg Roedel <joro@8bytes.org>
First post2017-06-16 16:20 +0200
Last post2017-06-16 16:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/7] iommu/amd: Disable IOMMUs at boot if they are enabled Joerg Roedel <joro@8bytes.org> - 2017-06-16 16:20 +0200

#1667782 — [PATCH 1/7] iommu/amd: Disable IOMMUs at boot if they are enabled

FromJoerg Roedel <joro@8bytes.org>
Date2017-06-16 16:20 +0200
Subject[PATCH 1/7] iommu/amd: Disable IOMMUs at boot if they are enabled
Message-ID<tT0gq-1a4-13@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web