Re: [PATCH] qlogicpti: Fix compiler warnings

2016-11-23 Thread tndave
On 11/23/2016 05:25 PM, David Miller wrote: From: tndave Date: Wed, 23 Nov 2016 17:08:23 -0800 As per my understanding, I think, all DMA map/unmap go through ATU (iommu) in sun4v sparc. To guarantee that driver doesn't get DMA address beyond its addressable range , driver must set dma mask b

Re: [PATCH] qlogicpti: Fix compiler warnings

2016-11-23 Thread David Miller
From: tndave Date: Wed, 23 Nov 2016 17:08:23 -0800 > As per my understanding, I think, all DMA map/unmap go through > ATU (iommu) in sun4v sparc. To guarantee that driver doesn't get DMA > address beyond its addressable range , driver must set dma mask before > requesting any DMA mapping! > > I

Re: [PATCH] qlogicpti: Fix compiler warnings

2016-11-23 Thread David Miller
From: James Bottomley Date: Wed, 23 Nov 2016 14:57:39 -0800 > What's the guarantee, since the device descriptors only cope with 32 > bits of physical address, that this driver never gets any dma address > beyond its addressable range? Is it that the sbus can never be > attached to this ATU type

Re: [PATCH] qlogicpti: Fix compiler warnings

2016-11-23 Thread tndave
On 11/23/2016 02:57 PM, James Bottomley wrote: On Wed, 2016-11-23 at 13:29 -0800, Tushar Dave wrote: qlogicpti uses '__u32' for dma handle while invoking kernel DMA APIs, instead of using dma_addr_t. This hasn't caused any 'incompatible pointer type' warning on SPARC because until now dma_addr

Re: [PATCH] qlogicpti: Fix compiler warnings

2016-11-23 Thread James Bottomley
On Wed, 2016-11-23 at 13:29 -0800, Tushar Dave wrote: > qlogicpti uses '__u32' for dma handle while invoking kernel DMA APIs, > instead of using dma_addr_t. This hasn't caused any 'incompatible > pointer type' warning on SPARC because until now dma_addr_t is of > type u32. However, recent changes i

[PATCH] qlogicpti: Fix compiler warnings

2016-11-23 Thread Tushar Dave
qlogicpti uses '__u32' for dma handle while invoking kernel DMA APIs, instead of using dma_addr_t. This hasn't caused any 'incompatible pointer type' warning on SPARC because until now dma_addr_t is of type u32. However, recent changes in SPARC ATU (iommu) enabled 64bit DMA and therefore dma_addr_t