[PATCH] iommu/dma: Map scatterlists more parsimoniously

2015-11-11 Thread Robin Murphy
Whilst blindly assuming the worst case for segment boundaries and aligning every segment individually is safe from the point of view of respecting the device's parameters, it is also undeniably a waste of IOVA space. Futhermore, the knock-on effects of more pages than necessary being exposed to

Re: [PATCH 06/16] cris: convert to dma_map_ops

2015-11-11 Thread Jesper Nilsson
On Mon, Nov 09, 2015 at 07:17:11PM +0100, Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig Looks good for CRIS, Acked-by: Jesper Nilsson /^JN - Jesper Nilsson -- Jesper Nilsson -- jesper.nils...@axis.com

Re: [PATCH] iommu/dma: Map scatterlists more parsimoniously

2015-11-11 Thread Yong Wu
On Wed, 2015-11-11 at 14:54 +, Robin Murphy wrote: > Whilst blindly assuming the worst case for segment boundaries and > aligning every segment individually is safe from the point of view > of respecting the device's parameters, it is also undeniably a waste > of IOVA space. Futhermore, the