Re: [PATCH v3 2/4] iommu: Implement common IOMMU ops for DMA mapping

2015-07-15 Thread Robin Murphy
Hi Catalin, Thanks for the review. On 14/07/15 18:16, Catalin Marinas wrote: On Fri, Jul 10, 2015 at 08:19:33PM +0100, Robin Murphy wrote: +/* + * IOVAs are IOMMU _input_ addresses, so there still exists the possibility + * for static bus translation between device output and IOMMU input (yuck

Re: [PATCH v3 2/4] iommu: Implement common IOMMU ops for DMA mapping

2015-07-14 Thread Catalin Marinas
On Fri, Jul 10, 2015 at 08:19:33PM +0100, Robin Murphy wrote: > +/* > + * IOVAs are IOMMU _input_ addresses, so there still exists the possibility > + * for static bus translation between device output and IOMMU input (yuck). > + */ > +static inline dma_addr_t dev_dma_addr(struct device *dev, dma_a

Re: [PATCH v3 2/4] iommu: Implement common IOMMU ops for DMA mapping

2015-07-13 Thread Yong Wu
On Fri, 2015-07-10 at 20:19 +0100, Robin Murphy wrote: > Taking inspiration from the existing arch/arm code, break out some > generic functions to interface the DMA-API to the IOMMU-API. This will > do the bulk of the heavy lifting for IOMMU-backed dma-mapping. > > Signed-off-by: Robin Murphy > -

[PATCH v3 2/4] iommu: Implement common IOMMU ops for DMA mapping

2015-07-10 Thread Robin Murphy
Taking inspiration from the existing arch/arm code, break out some generic functions to interface the DMA-API to the IOMMU-API. This will do the bulk of the heavy lifting for IOMMU-backed dma-mapping. Signed-off-by: Robin Murphy --- drivers/iommu/Kconfig | 7 + drivers/iommu/Makefile|