public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] Second marvell-cam patch series
@ 2011-06-20 19:14 Jonathan Corbet
  2011-06-20 19:14 ` [PATCH 1/5] marvell-cam: convert to videobuf2 Jonathan Corbet
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Jonathan Corbet @ 2011-06-20 19:14 UTC (permalink / raw)
  To: linux-media; +Cc: g.liakhovetski, Kassey Lee

OK, here's my second series of marvell-cam patches for comment; the main
thing here is (finally) the addition of videobuf2 vmalloc and dma-contig
support.  Anybody who would just rather look at the final product can grab:

	git://git.lwn.net/linux-2.6.git mmp-linuxtv

There is one real mystery here; ideas would be welcome.  When I switch to
contiguous DMA mode, mplayer gets faster as one might expect - copying all
those frames in the kernel hurts.  But a basic gstreamer pipeline:

  gst-launch v4l2src ! ffmpegcolorspace ! videoscale ! ximagesink

slows down by a factor of two.  Somehow the gst-launch binary finds a way
to use twice as much time processing frames.  Given that the difference
should not really even be visible to user space, I'm at a total loss here.

In this series:

Jonathan Corbet (5):
      marvell-cam: convert to videobuf2
      marvell-cam: include file cleanup
      marvell-cam: no need to initialize the DMA buffers
      marvell-cam: Don't spam the logs on frame loss
      marvell-cam: implement contiguous DMA operation

 Kconfig       |    4 
 cafe-driver.c |    6 
 mcam-core.c   |  785 +++++++++++++++++++++++++---------------------------------
 mcam-core.h   |   47 ++-
 mmp-driver.c  |    1 
 5 files changed, 387 insertions(+), 456 deletions(-)

Todo items at this point:

 - Scatter/gather DMA support (probably)
 - Eliminate ov7670 assumptions
 - Userptr support (should Just Work in DMA-contiguous mode)

Comments?

Thanks,

jon



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-06-22 14:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-20 19:14 [RFC] Second marvell-cam patch series Jonathan Corbet
2011-06-20 19:14 ` [PATCH 1/5] marvell-cam: convert to videobuf2 Jonathan Corbet
2011-06-22 13:59   ` Marek Szyprowski
2011-06-22 14:11     ` Jonathan Corbet
2011-06-20 19:14 ` [PATCH 2/5] marvell-cam: include file cleanup Jonathan Corbet
2011-06-20 19:14 ` [PATCH 3/5] marvell-cam: no need to initialize the DMA buffers Jonathan Corbet
2011-06-20 19:14 ` [PATCH 4/5] marvell-cam: Don't spam the logs on frame loss Jonathan Corbet
2011-06-20 19:14 ` [PATCH 5/5] marvell-cam: implement contiguous DMA operation Jonathan Corbet
2011-06-21 20:26   ` Mauro Carvalho Chehab
2011-06-22 14:22     ` Marek Szyprowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox