[PATCH] powerpc: node-aware dma allocations
authorChristoph Hellwig <hch@lst.de>
Tue, 6 Jun 2006 14:11:35 +0000 (16:11 +0200)
committerPaul Mackerras <paulus@samba.org>
Fri, 9 Jun 2006 11:24:01 +0000 (21:24 +1000)
commit8eb6c6e3b9c8bfed3d75536ab142d7694627c2e5
tree7dd9c4146f60e88ca1fc8ebe976e1b7a3ae6ea2c
parent318facbee05417fb432603a8309a10cdb942a87b
[PATCH] powerpc: node-aware dma allocations

Make sure dma_alloc_coherent allocates memory from the local node.  This
is important on Cell where we avoid going through the slow cpu
interconnect.

Note:  I could only test this patch on Cell, it should be verified on
some pseries machine by those that have the hardware.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/iommu.c
arch/powerpc/kernel/pci_iommu.c
arch/powerpc/kernel/vio.c
include/asm-powerpc/iommu.h