From: Hans Verkuil <hverkuil@xs4all.nl>
To: linux-media@vger.kernel.org
Cc: pawel@osciak.com, m.szyprowski@samsung.com
Subject: Re: [RFCv5 PATCH 00/15] vb2: improve dma-sg, expbuf
Date: Fri, 07 Nov 2014 10:19:14 +0100 [thread overview]
Message-ID: <545C8E92.30709@xs4all.nl> (raw)
In-Reply-To: <1415350234-9826-1-git-send-email-hverkuil@xs4all.nl>
On 11/07/2014 09:50 AM, Hans Verkuil wrote:
> Changes since v4:
> - Rebased to latest media_tree master
>
> Changes since v3:
>
> - Dropped patch 02/10: succeeded by patch 10/15 in this series
> - Added patches 11-15 to correctly handle syncing/mapping dmabuf
> buffers for CPU access. This was never done correctly before.
> Many thanks to Pawel Osciak for helping me with this during the
> media mini-summit last week.
>
> The patch series adds an allocation context to dma-sg and uses that to move
> dma_(un)map_sg into the vb2 framework, which is where it belongs.
>
> Some drivers needs to fixup the buffers before giving it back to userspace
> (or before handing it over to the kernel). Document that this can be done
> in buf_prepare and buf_finish.
>
> The last 5 patches make this more strict by requiring all cpu access to
> be bracketed by calls to vb2_plane_begin/end_cpu_access() which replaces
> the old vb2_plane_vaddr() call.
>
> Note: two drivers still use the vb2_plane_addr() call: coda and
> exynos4-is/fimc-capture.c. For both drivers I will need some help since
> I am not sure where to put the begin/end calls. Patch 14 removes
> the vb2_plane_vaddr call, so obviously those two drivers won't compile
> after that.
>
> DMABUF export support is added to dma-sg and vmalloc, so now all memory
> models support DMABUF importing and exporting.
>
> I am inclined to make a pull request for patches 1-10 if there are no
> new comments. The issues that patches 11-15 address are separate from
> the patches 1-10 and this is only an issue when using dmabuf with
> drivers that need cpu access.
To be specific: consider patches 1-10 as being patches ready to merge,
while patches 11-15 are still in the RFC stage.
Regards,
Hans
>
> Reviews are very welcome.
>
> Regards,
>
> Hans
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
prev parent reply other threads:[~2014-11-07 9:19 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-07 8:50 [RFCv5 PATCH 00/15] vb2: improve dma-sg, expbuf Hans Verkuil
2014-11-07 8:50 ` [RFCv5 PATCH 01/15] videobuf2-core.h: improve documentation Hans Verkuil
2014-11-07 8:50 ` [RFCv5 PATCH 02/15] vb2-dma-sg: add allocation context to dma-sg Hans Verkuil
2014-11-08 8:46 ` Pawel Osciak
2014-11-07 8:50 ` [RFCv5 PATCH 03/15] vb2-dma-sg: move dma_(un)map_sg here Hans Verkuil
2014-11-08 9:44 ` Pawel Osciak
2014-11-07 8:50 ` [RFCv5 PATCH 04/15] vb2-dma-sg: add dmabuf import support Hans Verkuil
2014-11-08 10:20 ` Pawel Osciak
2014-11-08 10:43 ` Pawel Osciak
2014-11-07 8:50 ` [RFCv5 PATCH 05/15] vb2-dma-sg: add get_dmabuf Hans Verkuil
2014-11-08 10:45 ` Pawel Osciak
2014-11-07 8:50 ` [RFCv5 PATCH 06/15] vb2-vmalloc: add get_dmabuf support Hans Verkuil
2014-11-07 8:50 ` [RFCv5 PATCH 07/15] vb2: replace 'write' by 'dma_dir' Hans Verkuil
2014-11-08 11:19 ` Pawel Osciak
2014-11-07 8:50 ` [RFCv5 PATCH 08/15] vivid: enable vb2_expbuf support Hans Verkuil
2014-11-07 8:50 ` [RFCv5 PATCH 09/15] vim2m: support expbuf Hans Verkuil
2014-11-07 8:50 ` [RFCv5 PATCH 10/15] vb2: use dma_map_sg_attrs to prevent unnecessary sync Hans Verkuil
2014-11-07 8:50 ` [RFCv5 PATCH 11/15] vb2: add begin/end_cpu_access functions Hans Verkuil
2014-11-07 8:50 ` [RFCv5 PATCH 12/15] videobuf2-dvb.c: convert to vb2_plane_begin_cpu_access() Hans Verkuil
2014-11-07 8:50 ` [RFCv5 PATCH 13/15] v4l: convert vb2_plane_vaddr to vb2_plane_begin_cpu_access Hans Verkuil
2014-11-07 8:50 ` [RFCv5 PATCH 14/15] vb2: drop the unused vb2_plane_vaddr function Hans Verkuil
2014-11-07 8:50 ` [RFCv5 PATCH 15/15] vb2: update the buf_prepare/finish documentation Hans Verkuil
2014-11-07 9:19 ` Hans Verkuil [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=545C8E92.30709@xs4all.nl \
--to=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=pawel@osciak.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).