提交 ffa080eb 编写于 作者: J Joerg Roedel

iommu/amd: Remove amd_iommu_disabled check from amd_iommu_detect()

This check needs to happens later now, when all previously
enabled IOMMUs have been disabled.
Signed-off-by: NJoerg Roedel <jroedel@suse.de>
上级 7ad820e4
...@@ -2578,9 +2578,6 @@ int __init amd_iommu_detect(void) ...@@ -2578,9 +2578,6 @@ int __init amd_iommu_detect(void)
if (no_iommu || (iommu_detected && !gart_iommu_aperture)) if (no_iommu || (iommu_detected && !gart_iommu_aperture))
return -ENODEV; return -ENODEV;
if (amd_iommu_disabled)
return -ENODEV;
ret = iommu_go_to_state(IOMMU_IVRS_DETECTED); ret = iommu_go_to_state(IOMMU_IVRS_DETECTED);
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册