projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5e9705
)
amd-iommu: don't free dma adresses below 512MB with CONFIG_IOMMU_STRESS
author
Joerg Roedel
<joerg.roedel@amd.com>
Fri, 22 May 2009 10:40:54 +0000
(12:40 +0200)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Thu, 28 May 2009 16:18:33 +0000
(18:18 +0200)
This will test the automatic aperture enlargement code. This is
important because only very few devices will ever trigger this code
path. So force it under CONFIG_IOMMU_STRESS.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/amd_iommu.c
b/arch/x86/kernel/amd_iommu.c
index 33434c497a6a014c6f568be6f91179778d9ab92b..04ff5ec4ac0ed7f897111e876a0593556fdfcb2e 100644
(file)
--- 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;