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


Groups > linux.kernel > #1700901 > unrolled thread

[PATCH v9 13/13] iommu/amd: Disable iommu only if amd_iommu=off is specified

Started byBaoquan He <bhe@redhat.com>
First post2017-08-01 13:40 +0200
Last post2017-08-01 13:40 +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 v9 13/13] iommu/amd: Disable iommu only if amd_iommu=off is specified Baoquan He <bhe@redhat.com> - 2017-08-01 13:40 +0200

#1700901 — [PATCH v9 13/13] iommu/amd: Disable iommu only if amd_iommu=off is specified

FromBaoquan He <bhe@redhat.com>
Date2017-08-01 13:40 +0200
Subject[PATCH v9 13/13] iommu/amd: Disable iommu only if amd_iommu=off is specified
Message-ID<u9DGO-3pR-17@gated-at.bofh.it>
It's ok to disable iommu in normal kernel. While there's no need
to disable it in kdump kernel after the on-flight dma issue has
heen fixed.

Signed-off-by: Baoquan He <bhe@redhat.com>
---
 drivers/iommu/amd_iommu_init.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c
index cada2e302761..5015d61c1dcf 100644
--- a/drivers/iommu/amd_iommu_init.c
+++ b/drivers/iommu/amd_iommu_init.c
@@ -2502,7 +2502,8 @@ static int __init early_amd_iommu_init(void)
 		goto out;
 
 	/* Disable any previously enabled IOMMUs */
-	disable_iommus();
+	if (amd_iommu_disabled)
+		disable_iommus();
 
 	if (amd_iommu_irq_remap)
 		amd_iommu_irq_remap = check_ioapic_information();
-- 
2.5.5

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web