aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/amd_iommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/amd_iommu.c')
-rw-r--r--arch/x86/kernel/amd_iommu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index 33434c497a6a..04ff5ec4ac0e 100644
--- a/arch/x86/kernel/amd_iommu.c
+++ b/arch/x86/kernel/amd_iommu.c
@@ -824,6 +824,11 @@ static void dma_ops_free_addresses(struct dma_ops_domain *dom,
824 824
825 BUG_ON(i >= APERTURE_MAX_RANGES || range == NULL); 825 BUG_ON(i >= APERTURE_MAX_RANGES || range == NULL);
826 826
827#ifdef CONFIG_IOMMU_STRESS
828 if (i < 4)
829 return;
830#endif
831
827 if (address >= dom->next_address) 832 if (address >= dom->next_address)
828 dom->need_flush = true; 833 dom->need_flush = true;
829 834