kernel_optimize_test/include
Muli Ben-Yehuda 17a941d854 [PATCH] x86_64: Use function pointers to call DMA mapping functions
AK: I hacked Muli's original patch a lot and there were a lot
of changes - all bugs are probably to blame on me now.
There were also some changes in the fall back behaviour
for swiotlb - in particular it doesn't try to use GFP_DMA
now anymore. Also all DMA mapping operations use the
same core dma_alloc_coherent code with proper fallbacks now.
And various other changes and cleanups.

Known problems: iommu=force swiotlb=force together breaks
                needs more testing.

This patch cleans up x86_64's DMA mapping dispatching code. Right now
we have three possible IOMMU types: AGP GART, swiotlb and nommu, and
in the future we will also have Xen's x86_64 swiotlb and other HW
IOMMUs for x86_64. In order to support all of them cleanly, this
patch:

- introduces a struct dma_mapping_ops with function pointers for each
  of the DMA mapping operations of gart (AMD HW IOMMU), swiotlb
  (software IOMMU) and nommu (no IOMMU).

- gets rid of:

  if (swiotlb)
      return swiotlb_xxx();

- PCI_DMA_BUS_IS_PHYS is now checked against the dma_ops being set
This makes swiotlb faster by avoiding double copying in some cases.

Signed-Off-By: Muli Ben-Yehuda <mulix@mulix.org>
Signed-Off-By: Jon D. Mason <jdmason@us.ibm.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-11 19:04:55 -08:00
..
acpi [ACPI] increase owner_id limit to 64 from 32 2005-12-21 04:52:16 -05:00
asm-alpha [PATCH] mutex subsystem, add default include/asm-*/mutex.h files 2006-01-09 15:59:19 -08:00
asm-arm [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-arm26 [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-cris [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-frv [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-generic Fix mutex_trylock() copy-and-paste bug (x86, x86-64, generic mutex-dec.h) 2006-01-11 15:50:47 -08:00
asm-h8300 [PATCH] include/asm-h8300/page.h: remove unused KTHREAD_SIZE #define 2006-01-11 18:42:09 -08:00
asm-i386 [PATCH] i386: Handle missing local APIC timer interrupts on C3 state 2006-01-11 19:04:54 -08:00
asm-ia64 [PATCH] kprobes: fix build breakage 2006-01-10 08:01:40 -08:00
asm-m32r [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-m68k [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-m68knommu [PATCH] m68knommu: save reg a5 on context change 2006-01-10 09:31:27 -08:00
asm-mips MIPS: R2: Try to bulletproof instruction_hazard against miss-compilation. 2006-01-10 13:39:08 +00:00
asm-parisc [PARISC] Use C99 initializers in asm-parisc/processor.h 2006-01-10 21:52:45 -05:00
asm-powerpc Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc-merge 2006-01-11 08:16:57 -08:00
asm-ppc [PATCH] powerpc: pci_address_to_pio fix 2006-01-09 15:05:56 +11:00
asm-s390 [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-sh [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-sh64 [PATCH] include/asm-sh64/: "extern inline" -> "static inline" 2006-01-10 08:02:02 -08:00
asm-sparc [PATCH] mutex subsystem, add default include/asm-*/mutex.h files 2006-01-09 15:59:19 -08:00
asm-sparc64 [PATCH] kprobes: fix build breakage 2006-01-10 08:01:40 -08:00
asm-um [PATCH] dump_thread() cleanup 2006-01-10 08:01:25 -08:00
asm-v850 [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
asm-x86_64 [PATCH] x86_64: Use function pointers to call DMA mapping functions 2006-01-11 19:04:55 -08:00
asm-xtensa [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
keys [PATCH] Keys: Remove key duplication 2006-01-06 08:33:29 -08:00
linux [PATCH] x86_64: Handle unknown node (-1) in alloc_pages_node 2006-01-11 19:04:51 -08:00
math-emu
media V4L/DVB (3325): WSS output interface for av7110 2006-01-09 18:21:37 -02:00
mtd [MTD] user-abi: Clean up trailing white spaces 2005-11-07 14:43:11 +01:00
net [INET]: congestion and af_ops can be const 2006-01-10 12:54:26 -08:00
pcmcia [PATCH] pcmcia: unify attach, EVENT_CARD_INSERTION handlers into one probe callback 2006-01-06 00:03:24 +01:00
rdma [IB] uverbs: have kernel return QP capabilities 2005-11-10 10:22:50 -08:00
rxrpc
scsi Merge branch 'post-2.6.15' of git://brick.kernel.dk/data/git/linux-2.6-block 2006-01-06 09:01:25 -08:00
sound [PATCH] DocBook: fix kernel-doc comments 2006-01-10 08:01:53 -08:00
video [PATCH] include/video/newport.h: "extern inline" -> "static inline" 2006-01-10 08:01:50 -08:00