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

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, >> >>

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 > > >

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 > >

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

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

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

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

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

2012-10-16 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

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

2012-10-16 Thread Hiroshi Doyu
Hi Inki/Marek, On Tue, 16 Oct 2012 02:50:16 +0200 Inki Dae inki@samsung.com wrote: 2012/10/15 Marek Szyprowski m.szyprow...@samsung.com: 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

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

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 m.szyprow...@samsung.com 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

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 li...@arm.linux.org.uk 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

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 hd...@nvidia.com: Hi Inki/Marek, On Tue, 16 Oct 2012 02:50:16 +0200 Inki Dae inki@samsung.com wrote: 2012/10/15 Marek Szyprowski m.szyprow...@samsung.com: Hello, Some devices, which have IOMMU, for some use cases might require to allocate a

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 li...@arm.linux.org.uk 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

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 this

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 li...@arm.linux.org.uk 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

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 li...@arm.linux.org.uk: 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,

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

2012-10-16 Thread Hiroshi Doyu
Hi Inki, Inki Dae inki@samsung.com wrote @ Tue, 16 Oct 2012 12:12:49 +0200: Hi Hiroshi, 2012/10/16 Hiroshi Doyu hd...@nvidia.com: Hi Inki/Marek, On Tue, 16 Oct 2012 02:50:16 +0200 Inki Dae inki@samsung.com wrote: 2012/10/15 Marek Szyprowski m.szyprow...@samsung.com:

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 hd...@nvidia.com 작성: Hi Inki, Inki Dae inki@samsung.com wrote @ Tue, 16 Oct 2012 12:12:49 +0200: Hi Hiroshi, 2012/10/16 Hiroshi Doyu hd...@nvidia.com: Hi Inki/Marek, On Tue, 16 Oct 2012 02:50:16 +0200 Inki Dae