Home Home > GIT Browse > SLE12-SP4-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2019-05-14 11:39:04 +0200
committerJoerg Roedel <jroedel@suse.de>2019-05-14 11:39:10 +0200
commitc244e47c42a15e74a2e5546a9a0f09e5fa9c7a81 (patch)
tree3ef39fed65437a52f57435562e014fe62f3bb563
parentfc4906ed7412eccacc1efe3663319555fb4d0ca1 (diff)
iommu/vt-d: Make kernel parameter igfx_off work with vIOMMU
(bsc#1135007). suse-commit: caca066552e5c38fe50fba9f525b0714bb130b0e
-rw-r--r--drivers/iommu/intel-iommu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index efa51b9029f1..f4cecf5d6422 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -3351,9 +3351,12 @@ static int __init init_dmars(void)
iommu_identity_mapping |= IDENTMAP_ALL;
#ifdef CONFIG_INTEL_IOMMU_BROKEN_GFX_WA
- iommu_identity_mapping |= IDENTMAP_GFX;
+ dmar_map_gfx = 0;
#endif
+ if (!dmar_map_gfx)
+ iommu_identity_mapping |= IDENTMAP_GFX;
+
check_tylersburg_isoch();
if (iommu_identity_mapping) {