Re: [RFC PATCH] Adding additional flags when allocating buffer memory

2013-03-05 Thread Marek Szyprowski
Hello, On 3/5/2013 10:59 AM, Hans Verkuil wrote: On Tue 5 March 2013 10:28:38 Marek Szyprowski wrote: > Hello, > > On 3/1/2013 7:44 PM, Hans Verkuil wrote: > > Hi all, > > > > This patch is based on an idea from Federico: > > > > http://www.mail-archive.com/davinci-linux-open-source@linux.davin

Re: [RFC PATCH] Adding additional flags when allocating buffer memory

2013-03-05 Thread Federico Vaga
Hi all, > > I agree that the gfp_flags is needed. It should be there from the > > beginning, > > but there is not DMA zone on our hardware and we missed that point. Our > > fault. > > However IMHO the better place for gfp_flags is the allocator context > > structure > > instead of vb2_queue. vb2_d

Re: [RFC PATCH] Adding additional flags when allocating buffer memory

2013-03-05 Thread Hans Verkuil
On Tue 5 March 2013 10:28:38 Marek Szyprowski wrote: > Hello, > > On 3/1/2013 7:44 PM, Hans Verkuil wrote: > > Hi all, > > > > This patch is based on an idea from Federico: > > > > http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg24669.html > > > > While working on con

Re: [RFC PATCH] Adding additional flags when allocating buffer memory

2013-03-05 Thread Marek Szyprowski
Hello, On 3/1/2013 7:44 PM, Hans Verkuil wrote: Hi all, This patch is based on an idea from Federico: http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg24669.html While working on converting the solo6x10 driver to vb2 I realized that the same thing was needed for t

[RFC PATCH] Adding additional flags when allocating buffer memory

2013-03-01 Thread Hans Verkuil
Hi all, This patch is based on an idea from Federico: http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg24669.html While working on converting the solo6x10 driver to vb2 I realized that the same thing was needed for the dma-sg case: the solo6x10 has 32-bit PCI DMA, so