diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2009-05-22 06:44:03 -0400 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2009-05-28 11:56:57 -0400 |
commit | 2e8b569614b89c9b1b85cba37db36daeeeff744e (patch) | |
tree | 232e63176fe4c5020678f6a0dad36213f02babef /arch/x86/kernel/amd_iommu_init.c | |
parent | 2be69c79e9a46a554fc3ff57d886e65e7a73eb72 (diff) |
amd-iommu: disable device isolation with CONFIG_IOMMU_STRESS
With device isolation disabled we can test better for race conditions in
dma_ops related code.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/kernel/amd_iommu_init.c')
-rw-r--r-- | arch/x86/kernel/amd_iommu_init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/amd_iommu_init.c b/arch/x86/kernel/amd_iommu_init.c index b90a78cfdcb8..66941129e9c7 100644 --- a/arch/x86/kernel/amd_iommu_init.c +++ b/arch/x86/kernel/amd_iommu_init.c | |||
@@ -124,8 +124,14 @@ u16 amd_iommu_last_bdf; /* largest PCI device id we have | |||
124 | LIST_HEAD(amd_iommu_unity_map); /* a list of required unity mappings | 124 | LIST_HEAD(amd_iommu_unity_map); /* a list of required unity mappings |
125 | we find in ACPI */ | 125 | we find in ACPI */ |
126 | unsigned amd_iommu_aperture_order = 26; /* size of aperture in power of 2 */ | 126 | unsigned amd_iommu_aperture_order = 26; /* size of aperture in power of 2 */ |
127 | |||
128 | #ifdef CONFIG_IOMMU_STRESS | ||
129 | bool amd_iommu_isolate = false; | ||
130 | #else | ||
127 | bool amd_iommu_isolate = true; /* if true, device isolation is | 131 | bool amd_iommu_isolate = true; /* if true, device isolation is |
128 | enabled */ | 132 | enabled */ |
133 | #endif | ||
134 | |||
129 | bool amd_iommu_unmap_flush; /* if true, flush on every unmap */ | 135 | bool amd_iommu_unmap_flush; /* if true, flush on every unmap */ |
130 | 136 | ||
131 | LIST_HEAD(amd_iommu_list); /* list of all AMD IOMMUs in the | 137 | LIST_HEAD(amd_iommu_list); /* list of all AMD IOMMUs in the |