powerpc: Swiotlb breaks pseries
authorMichael Ellerman <michael@ellerman.id.au>
Mon, 22 Jun 2009 23:13:48 +0000 (23:13 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 26 Jun 2009 04:37:22 +0000 (14:37 +1000)
commit6f0b1c6094b3e8eeeb13f8f16c1b2ef452a6f519
tree37c076363e30101b9c84babce595cfe7956104a7
parent987fed3bf6982f2627d4fa242caa9026ef61132a
powerpc: Swiotlb breaks pseries

Turning on SWIOTLB selects or enables PPC_NEED_DMA_SYNC_OPS, which means
we get the non empty versions of dma_sync_* in asm/dma-mapping.h

On my pseries machine the dma_ops have no such routines and we die with
a null pointer - this patch gets it booting, is there a more elegant way
to do it?

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/dma-mapping.h