diff options
| -rw-r--r-- | drivers/iommu/intel-iommu.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index de47bdb57e48..a814c95f73ce 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c | |||
| @@ -4053,9 +4053,7 @@ static void __init init_no_remapping_devices(void) | |||
| 4053 | 4053 | ||
| 4054 | /* This IOMMU has *only* gfx devices. Either bypass it or | 4054 | /* This IOMMU has *only* gfx devices. Either bypass it or |
| 4055 | set the gfx_mapped flag, as appropriate */ | 4055 | set the gfx_mapped flag, as appropriate */ |
| 4056 | if (dmar_map_gfx) { | 4056 | if (!dmar_map_gfx) { |
| 4057 | intel_iommu_gfx_mapped = 1; | ||
| 4058 | } else { | ||
| 4059 | drhd->ignored = 1; | 4057 | drhd->ignored = 1; |
| 4060 | for_each_active_dev_scope(drhd->devices, | 4058 | for_each_active_dev_scope(drhd->devices, |
| 4061 | drhd->devices_cnt, i, dev) | 4059 | drhd->devices_cnt, i, dev) |
| @@ -4894,6 +4892,9 @@ int __init intel_iommu_init(void) | |||
| 4894 | goto out_free_reserved_range; | 4892 | goto out_free_reserved_range; |
| 4895 | } | 4893 | } |
| 4896 | 4894 | ||
| 4895 | if (dmar_map_gfx) | ||
| 4896 | intel_iommu_gfx_mapped = 1; | ||
| 4897 | |||
| 4897 | init_no_remapping_devices(); | 4898 | init_no_remapping_devices(); |
| 4898 | 4899 | ||
| 4899 | ret = init_dmars(); | 4900 | ret = init_dmars(); |
