Re: [PATCH] arm64/dma-mapping: Add DMA_ATTR_ALLOC_SINGLE_PAGES support

2016-03-24 Thread Doug Anderson
Hi, On Thu, Mar 24, 2016 at 4:50 AM, Will Deacon wrote: >> > I have a slight snag with this, in that you don't consult the IOMMU >> > pgsize_bitmap at any point, and assume that it can map pages at the >> > same granularity as the CPU. The documentation for >> > DMA_ATTR_ALLOC_SINGLE_PAGES seems

Re: [PATCH] arm64/dma-mapping: Add DMA_ATTR_ALLOC_SINGLE_PAGES support

2016-03-24 Thread Will Deacon
Hi Doug, On Tue, Mar 22, 2016 at 10:37:14AM -0700, Doug Anderson wrote: > On Mon, Mar 21, 2016 at 11:01 AM, Will Deacon wrote: > > On Thu, Mar 03, 2016 at 02:54:26AM +0800, Yong Wu wrote: > >> Sometimes it is not worth for the iommu allocating big chunks. > >> Here we enable DMA_ATTR_ALLOC_SINGLE

Re: [PATCH] arm64/dma-mapping: Add DMA_ATTR_ALLOC_SINGLE_PAGES support

2016-03-22 Thread Doug Anderson
Will, On Mon, Mar 21, 2016 at 11:01 AM, Will Deacon wrote: > On Thu, Mar 03, 2016 at 02:54:26AM +0800, Yong Wu wrote: >> Sometimes it is not worth for the iommu allocating big chunks. >> Here we enable DMA_ATTR_ALLOC_SINGLE_PAGES which could help avoid to >> allocate big chunks while iommu alloca

Re: [PATCH] arm64/dma-mapping: Add DMA_ATTR_ALLOC_SINGLE_PAGES support

2016-03-21 Thread Will Deacon
On Thu, Mar 03, 2016 at 02:54:26AM +0800, Yong Wu wrote: > Sometimes it is not worth for the iommu allocating big chunks. > Here we enable DMA_ATTR_ALLOC_SINGLE_PAGES which could help avoid to > allocate big chunks while iommu allocating buffer. > > More information about this attribute, please ch

Re: [PATCH] arm64/dma-mapping: Add DMA_ATTR_ALLOC_SINGLE_PAGES support

2016-03-04 Thread Yong Wu
On Thu, 2016-03-03 at 09:44 -0800, Doug Anderson wrote: > Hi, > > On Wed, Mar 2, 2016 at 10:54 AM, Yong Wu wrote: > > Sometimes it is not worth for the iommu allocating big chunks. > > Here we enable DMA_ATTR_ALLOC_SINGLE_PAGES which could help avoid to > > allocate big chunks while iommu allocat

Re: [PATCH] arm64/dma-mapping: Add DMA_ATTR_ALLOC_SINGLE_PAGES support

2016-03-03 Thread Doug Anderson
Hi, On Wed, Mar 2, 2016 at 10:54 AM, Yong Wu wrote: > Sometimes it is not worth for the iommu allocating big chunks. > Here we enable DMA_ATTR_ALLOC_SINGLE_PAGES which could help avoid to > allocate big chunks while iommu allocating buffer. > > More information about this attribute, please check

[PATCH] arm64/dma-mapping: Add DMA_ATTR_ALLOC_SINGLE_PAGES support

2016-03-02 Thread Yong Wu
Sometimes it is not worth for the iommu allocating big chunks. Here we enable DMA_ATTR_ALLOC_SINGLE_PAGES which could help avoid to allocate big chunks while iommu allocating buffer. More information about this attribute, please check Doug's commit[1]. [1]: https://lkml.org/lkml/2016/1/11/720 Cc