summaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-10-28 01:28:39 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2005-10-28 01:28:39 +0200
commit79b95a454bb5c1d9b7287d1016a70885ba3f346c (patch)
tree86f9de05a5915d5c9f89ecf661f7600cd875cd2d /include/asm-x86_64
parent[PATCH] Yet more posix-cpu-timer fixes (diff)
downloadlinux-79b95a454bb5c1d9b7287d1016a70885ba3f346c.tar.xz
linux-79b95a454bb5c1d9b7287d1016a70885ba3f346c.zip
Revert "x86-64: Avoid unnecessary double bouncing for swiotlb"
Commit id 6142891a0c0209c91aa4a98f725de0d6e2ed4918 Andi Kleen reports that it seems to break things for some people, and since it's purely a small optimization, revert it for now. Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-x86_64')
-rw-r--r--include/asm-x86_64/pci.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-x86_64/pci.h b/include/asm-x86_64/pci.h
index 5a82a6762c21..eeb3088a1c9e 100644
--- a/include/asm-x86_64/pci.h
+++ b/include/asm-x86_64/pci.h
@@ -50,10 +50,10 @@ extern int iommu_setup(char *opt);
* address space. The networking and block device layers use
* this boolean for bounce buffer decisions
*
- * On x86-64 it mostly equals, but we set it to zero to tell some subsystems
- * that an hard or soft IOMMU is available.
+ * On AMD64 it mostly equals, but we set it to zero to tell some subsystems
+ * that an IOMMU is available.
*/
-#define PCI_DMA_BUS_IS_PHYS 0
+#define PCI_DMA_BUS_IS_PHYS (no_iommu ? 1 : 0)
/*
* x86-64 always supports DAC, but sometimes it is useful to force