Re: [PATCH 1/3] iommu: Add fast hook for getting DMA domains

2018-08-17 Thread Laurentiu Tudor
Hi Robin, On 14.08.2018 16:04, Robin Murphy wrote: > While iommu_get_domain_for_dev() is the robust way for arbitrary IOMMU > API callers to retrieve the domain pointer, for DMA ops domains it > doesn't scale well for large systems and multi-queue devices, since the > momentary refcount adjustment

Re: [PATCH 1/3] iommu: Add fast hook for getting DMA domains

2018-08-17 Thread Robin Murphy
On 17/08/18 10:36, John Garry wrote: On 14/08/2018 14:04, Robin Murphy wrote: While iommu_get_domain_for_dev() is the robust way for arbitrary IOMMU API callers to retrieve the domain pointer, for DMA ops domains it doesn't scale well for large systems and multi-queue devices, since the momentar

Re: [PATCH 1/3] iommu: Add fast hook for getting DMA domains

2018-08-17 Thread John Garry
On 14/08/2018 14:04, Robin Murphy wrote: While iommu_get_domain_for_dev() is the robust way for arbitrary IOMMU API callers to retrieve the domain pointer, for DMA ops domains it doesn't scale well for large systems and multi-queue devices, since the momentary refcount adjustment will lead to exc

[PATCH 1/3] iommu: Add fast hook for getting DMA domains

2018-08-14 Thread Robin Murphy
While iommu_get_domain_for_dev() is the robust way for arbitrary IOMMU API callers to retrieve the domain pointer, for DMA ops domains it doesn't scale well for large systems and multi-queue devices, since the momentary refcount adjustment will lead to exclusive cacheline contention when multiple C