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


Groups > linux.kernel > #1667786 > unrolled thread

[PATCH 7/7] iommu/amd: Remove amd_iommu_disabled check from amd_iommu_detect()

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 7/7] iommu/amd: Remove amd_iommu_disabled check from amd_iommu_detect() Joerg Roedel <joro@8bytes.org> - 2017-06-16 16:20 +0200

#1667786 — [PATCH 7/7] iommu/amd: Remove amd_iommu_disabled check from amd_iommu_detect()

FromJoerg Roedel <joro@8bytes.org>
Date2017-06-16 16:20 +0200
Subject[PATCH 7/7] iommu/amd: Remove amd_iommu_disabled check from amd_iommu_detect()
Message-ID<tT0gq-1a4-15@gated-at.bofh.it>
From: Joerg Roedel <jroedel@suse.de>

This check needs to happens later now, when all previously
enabled IOMMUs have been disabled.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
---
 drivers/iommu/amd_iommu_init.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c
index eedd3d3..bc9dfcf 100644
--- a/drivers/iommu/amd_iommu_init.c
+++ b/drivers/iommu/amd_iommu_init.c
@@ -2576,9 +2576,6 @@ int __init amd_iommu_detect(void)
 	if (no_iommu || (iommu_detected && !gart_iommu_aperture))
 		return -ENODEV;
 
-	if (amd_iommu_disabled)
-		return -ENODEV;
-
 	ret = iommu_go_to_state(IOMMU_IVRS_DETECTED);
 	if (ret)
 		return ret;
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web