aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 31d56c36010a..543822b39a84 100644
--- a/arch/x86/kernel/amd_iommu.c
+++ b/arch/x86/kernel/amd_iommu.c
@@ -783,6 +783,11 @@ static unsigned long dma_ops_alloc_addresses(struct device *dev,
783{ 783{
784 unsigned long address; 784 unsigned long address;
785 785
786#ifdef CONFIG_IOMMU_STRESS
787 dom->next_address = 0;
788 dom->need_flush = true;
789#endif
790
786 address = dma_ops_area_alloc(dev, dom, pages, align_mask, 791 address = dma_ops_area_alloc(dev, dom, pages, align_mask,
787 dma_mask, dom->next_address); 792 dma_mask, dom->next_address);
788 793