]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/iommu: Use coherent_dma_mask for alloc_coherent
authorNishanth Aravamudan <nacc@us.ibm.com>
Mon, 18 Oct 2010 07:27:04 +0000 (07:27 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 9 Dec 2010 04:17:50 +0000 (15:17 +1100)
commitb3c73856ae47d43d0d181f9de1c1c6c0820c4515
treee7528ed3ed14b57f5861edb528c86adb1c66c393
parent56d8adc5695a8d3f070c8498d532389580af5611
powerpc/iommu: Use coherent_dma_mask for alloc_coherent

The IOMMU code has been passing the dma-mask instead of the
coherent_dma_mask to the iommu allocator.  Coherent allocations should
be made using the coherent_dma_mask.

Also update the vio code to ensure the coherent_dma_mask is set. Without
this change drivers, such as ibmvscsi, fail to load with the corrected
dma_iommu_alloc_coherent().

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/dma-iommu.c
arch/powerpc/kernel/vio.c