]> err.no Git - linux-2.6/commit
[POWERPC] Avoid DMA exception when using axon_msi with IOMMU
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 25 Jan 2008 05:59:14 +0000 (16:59 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 6 Feb 2008 05:30:00 +0000 (16:30 +1100)
commitde4c928b843063b7079c35c950c1d38c559fa0cb
tree59c3f70d0047bef6c68bc7d514175c9d6378ec2c
parente4347dfb580e0172185cb38529266ecf3b4d0baa
[POWERPC] Avoid DMA exception when using axon_msi with IOMMU

There's a brown-paper-bag bug in axon_msi, we pass the address of our
FIFO directly to the hardware, without DMA mapping it.  This leads to
DMA exceptions if you enable MSI & the IOMMU.

The fix is to correctly DMA map the fifo, dma_alloc_coherent() does
what we want - and we need to track the virt & phys addresses.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/axon_msi.c