Re: [PATCH v3 3/4] arm64: Add IOMMU dma_ops

2015-07-15 Thread Catalin Marinas
On Fri, Jul 10, 2015 at 08:19:34PM +0100, Robin Murphy wrote: diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c index d16a1ce..ccadfd4 100644 --- a/arch/arm64/mm/dma-mapping.c +++ b/arch/arm64/mm/dma-mapping.c @@ -526,3 +526,426 @@ static int __init

Re: [PATCH v3 3/4] arm64: Add IOMMU dma_ops

2015-07-15 Thread Catalin Marinas
On Wed, Jul 15, 2015 at 05:27:22PM +0100, Robin Murphy wrote: On 15/07/15 10:31, Catalin Marinas wrote: On Fri, Jul 10, 2015 at 08:19:34PM +0100, Robin Murphy wrote: + if (iommu_dma_mapping_error(dev, *handle)) { + if (coherent) +

Re: [RFC 0/6] vSMMU initialization

2015-07-15 Thread Will Deacon
On Wed, Jul 15, 2015 at 06:28:54PM +0100, Varun Sethi wrote: On Fri, Jun 12, 2015 at 03:20:04PM +0100, Baptiste Reynal wrote: The ARM SMMU has support for 2-stages address translations, allowing a virtual address to be translated at two levels: - Stage 1 translates a virtual

RE: [RFC 0/6] vSMMU initialization

2015-07-15 Thread Varun Sethi
Hi Will, -Original Message- From: Will Deacon [mailto:will.dea...@arm.com] Sent: Tuesday, July 14, 2015 4:34 PM To: Sethi Varun-B16395 Cc: Baptiste Reynal; iommu@lists.linux-foundation.org; t...@virtualopensystems.com; qemu-de...@nongnu.org Subject: Re: [RFC 0/6] vSMMU

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

Re: [RFC 0/6] vSMMU initialization

2015-07-15 Thread Baptiste Reynal
On Tue, Jul 14, 2015 at 1:04 PM, Will Deacon will.dea...@arm.com wrote: On Tue, Jul 14, 2015 at 03:21:03AM +0100, Varun Sethi wrote: Hi Will, Hi Varun, On Fri, Jun 12, 2015 at 03:20:04PM +0100, Baptiste Reynal wrote: The ARM SMMU has support for 2-stages address translations, allowing a

Re: [RFC 0/6] vSMMU initialization

2015-07-15 Thread Will Deacon
On Wed, Jul 15, 2015 at 02:38:15PM +0100, Baptiste Reynal wrote: On Tue, Jul 14, 2015 at 1:04 PM, Will Deacon will.dea...@arm.com wrote: I think SMMUv3 is *far* more amenable to the vSMMU approach, largely because it moves many of the data structures into memory, but also because it has

Re: [PATCH v3 3/4] arm64: Add IOMMU dma_ops

2015-07-15 Thread Robin Murphy
On 15/07/15 10:31, Catalin Marinas wrote: On Fri, Jul 10, 2015 at 08:19:34PM +0100, Robin Murphy wrote: diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c index d16a1ce..ccadfd4 100644 --- a/arch/arm64/mm/dma-mapping.c +++ b/arch/arm64/mm/dma-mapping.c @@ -526,3 +526,426 @@

RE: [RFC 0/6] vSMMU initialization

2015-07-15 Thread Varun Sethi
Hi Baptiste, -Original Message- From: Baptiste Reynal [mailto:b.rey...@virtualopensystems.com] Sent: Wednesday, July 15, 2015 7:08 PM To: Will Deacon Cc: Sethi Varun-B16395; iommu@lists.linux-foundation.org; t...@virtualopensystems.com; qemu-de...@nongnu.org Subject: Re: [RFC 0/6]