diff options
-rw-r--r-- | arch/x86/kernel/amd_iommu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index 543822b39a84..33434c497a6a 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c | |||
@@ -661,6 +661,10 @@ static int alloc_new_range(struct amd_iommu *iommu, | |||
661 | int index = dma_dom->aperture_size >> APERTURE_RANGE_SHIFT; | 661 | int index = dma_dom->aperture_size >> APERTURE_RANGE_SHIFT; |
662 | int i; | 662 | int i; |
663 | 663 | ||
664 | #ifdef CONFIG_IOMMU_STRESS | ||
665 | populate = false; | ||
666 | #endif | ||
667 | |||
664 | if (index >= APERTURE_MAX_RANGES) | 668 | if (index >= APERTURE_MAX_RANGES) |
665 | return -ENOMEM; | 669 | return -ENOMEM; |
666 | 670 | ||