summaryrefslogtreecommitdiffstats
path: root/arch/x86_64
diff options
context:
space:
mode:
authorMuli Ben-Yehuda <muli@il.ibm.com>2006-08-02 22:37:31 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-08-02 20:19:54 -0700
commita166222cde740b34d97fe49dca70348197f4534e (patch)
tree8caa6970e98ebef60b35ab2b4e3f6829efd464fe /arch/x86_64
parent2699500b31f41fc25656c42548c8a388c8a329fe (diff)
downloadop-kernel-dev-a166222cde740b34d97fe49dca70348197f4534e.zip
op-kernel-dev-a166222cde740b34d97fe49dca70348197f4534e.tar.gz
[PATCH] x86_64: Fix CONFIG_IOMMU_DEBUG
If CONFIG_IOMMU_DEBUG is set force_iommu defaults to 1. In the case where no HW IOMMU is present in the machine and we end up using nommu, leaving force_iommu set to 1 causes dma_alloc_coherent to do the wrong thing. Therefore, if we end up using nommu, make sure force_iommu is 0. Signed-off-by: Muli Ben-Yehuda <muli@il.ibm.com> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/kernel/pci-nommu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/pci-nommu.c b/arch/x86_64/kernel/pci-nommu.c
index c4c3cc3..aad7609 100644
--- a/arch/x86_64/kernel/pci-nommu.c
+++ b/arch/x86_64/kernel/pci-nommu.c
@@ -92,5 +92,7 @@ void __init no_iommu_init(void)
{
if (dma_ops)
return;
+
+ force_iommu = 0; /* no HW IOMMU */
dma_ops = &nommu_dma_ops;
}
OpenPOWER on IntegriCloud