From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Subject: Re: [PATCHv2 3/9] v4l: add buffer exporting via dmabuf Date: Tue, 31 Jul 2012 23:52:35 +0200 Message-ID: <1376487.cHbjGZJEZg@avalon> References: <1339684349-28882-1-git-send-email-t.stanislaws@samsung.com> <26877422.izWOc7eKQo@avalon> <201207312139.42818.remi@remlab.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <201207312139.42818.remi@remlab.net> Sender: linux-media-owner@vger.kernel.org To: =?ISO-8859-1?Q?R=E9mi?= Denis-Courmont Cc: Hans Verkuil , Tomasz Stanislawski , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, airlied@redhat.com, m.szyprowski@samsung.com, kyungmin.park@samsung.com, sumit.semwal@ti.com, daeinki@gmail.com, daniel.vetter@ffwll.ch, robdclark@gmail.com, pawel@osciak.com, linaro-mm-sig@lists.linaro.org, subashrp@gmail.com, mchehab@redhat.com, g.liakhovetski@gmx.de List-Id: dri-devel@lists.freedesktop.org Hi R=E9mi, On Tuesday 31 July 2012 21:39:40 R=E9mi Denis-Courmont wrote: > Le mardi 31 juillet 2012 19:28:12 Laurent Pinchart, vous avez =E9crit= : > > On Tuesday 31 July 2012 16:39:00 R=E9mi Denis-Courmont wrote: > > > Le mardi 31 juillet 2012 14:56:14 Laurent Pinchart, vous avez =E9= crit : > > > > > For that matter, wouldn't it be useful to support exporting a > > > > > userptr > > > > > buffer at some point in the future? > > > >=20 > > > > Shouldn't USERPTR usage be discouraged once we get dma-buf supp= ort ? > > >=20 > > > USERPTR, where available, is currently the only way to perform ze= ro-copy > > > from kernel to userspace. READWRITE does not support zero-copy at= all. > > > MMAP only supports zero-copy if userspace knows a boundary on the= number > > > of concurrent buffers *and* the device can deal with that number = of > > > buffers; in general, MMAP requires memory copying. > >=20 > > Could you please share your use case(s) with us ? >=20 > I want to receive the video buffers in user space for processing. Typ= ically > "processing" is software encoding or conversion. That's what virtuall= y any > V4L application does on the desktop... But what prevents you from using MMAP ? --=20 Regards, Laurent Pinchart