Re: [RFC PATCH 4/5] arm64: add IOMMU dma_ops

2015-01-27 Thread Robin Murphy
Hi Joseph, Thanks for giving it a spin, On 26/01/15 03:25, Joseph Lo wrote: On 01/13/2015 04:48 AM, Robin Murphy wrote: Taking some inspiration from the arch/arm code, implement the arch-specific side of the DMA mapping ops using the new IOMMU-DMA layer. Signed-off-by: Robin Murphy

Re: [RFC PATCH 4/5] arm64: add IOMMU dma_ops

2015-01-27 Thread Joseph Lo
Hi Robin Sorry for separate the comments into many replies. On 01/13/2015 04:48 AM, Robin Murphy wrote: Taking some inspiration from the arch/arm code, implement the arch-specific side of the DMA mapping ops using the new IOMMU-DMA layer. Signed-off-by: Robin Murphy robin.mur...@arm.com ---

Re: [RFC PATCH 4/5] arm64: add IOMMU dma_ops

2015-01-26 Thread Joseph Lo
On 01/13/2015 04:48 AM, Robin Murphy wrote: Taking some inspiration from the arch/arm code, implement the arch-specific side of the DMA mapping ops using the new IOMMU-DMA layer. Signed-off-by: Robin Murphy robin.mur...@arm.com --- [snip] static inline phys_addr_t dma_to_phys(struct device

Re: [RFC PATCH 4/5] arm64: add IOMMU dma_ops

2015-01-25 Thread Joseph Lo
On 01/13/2015 04:48 AM, Robin Murphy wrote: Taking some inspiration from the arch/arm code, implement the arch-specific side of the DMA mapping ops using the new IOMMU-DMA layer. Signed-off-by: Robin Murphy robin.mur...@arm.com --- arch/arm64/include/asm/device.h | 3 +

Re: [RFC PATCH 4/5] arm64: add IOMMU dma_ops

2015-01-23 Thread Robin Murphy
Hi Will, Thanks for taking a look On 23/01/15 15:26, Will Deacon wrote: On Mon, Jan 12, 2015 at 08:48:56PM +, Robin Murphy wrote: Taking some inspiration from the arch/arm code, implement the arch-specific side of the DMA mapping ops using the new IOMMU-DMA layer. Signed-off-by: Robin

Re: [RFC PATCH 4/5] arm64: add IOMMU dma_ops

2015-01-23 Thread Will Deacon
On Mon, Jan 12, 2015 at 08:48:56PM +, Robin Murphy wrote: Taking some inspiration from the arch/arm code, implement the arch-specific side of the DMA mapping ops using the new IOMMU-DMA layer. Signed-off-by: Robin Murphy robin.mur...@arm.com --- arch/arm64/include/asm/device.h |

[RFC PATCH 4/5] arm64: add IOMMU dma_ops

2015-01-12 Thread Robin Murphy
Taking some inspiration from the arch/arm code, implement the arch-specific side of the DMA mapping ops using the new IOMMU-DMA layer. Signed-off-by: Robin Murphy robin.mur...@arm.com --- arch/arm64/include/asm/device.h | 3 + arch/arm64/include/asm/dma-mapping.h | 12 ++