mbox series

[0/5] media: Add multiplexed support to R-Car and GMSL

Message ID 20210918150507.987294-1-jacopo+renesas@jmondi.org (mailing list archive)
Headers show
Series media: Add multiplexed support to R-Car and GMSL | expand

Message

Jacopo Mondi Sept. 18, 2021, 3:05 p.m. UTC
Hello,
  this series is based on Tomi's "v4l: subdev internal routing and streams":
https://patchwork.linuxtv.org/project/linux-media/list/?series=6197

With a few out-of-tree patches for GMSL support on top. The full tree for
testing is available at:
https://git.sr.ht/~jmondi_/linux/log/multistream/tomba-v8/gmsl

The series aims to
1) Plumb into Tomi's v4l2 subdev streams and routing to compare it with the
   previous implementations of multistream support
2) Add support for multiplexed streams to R-Car VIN, CSI-2 and MAX9286

First of all, I found the multistream support as implemented by Tomi very nice
to work with. I have expressed my views on the subdev state handling in the
review of his series, but routing handling is nice to work with! kudos!

The GMSL and R-Car implementation which results from this is -almost- working.
Capturing with 4 cameras works (at least no regressions) but capturing a single
VC on any instance of VIN results in the usual 'green frame of despair'. Clearly
there's something to fix in the capture chain, but the plumbing into the new API
should be sane. Before debugging in detail the capture chain I would like the
plumbing to be validated.

For testing, I have re-proposed Niklas' patches on top of v4l2-ctl to control
routing and ported them to this last version. Support for state-based format
handling has been added on top. Two simple scripts to be deployed in vin-test
have been used to set routing and capture frames. Both are available at:
https://git.sr.ht/~jmondi_/v4l2-utils
https://git.sr.ht/~jmondi_/vin-test-multi

Thanks
   j

Jacopo Mondi (5):
  media: max9286: Implement multiplexed support
  media: max9286: Apply routing configuration
  media: max9286: Implement routing validation
  media: rcar-csi2: Implement multiplexed support
  media: rcar-vin: Support multiplexed CSI-2 receiver

 drivers/media/i2c/max9286.c                 | 452 ++++++++++++++------
 drivers/media/platform/rcar-vin/rcar-csi2.c | 289 ++++++++++---
 drivers/media/platform/rcar-vin/rcar-dma.c  |   3 +-
 3 files changed, 551 insertions(+), 193 deletions(-)

--
2.32.0