Re: [PATCH v2] iommu/dma: Respect IOMMU aperture when allocating

2016-08-10 Thread Joerg Roedel
On Tue, Aug 09, 2016 at 05:31:35PM +0100, Robin Murphy wrote: > Where a device driver has set a 64-bit DMA mask to indicate the absence > of addressing limitations, we still need to ensure that we don't > allocate IOVAs beyond the actual input size of the IOMMU. The reported > aperture is the most

[PATCH v2] iommu/dma: Respect IOMMU aperture when allocating

2016-08-09 Thread Robin Murphy
Where a device driver has set a 64-bit DMA mask to indicate the absence of addressing limitations, we still need to ensure that we don't allocate IOVAs beyond the actual input size of the IOMMU. The reported aperture is the most reliable way we have of inferring that input address size, so use that