Re: [PATCH v2 2/3] iommu/dma: Use fast DMA domain lookup

2018-09-28 Thread Marek Szyprowski
Hi Robin, On 2018-09-28 17:31, Robin Murphy wrote: > On 28/09/18 15:21, Marek Szyprowski wrote: >> On 2018-09-28 15:52, Robin Murphy wrote: >>> On 28/09/18 14:26, Marek Szyprowski wrote: On 2018-09-12 17:24, Robin Murphy wrote: > Most parts of iommu-dma already assume they are operating

Re: [PATCH v2 2/3] iommu/dma: Use fast DMA domain lookup

2018-09-28 Thread Robin Murphy
On 28/09/18 16:33, Christoph Hellwig wrote: On Fri, Sep 28, 2018 at 04:31:10PM +0100, Robin Murphy wrote: The tricky part is how to reconcile that with those other drivers which want to do explicit IOMMU management with their own domain but still use the DMA API for coherency of the underlying

Re: [PATCH v2 2/3] iommu/dma: Use fast DMA domain lookup

2018-09-28 Thread Christoph Hellwig
On Fri, Sep 28, 2018 at 04:31:10PM +0100, Robin Murphy wrote: > The tricky part is how to reconcile that with those other drivers which > want to do explicit IOMMU management with their own domain but still use > the DMA API for coherency of the underlying memory. I do have a couple of >

Re: [PATCH v2 2/3] iommu/dma: Use fast DMA domain lookup

2018-09-28 Thread Robin Murphy
On 28/09/18 15:21, Marek Szyprowski wrote: Hi Robin, On 2018-09-28 15:52, Robin Murphy wrote: On 28/09/18 14:26, Marek Szyprowski wrote: On 2018-09-12 17:24, Robin Murphy wrote: Most parts of iommu-dma already assume they are operating on a default domain set up by iommu_dma_init_domain(),

Re: [PATCH v2 2/3] iommu/dma: Use fast DMA domain lookup

2018-09-28 Thread Marek Szyprowski
Hi Robin, On 2018-09-28 15:52, Robin Murphy wrote: > On 28/09/18 14:26, Marek Szyprowski wrote: >> On 2018-09-12 17:24, Robin Murphy wrote: >>> Most parts of iommu-dma already assume they are operating on a default >>> domain set up by iommu_dma_init_domain(), and can be converted straight >>>

Re: [PATCH v2 2/3] iommu/dma: Use fast DMA domain lookup

2018-09-28 Thread Robin Murphy
On 28/09/18 14:26, Marek Szyprowski wrote: Hi All, On 2018-09-12 17:24, Robin Murphy wrote: Most parts of iommu-dma already assume they are operating on a default domain set up by iommu_dma_init_domain(), and can be converted straight over to avoid the refcounting bottleneck. MSI page mappings

Re: [PATCH v2 2/3] iommu/dma: Use fast DMA domain lookup

2018-09-28 Thread Marek Szyprowski
Hi All, On 2018-09-12 17:24, Robin Murphy wrote: > Most parts of iommu-dma already assume they are operating on a default > domain set up by iommu_dma_init_domain(), and can be converted straight > over to avoid the refcounting bottleneck. MSI page mappings may be in > an unmanaged domain with an

[PATCH v2 2/3] iommu/dma: Use fast DMA domain lookup

2018-09-12 Thread Robin Murphy
Most parts of iommu-dma already assume they are operating on a default domain set up by iommu_dma_init_domain(), and can be converted straight over to avoid the refcounting bottleneck. MSI page mappings may be in an unmanaged domain with an explicit MSI-only cookie, so retain the non-specific