Re: no mmu on videobuf2

2011-06-16 Thread Laurent Pinchart
Hi Scott, On Thursday 16 June 2011 09:57:05 Scott Jiang wrote: > 2011/6/16 Kassey Lee : > > 2011/6/16 Scott Jiang : > >> 2011/6/16 Marek Szyprowski : > Hi Marek and Laurent, > > I am working on v4l2 drivers for blackfin which is a no mmu soc. > I found videobuf allocate memory

RE: no mmu on videobuf2

2011-06-16 Thread Marek Szyprowski
Hello, On Thursday, June 16, 2011 9:57 AM Scott Jiang wrote: (snipped) > >> I used dma-contig allocator. I mean if offset is 0, I must get actual > >> addr from this offset. > > hi, Scott > > > > if it is single plane, surely the offset is 0 for plane 0 > yes, it is absolutely right. > > > what

Re: no mmu on videobuf2

2011-06-16 Thread Scott Jiang
Hi Kassey, 2011/6/16 Kassey Lee : > 2011/6/16 Scott Jiang : >> 2011/6/16 Marek Szyprowski : >>> Hello Scott, >>> Hi Marek and Laurent, I am working on v4l2 drivers for blackfin which is a no mmu soc. I found videobuf allocate memory in mmap not reqbuf, so I turn to videob

Re: no mmu on videobuf2

2011-06-16 Thread Kassey Lee
2011/6/16 Scott Jiang : > 2011/6/16 Marek Szyprowski : >> Hello Scott, >> >>> Hi Marek and Laurent, >>> >>> I am working on v4l2 drivers for blackfin which is a no mmu soc. >>> I found videobuf allocate memory in mmap not reqbuf, so I turn to videobuf2. >>> But __setup_offsets() use plane offset to

Re: no mmu on videobuf2

2011-06-15 Thread Scott Jiang
2011/6/16 Marek Szyprowski : > Hello Scott, > >> Hi Marek and Laurent, >> >> I am working on v4l2 drivers for blackfin which is a no mmu soc. >> I found videobuf allocate memory in mmap not reqbuf, so I turn to videobuf2. >> But __setup_offsets() use plane offset to fill m.offset, which is >> alway

RE: no mmu on videobuf2

2011-06-15 Thread Marek Szyprowski
Hello Scott, > Hi Marek and Laurent, > > I am working on v4l2 drivers for blackfin which is a no mmu soc. > I found videobuf allocate memory in mmap not reqbuf, so I turn to videobuf2. > But __setup_offsets() use plane offset to fill m.offset, which is > always 0 for single-planar buffer. > So pg

no mmu on videobuf2

2011-06-15 Thread Scott Jiang
Hi Marek and Laurent, I am working on v4l2 drivers for blackfin which is a no mmu soc. I found videobuf allocate memory in mmap not reqbuf, so I turn to videobuf2. But __setup_offsets() use plane offset to fill m.offset, which is always 0 for single-planar buffer. So pgoff in get_unmapped_area cal