Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5e9705c authored by Joerg Roedel's avatar Joerg Roedel
Browse files

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
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;