Re: [PATCH 14/15] ppc64 iommu: use coherent_dma_mask for alloc_coherent

2010-11-30 Thread Nishanth Aravamudan
On 29.11.2010 [11:58:16 +1100], Benjamin Herrenschmidt wrote: > On Wed, 2010-09-15 at 11:05 -0700, Nishanth Aravamudan wrote: > > 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

Re: [PATCH 14/15] ppc64 iommu: use coherent_dma_mask for alloc_coherent

2010-11-28 Thread Benjamin Herrenschmidt
On Wed, 2010-09-15 at 11:05 -0700, Nishanth Aravamudan wrote: > 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. Won't that break macio devices too ? afaik, they don't set coh

[PATCH 14/15] ppc64 iommu: use coherent_dma_mask for alloc_coherent

2010-09-15 Thread Nishanth Aravamudan
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. Signed-off-by: Milton Miller Signed-off-by: Nishanth Aravamudan --- We currently don't check the mask other than to warn when it