[PATCH 06/25] MIPS: loongson: remove loongson_dma_supported

2018-05-25 Thread Christoph Hellwig
swiotlb_dma_supported will always return true for the a mask large enough to be covered by wired up physical address, so this function is pointless. Signed-off-by: Christoph Hellwig --- arch/mips/loongson64/common/dma-swiotlb.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff

[PATCH 06/25] MIPS: loongson: remove loongson_dma_supported

2018-06-15 Thread Christoph Hellwig
swiotlb_dma_supported will always return true for a mask large enough to cover the DMA addresses for all physical memory, which is the right thing to do for swiotlb based dma ops. This function returned false if the mask was bigger than a firmware set dma_mask_bits that apparently can be either 32

Re: [PATCH 06/25] MIPS: loongson: remove loongson_dma_supported

2018-05-31 Thread Paul Burton
Hi Christoph, On Fri, May 25, 2018 at 11:20:52AM +0200, Christoph Hellwig wrote: > swiotlb_dma_supported will always return true for the a mask > large enough to be covered by wired up physical address, so this > function is pointless. Shouldn't this be "large enough to cover all wired up physica