diff options
| -rw-r--r-- | drivers/iommu/intel-iommu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index a814c95f73ce..a320bda2c305 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c | |||
| @@ -3415,9 +3415,12 @@ static int __init init_dmars(void) | |||
| 3415 | iommu_identity_mapping |= IDENTMAP_ALL; | 3415 | iommu_identity_mapping |= IDENTMAP_ALL; |
| 3416 | 3416 | ||
| 3417 | #ifdef CONFIG_INTEL_IOMMU_BROKEN_GFX_WA | 3417 | #ifdef CONFIG_INTEL_IOMMU_BROKEN_GFX_WA |
| 3418 | iommu_identity_mapping |= IDENTMAP_GFX; | 3418 | dmar_map_gfx = 0; |
| 3419 | #endif | 3419 | #endif |
| 3420 | 3420 | ||
| 3421 | if (!dmar_map_gfx) | ||
| 3422 | iommu_identity_mapping |= IDENTMAP_GFX; | ||
| 3423 | |||
| 3421 | check_tylersburg_isoch(); | 3424 | check_tylersburg_isoch(); |
| 3422 | 3425 | ||
| 3423 | if (iommu_identity_mapping) { | 3426 | if (iommu_identity_mapping) { |
