Skip to content

Commit

Permalink
amd-iommu: don't preallocate page tables with CONFIG_IOMMU_STRESS
Browse files Browse the repository at this point in the history
This forces testing of on-demand page table allocation code.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
  • Loading branch information
Joerg Roedel committed May 28, 2009
1 parent fe16f08 commit f5e9705
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f5e9705

Please sign in to comment.