Re: [RFC PATCH] powerpc/powernv: Fix dma_ops for bypass window

2014-09-24 Thread Gavin Shan
On Thu, Sep 25, 2014 at 02:14:20PM +1000, Gavin Shan wrote: Please ignore this. I was told by Ben some drivers don't call set_dev_mask(). So I have to fix it in another way. Thanks, Gavin >When using bypass window on IODA2, the incorrect DMA operations >"dma_iommu_ops" is used by devices. The de

[RFC PATCH] powerpc/powernv: Fix dma_ops for bypass window

2014-09-24 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 bypass DMA window. Unfortunately, the returned DMA mask always forces the driver to use 32-bits DMA window. The problem w