diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2020-01-02 08:18:21 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2020-01-07 14:05:58 +0100 |
commit | b802d070a52a1565b47daaa808872cfbd4a17b01 (patch) | |
tree | 1dc11cf1625a423f6ec18287847ebac6de804183 /drivers/iommu | |
parent | 64229e8f37cf0fc460e611dacc9f14561ddfd018 (diff) | |
download | linux-b802d070a52a1565b47daaa808872cfbd4a17b01.tar.gz linux-b802d070a52a1565b47daaa808872cfbd4a17b01.tar.bz2 linux-b802d070a52a1565b47daaa808872cfbd4a17b01.zip |
iommu/vt-d: Use iova over first level
After we make all map/unmap paths support first level page table.
Let's turn it on if hardware supports scalable mode.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/intel-iommu.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 34e619318f64..51d60bad0b1d 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -1770,15 +1770,13 @@ static void free_dmar_iommu(struct intel_iommu *iommu) /* * Check and return whether first level is used by default for - * DMA translation. Currently, we make it off by setting - * first_level_support = 0, and will change it to -1 after all - * map/unmap paths support first level page table. + * DMA translation. */ static bool first_level_by_default(void) { struct dmar_drhd_unit *drhd; struct intel_iommu *iommu; - static int first_level_support = 0; + static int first_level_support = -1; if (likely(first_level_support != -1)) return first_level_support; |