diff options
author | Muli Ben-Yehuda <muli@il.ibm.com> | 2006-08-02 22:37:31 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-08-02 20:19:54 -0700 |
commit | a166222cde740b34d97fe49dca70348197f4534e (patch) | |
tree | 8caa6970e98ebef60b35ab2b4e3f6829efd464fe /arch | |
parent | 2699500b31f41fc25656c42548c8a388c8a329fe (diff) | |
download | kernel_samsung_espresso10-a166222cde740b34d97fe49dca70348197f4534e.zip kernel_samsung_espresso10-a166222cde740b34d97fe49dca70348197f4534e.tar.gz kernel_samsung_espresso10-a166222cde740b34d97fe49dca70348197f4534e.tar.bz2 |
[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')
-rw-r--r-- | arch/x86_64/kernel/pci-nommu.c | 2 |
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; } |