Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping & IOMMU - physically contiguous allocations

2012-10-16 Thread Inki Dae
Hi Hiroshi, 2012. 10. 16. 오후 11:13 Hiroshi Doyu 작성: > Hi Inki, > > Inki Dae wrote @ Tue, 16 Oct 2012 12:12:49 +0200: > >> Hi Hiroshi, >> >> 2012/10/16 Hiroshi Doyu : >>> Hi Inki/Marek, >>> >>> On Tue, 16 Oct 2012 02:50:16 +0200 >>> Inki Dae wrote: >>> 2012/10/15 Marek Szyprowski :

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping & IOMMU - physically contiguous allocations

2012-10-16 Thread Hiroshi Doyu
Hi Inki, Inki Dae wrote @ Tue, 16 Oct 2012 12:12:49 +0200: > Hi Hiroshi, > > 2012/10/16 Hiroshi Doyu : > > Hi Inki/Marek, > > > > On Tue, 16 Oct 2012 02:50:16 +0200 > > Inki Dae wrote: > > > >> 2012/10/15 Marek Szyprowski : > >> > Hello, > >> > > >> > Some devices, which have IOMMU, for some u

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping & IOMMU - physically contiguous allocations

2012-10-16 Thread Inki Dae
Hi Russell, 2012/10/16 Russell King - ARM Linux : > On Tue, Oct 16, 2012 at 07:12:49PM +0900, Inki Dae wrote: >> Hi Hiroshi, >> >> I'm not sure I understand what you mean but we had already tried this >> way and for this, you can refer to below link, >> >> http://www.mail-archive.c

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping & IOMMU - physically contiguous allocations

2012-10-16 Thread Russell King - ARM Linux
On Tue, Oct 16, 2012 at 12:27:55PM +0200, Hiroshi Doyu wrote: > Hi Russell, > > Russell King - ARM Linux wrote @ Tue, 16 Oct 2012 > 10:59:28 +0200: > > > On Tue, Oct 16, 2012 at 09:04:34AM +0300, Hiroshi Doyu wrote: > > > In addition to those contiguous/discontiguous page allocation, is > > > t

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping & IOMMU - physically contiguous allocations

2012-10-16 Thread Russell King - ARM Linux
On Tue, Oct 16, 2012 at 07:12:49PM +0900, Inki Dae wrote: > Hi Hiroshi, > > I'm not sure I understand what you mean but we had already tried this > way and for this, you can refer to below link, > > http://www.mail-archive.com/dri-devel@lists.freedesktop.org/msg22555.html > > but

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping & IOMMU - physically contiguous allocations

2012-10-16 Thread Hiroshi Doyu
Hi Russell, Russell King - ARM Linux wrote @ Tue, 16 Oct 2012 10:59:28 +0200: > On Tue, Oct 16, 2012 at 09:04:34AM +0300, Hiroshi Doyu wrote: > > In addition to those contiguous/discontiguous page allocation, is > > there any way to _import_ anonymous pages allocated by a process to be > > used

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping & IOMMU - physically contiguous allocations

2012-10-16 Thread Inki Dae
Hi Hiroshi, 2012/10/16 Hiroshi Doyu : > Hi Inki/Marek, > > On Tue, 16 Oct 2012 02:50:16 +0200 > Inki Dae wrote: > >> 2012/10/15 Marek Szyprowski : >> > Hello, >> > >> > Some devices, which have IOMMU, for some use cases might require to >> > allocate a buffers for DMA which is contiguous in physi

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping & IOMMU - physically contiguous allocations

2012-10-16 Thread Catalin Marinas
On 16 October 2012 09:59, Russell King - ARM Linux wrote: > On Tue, Oct 16, 2012 at 09:04:34AM +0300, Hiroshi Doyu wrote: >> In addition to those contiguous/discontiguous page allocation, is >> there any way to _import_ anonymous pages allocated by a process to be >> used in dma-mapping API later?

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping & IOMMU - physically contiguous allocations

2012-10-16 Thread Daniel Vetter
On Mon, Oct 15, 2012 at 4:03 PM, Marek Szyprowski wrote: > Some devices, which have IOMMU, for some use cases might require to > allocate a buffers for DMA which is contiguous in physical memory. Such > use cases appears for example in DRM subsystem when one wants to improve > performance or use s

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping & IOMMU - physically contiguous allocations

2012-10-16 Thread Russell King - ARM Linux
On Tue, Oct 16, 2012 at 09:04:34AM +0300, Hiroshi Doyu wrote: > In addition to those contiguous/discontiguous page allocation, is > there any way to _import_ anonymous pages allocated by a process to be > used in dma-mapping API later? > > I'm considering the following scenario, an user process al

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping & IOMMU - physically contiguous allocations

2012-10-15 Thread Hiroshi Doyu
Hi Inki/Marek, On Tue, 16 Oct 2012 02:50:16 +0200 Inki Dae wrote: > 2012/10/15 Marek Szyprowski : > > Hello, > > > > Some devices, which have IOMMU, for some use cases might require to > > allocate a buffers for DMA which is contiguous in physical memory. Such > > use cases appears for example i