aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/amd_iommu.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-05-22 12:31:53 +0200
committerJoerg Roedel <joerg.roedel@amd.com>2009-05-28 18:18:08 +0200
commitf5e9705c6429d24dee832b2edd7f4848d432ea03 (patch)
tree38921fd78ed51dc360afb380ae40a8492d0211d8 /arch/x86/kernel/amd_iommu.c
parentamd-iommu: disable round-robin allocator for CONFIG_IOMMU_STRESS (diff)
downloadlinux-dev-f5e9705c6429d24dee832b2edd7f4848d432ea03.tar.xz
linux-dev-f5e9705c6429d24dee832b2edd7f4848d432ea03.zip
amd-iommu: don't preallocate page tables with CONFIG_IOMMU_STRESS
This forces testing of on-demand page table allocation code. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/kernel/amd_iommu.c')
-rw-r--r--arch/x86/kernel/amd_iommu.c4
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,
int index = dma_dom->aperture_size >> APERTURE_RANGE_SHIFT;
int i;
+#ifdef CONFIG_IOMMU_STRESS
+ populate = false;
+#endif
+
if (index >= APERTURE_MAX_RANGES)
return -ENOMEM;