From: Pawel Osciak <p.osciak@samsung.com>
To: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: linux-media@vger.kernel.org, kyungmin.park@samsung.com,
m.szyprowski@samsung.com, t.fujak@samsung.com
Subject: Re: [PATCH/RFC v1 0/7] Videobuf2 framework
Date: Fri, 10 Sep 2010 12:20:14 +0900 [thread overview]
Message-ID: <4C89A3EE.8040503@samsung.com> (raw)
In-Reply-To: <4C891F0D.2060103@redhat.com>
Hello Mauro,
On 09/10/2010 02:53 AM, Mauro Carvalho Chehab wrote:
> Em 09-09-2010 06:19, Pawel Osciak escreveu:
> > Hello,
> >
> > These patches add a new driver framework for Video for Linux 2 driver
> > - Videobuf2.
>
> I didn't test the patches, but, from a source code review, they seem
> on a good shape. I did a few comments on some patches. There are a few
> missing features for them to be used with real drivers:
>
Thank you for review. I will address your in-code comments in a bit, now
for general comments.
> 1) it lacks implementation of read() method. This means that vivi driver
> has a regression, as it currently supports it.
Yes, read() is not yet implemented. I guess it is not a feature that would
be deprecated, right? There are some problems with read that are
problematic:
- not every device / memory type will be able to use it, as we need a way
to allocate kernel memory for an operation and not every memory type may
support it
- there is no way to use it with multi-planar API, as it is not possible
to read from multiple memory buffers (having multiple pointers) with read...
But I guess it it could be added to work as before with single-planar
buffers
only, for compatibility.
Also I am thinking about where read() should be implemented. It is something
that will have to be emulated on top of normal streaming, as it is now done
in videobuf1. So maybe a more generic read implementation would be a good
idea? A separate layer that would be implementing read on top of streaming?
It would not have to be limited to videobuf only then, drivers that support
streaming but not using videobuf would be able to use it too.
> 2) it lacks OVERLAY mode. We can probably mark this feature as deprecated,
> avoiding the need of implementing it on videobuf2, but we need a patch
> for Documentation/feature-removal-schedule.txt, in order to allow the
> migration of the existing drivers like bttv and saa7134, where this
> feature
> is implemented, of course if people agree that this is the better way;
If you think this feature can be deprecated, it might be a good idea. If
not,
I guess I will be able to take a stab at it when working with saa7134 and
bttv, right? Should not require too much work to add. I just did not have
a device to test it on, so I did not add it.
It would be great if you could make the decision about what to do with this.
I will try to follow your opinion and suggestions.
> 3) it lacks the implementation of videobuf-dvb;
Yes... I have no experience with DVB, but I guess I can just get a DVB card
and start hacking. Could you recommend a card? Technisat SkyStar 2?
> 4) it lacks an implementation for DMA S/G.
Yes, I am planning to work on this next, I will be testing on saa7134
and maybe
something else as well, probably a bttv. Please let me know if you have any
suggestions or recommendations on which drivers I should be focusing.
I am also hoping for Laurent's comments on this, since he was working on SG
much more than I did.
> We need to address all the above issues, in order to use it, otherwise the
> migration of existing drivers would cause regressions, as features will be
> missing.
Right, of course. Videobuf2 is a long time effort and I hope it will be
evolving
gradually. What I would like to assure you about is that I will not
abandon it
and will not limit myself to working only on embedded or Samsung device
support.
Videobuf2 is not only my in-Samsung project and I intend to be working on it
"outside my work responsibilities" as well, supporting desktop and other
platforms, as my time permits.
I would like to address whatever you and others think is necessary and make
videobuf2 useful for as many devices as possible. This is also why I am
posting
it earlier rather than later. I hope for people to point out features
they would
require and give their opinions early. I think that working together on
this we
will be able to gradually come up with a solution that would be useful and
satisfying for most people.
I would like to ask about your idea for the strategy of its development and
inclusion. We will be posting a few drivers based on videobuf2 soon. Do
you think
it could be merged gradually, as features are added?
It would be great if we could work on it and merge it gradually. Some
people could
already start using it in new drivers, others could start adding
features to it,
the API would be stabilizing and we would be having a solid base to work
on. This is
a long-term effort for many months or maybe years. It goes without
saying that it
will be harder to add everything in one go.
Others might not be eager to adopt it if it is not an official effort
either.
And I cannot deny it, it would also make my job easier. As I said, I do
not intend
to leave it as it is now nor work on embedded support only.
Also, we do not have to migrate all old drivers in one go, but that also
goes without
saying. As we discussed, videobuf1 will not go away anytime soon.
I think we should consider new drivers as well here. It is troublesome
when they
provide their custom code instead of using a framework, as is the case
with some
drivers that have been posted in the previous months and some ongoing
ones, but this
is also obvious.
Please let me know your opinion. It would be good if we could come up
with a list
of features that have to be added before merging and others that could
be added
gradually and a general plan for development of videbuf2.
Thank you!
--
Best regards,
Pawel Osciak
Linux Platform Group
Samsung Poland R&D Center
next prev parent reply other threads:[~2010-09-10 3:22 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-09 9:19 [PATCH/RFC v1 0/7] Videobuf2 framework Pawel Osciak
2010-09-09 9:19 ` [PATCH v1 1/7] v4l: add videobuf2 Video for Linux 2 driver framework Pawel Osciak
2010-09-09 17:29 ` Mauro Carvalho Chehab
2010-09-15 20:16 ` Pawel Osciak
2010-09-25 14:27 ` Hans Verkuil
2010-09-29 23:40 ` Pawel Osciak
2010-09-09 9:19 ` [PATCH v1 2/7] v4l: videobuf2: add generic memory handling routines Pawel Osciak
2010-09-09 17:34 ` Mauro Carvalho Chehab
2010-09-09 9:19 ` [PATCH v1 3/7] v4l: mem2mem: port to videobuf2 Pawel Osciak
2010-09-09 9:19 ` [PATCH v1 4/7] v4l: videobuf2: add vmalloc allocator Pawel Osciak
2010-09-09 9:19 ` [PATCH v1 5/7] v4l: videobuf2: add DMA coherent allocator Pawel Osciak
2010-09-09 9:19 ` [PATCH v1 6/7] v4l: vivi: port to videobuf2 Pawel Osciak
2010-09-09 9:19 ` [PATCH v1 7/7] v4l: videobuf2: add CMA allocator Pawel Osciak
2010-09-15 8:55 ` han jonghun
2010-09-15 20:25 ` Pawel Osciak
2010-09-09 9:26 ` [PATCH/RFC v1 0/7] Videobuf2 framework Pawel Osciak
2010-09-09 17:53 ` Mauro Carvalho Chehab
2010-09-10 3:20 ` Pawel Osciak [this message]
2010-09-10 4:27 ` Mauro Carvalho Chehab
2010-09-10 7:38 ` Marek Szyprowski
2010-09-10 8:22 ` Hans Verkuil
2010-09-10 8:26 ` Devin Heitmueller
2010-09-10 13:50 ` Andy Walls
2010-09-10 12:15 ` Mauro Carvalho Chehab
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=4C89A3EE.8040503@samsung.com \
--to=p.osciak@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-media@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=mchehab@redhat.com \
--cc=t.fujak@samsung.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.