[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-iommu
Subject: [PATCH 12/12] amd-iommu: don't free dma adresses below 512MB with CONFIG_IOMMU_STRESS
From: joerg.roedel () amd ! com (Joerg Roedel)
Date: 2009-05-22 12:21:33
Message-ID: 1242994893-28902-13-git-send-email-joerg.roedel () amd ! com
[Download RAW message or body]
[ impact: stress test automatic aperture enlargement code ]
Signed-off-by: Joerg Roedel <joerg.roedel at amd.com>
---
arch/x86/kernel/amd_iommu.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index 33434c4..04ff5ec 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,
BUG_ON(i >= APERTURE_MAX_RANGES || range == NULL);
+#ifdef CONFIG_IOMMU_STRESS
+ if (i < 4)
+ return;
+#endif
+
if (address >= dom->next_address)
dom->need_flush = true;
--
1.6.3.1
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic