[PATCH v2] powerpc/powernv: Override dma_get_required_mask()

2014-09-25 Thread Gavin Shan
When using bypass window on IODA2, the incorrect DMA operations dma_iommu_ops is used by devices. The device driver calls dma_get_required_mask() to determine using 32-bits or 64-bits bypass DMA window. Unfortunately, the returned DMA mask always forces the driver to use 32-bits DMA window. The

Re: [PATCH v2] powerpc/powernv: Override dma_get_required_mask()

2014-09-25 Thread Benjamin Herrenschmidt
On Thu, 2014-09-25 at 17:24 +1000, Gavin Shan wrote: When using bypass window on IODA2, the incorrect DMA operations dma_iommu_ops is used by devices. The device driver calls dma_get_required_mask() to determine using 32-bits or 64-bits bypass DMA window. Unfortunately, the returned DMA mask

Re: [PATCH v2] powerpc/powernv: Override dma_get_required_mask()

2014-09-25 Thread Gavin Shan
On Fri, Sep 26, 2014 at 07:51:56AM +1000, Benjamin Herrenschmidt wrote: On Thu, 2014-09-25 at 17:24 +1000, Gavin Shan wrote: When using bypass window on IODA2, the incorrect DMA operations dma_iommu_ops is used by devices. The device driver calls dma_get_required_mask() to determine using