projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe16f08
)
amd-iommu: don't preallocate page tables with CONFIG_IOMMU_STRESS
author
Joerg Roedel
<joerg.roedel@amd.com>
Fri, 22 May 2009 10:31:53 +0000
(12:31 +0200)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Thu, 28 May 2009 16:18:08 +0000
(18:18 +0200)
This forces testing of on-demand page table allocation code.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/amd_iommu.c
b/arch/x86/kernel/amd_iommu.c
index 543822b39a846181f876a13cbfd4e6542b1e5d35..33434c497a6a014c6f568be6f91179778d9ab92b 100644
(file)
--- a/
arch/x86/kernel/amd_iommu.c
+++ b/
arch/x86/kernel/amd_iommu.c
@@
-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;