Re: [patch 1/3] mm: introduce follow_pte()

2009-05-05 Thread Johannes Weiner
On Tue, May 05, 2009 at 02:05:17PM -0700, Andrew Morton wrote: > On Tue, 5 May 2009 22:38:07 +0200 > Johannes Weiner wrote: > > > On Tue, May 05, 2009 at 12:24:42PM -0700, Andrew Morton wrote: > > > On Mon, 4 May 2009 11:54:32 +0200 > > > Johannes Weiner

Re: [patch 1/3] mm: introduce follow_pte()

2009-05-05 Thread Johannes Weiner
On Tue, May 05, 2009 at 12:24:42PM -0700, Andrew Morton wrote: > On Mon, 4 May 2009 11:54:32 +0200 > Johannes Weiner wrote: > > > A generic readonly page table lookup helper to map an address space > > and an address from it to a pte. > > umm, OK. > > Is t

[patch 3/3 v2] mm: introduce follow_pfn()

2009-05-04 Thread Johannes Weiner
Analoguous to follow_phys(), add a helper that looks up the PFN at a user virtual address in an IO mapping or a raw PFN mapping. Signed-off-by: Johannes Weiner --- include/linux/mm.h |2 ++ mm/memory.c| 29 + 2 files changed, 31 insertions(+), 0

Re: [patch 2/3] mm: use generic follow_pte() in follow_phys()

2009-05-04 Thread Johannes Weiner
On Mon, May 04, 2009 at 11:54:33AM +0200, Johannes Weiner wrote: > Signed-off-by: Johannes Weiner > --- > mm/memory.c | 37 ++--- > 1 files changed, 6 insertions(+), 31 deletions(-) > > diff --git a/mm/memory.c b/mm/memory.c > index a6

[patch 3/3] mm: introduce follow_pfn()

2009-05-04 Thread Johannes Weiner
Analoguous to follow_phys(), add a helper that looks up the PFN instead. It also only allows IO mappings or PFN mappings. Signed-off-by: Johannes Weiner --- include/linux/mm.h |2 ++ mm/memory.c| 19 +++ 2 files changed, 21 insertions(+), 0 deletions(-) diff

[patch 1/3] mm: introduce follow_pte()

2009-05-04 Thread Johannes Weiner
A generic readonly page table lookup helper to map an address space and an address from it to a pte. Signed-off-by: Johannes Weiner --- mm/memory.c | 37 + 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index

[patch 2/3] mm: use generic follow_pte() in follow_phys()

2009-05-04 Thread Johannes Weiner
Signed-off-by: Johannes Weiner --- mm/memory.c | 37 ++--- 1 files changed, 6 insertions(+), 31 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index a621319..aee167d 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3051,50 +3051,25 @@ int follow_phys(struct

Re: [PATCH] videobuf-dma-contig: zero copy USERPTR support V2

2009-05-01 Thread Johannes Weiner
On Fri, May 01, 2009 at 12:26:38PM +0900, Magnus Damm wrote: > On Tue, Apr 28, 2009 at 6:01 PM, Magnus Damm wrote: > > This is V2 of the V4L2 videobuf-dma-contig USERPTR zero copy patch. > > I guess the V4L2 specific bits are pretty simple. > > As for the minor mm modifications below, > > > ---

Re: [PATCH][RFC] videobuf-dma-config: zero copy USERPTR support

2009-04-20 Thread Johannes Weiner
On Mon, Apr 20, 2009 at 07:00:03PM +0900, Magnus Damm wrote: > From: Magnus Damm > > Zero copy video frame capture from user space using V4L2 USERPTR. > > This patch adds USERPTR support to the videobuf-dma-contig buffer code. > Since videobuf-dma-contig is designed to handle physically contiguo