From: Michael Ellerman Date: Fri, 25 Jan 2008 05:59:14 +0000 (+1100) Subject: [POWERPC] Avoid DMA exception when using axon_msi with IOMMU X-Git-Tag: v2.6.25-rc1~303^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de4c928b843063b7079c35c950c1d38c559fa0cb;p=pandora-kernel.git [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 Acked-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed