Commit f5e9705c authored by Joerg Roedel's avatar Joerg Roedel

amd-iommu: don't preallocate page tables with CONFIG_IOMMU_STRESS

This forces testing of on-demand page table allocation code.
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent fe16f088
...@@ -661,6 +661,10 @@ static int alloc_new_range(struct amd_iommu *iommu, ...@@ -661,6 +661,10 @@ static int alloc_new_range(struct amd_iommu *iommu,
int index = dma_dom->aperture_size >> APERTURE_RANGE_SHIFT; int index = dma_dom->aperture_size >> APERTURE_RANGE_SHIFT;
int i; int i;
#ifdef CONFIG_IOMMU_STRESS
populate = false;
#endif
if (index >= APERTURE_MAX_RANGES) if (index >= APERTURE_MAX_RANGES)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment