All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/13] Streaming control for MC with metadata or streams otherwise
@ 2025-06-19  8:15 Sakari Ailus
  2025-06-19  8:15 ` [PATCH 01/13] media: ipu6: Use correct pads for xlate_streams() Sakari Ailus
                   ` (12 more replies)
  0 siblings, 13 replies; 67+ messages in thread
From: Sakari Ailus @ 2025-06-19  8:15 UTC (permalink / raw)
  To: linux-media
  Cc: bingbu.cao, stanislaw.gruszka, tian.shu.qiu, tomi.valkeinen,
	laurent.pinchart

Hi all,

Starting and stopping streaming is a non-trivial problem in all but most
simple cases where there's only one stream. But when multiple streams come
into play, the problem quickly gets difficult to solve properly as it
generally spans multiple hardware deveices, not only including
transmitters (e.g. camera sensors) and receivers but also devices in
between, such as CSI-2 aggregators and serdes devices.

The following document summarises the known use cases:
<URL:https://pilvi.retiisi.eu/s/44RWYjKG92R6X49>, please let me know if
you have something to add that's not included here.

What this patchset implements is a partial solution, but it's also a
solution that can be extended to cover the above cases with relatively
small amendments.

The current functionality is best documented in patch "media: v4l2-mc:
Introduce v4l2_mc_pipeline_enabled()".

This set, in some form, is also effectively required by metadata support
patchset of which I'm about to post a new version. Starting per VC (for
CSI-2) is next on my to-do list when it comes to this set.

Getting these both in for 6.18 would be great.

Comments are very welcome.

Sakari Ailus (13):
  media: ipu6: Use correct pads for xlate_streams()
  media: ipu6: Set minimum height to 1
  media: ipu6: Enable and disable each stream at CSI-2 subdev source pad
  media: v4l2-subdev: Add a helper to figure out the pad streaming state
  media: v4l: Make media_entity_to_video_device() NULL-safe
  media: v4l2-subdev: Mark both streams of a route enabled
  media: ipu6: Set up CSI-2 receiver at correct moment
  media: v4l2-subdev: Print early in
    v4l2_subdev_{enable,disable}_streams()
  media: v4l2-subdev: Collect streams on source pads only
  media: v4l2-subdev: Add debug prints to v4l2_subdev_collect_streams()
  media: v4l2-subdev: Introduce v4l2_subdev_find_route()
  media: v4l2-mc: Introduce v4l2_mc_pipeline_enabled()
  media: ipu6: isys: Rework stream starting and stopping

 drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c |  63 +++--
 .../media/pci/intel/ipu6/ipu6-isys-queue.c    |  48 ++--
 .../media/pci/intel/ipu6/ipu6-isys-video.c    |  96 ++++---
 .../media/pci/intel/ipu6/ipu6-isys-video.h    |   9 +-
 drivers/media/pci/intel/ipu6/ipu6-isys.h      |   2 +-
 drivers/media/v4l2-core/v4l2-mc.c             | 243 ++++++++++++++++++
 drivers/media/v4l2-core/v4l2-subdev.c         | 107 +++++---
 include/media/v4l2-dev.h                      |  14 +-
 include/media/v4l2-mc.h                       |  44 ++++
 include/media/v4l2-subdev.h                   |  22 ++
 10 files changed, 539 insertions(+), 109 deletions(-)

-- 
2.39.5


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

end of thread, other threads:[~2025-08-04 11:47 UTC | newest]

Thread overview: 67+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-19  8:15 [PATCH 00/13] Streaming control for MC with metadata or streams otherwise Sakari Ailus
2025-06-19  8:15 ` [PATCH 01/13] media: ipu6: Use correct pads for xlate_streams() Sakari Ailus
2025-06-19 13:27   ` Laurent Pinchart
2025-06-19 13:55     ` Sakari Ailus
2025-06-19 14:15       ` Laurent Pinchart
2025-06-19 14:28         ` Sakari Ailus
2025-06-19 15:08           ` Laurent Pinchart
2025-06-19  8:15 ` [PATCH 02/13] media: ipu6: Set minimum height to 1 Sakari Ailus
2025-06-19 13:27   ` Laurent Pinchart
2025-06-19  8:15 ` [PATCH 03/13] media: ipu6: Enable and disable each stream at CSI-2 subdev source pad Sakari Ailus
2025-06-19 12:23   ` kernel test robot
2025-06-19 12:48   ` Laurent Pinchart
2025-06-19 13:10     ` Sakari Ailus
2025-06-19 13:19       ` Laurent Pinchart
2025-06-19 13:52         ` Sakari Ailus
2025-06-19  8:15 ` [PATCH 04/13] media: v4l2-subdev: Add a helper to figure out the pad streaming state Sakari Ailus
2025-06-19 13:37   ` Laurent Pinchart
2025-06-19  8:15 ` [PATCH 05/13] media: v4l: Make media_entity_to_video_device() NULL-safe Sakari Ailus
2025-06-19 15:20   ` Laurent Pinchart
2025-06-19 16:14     ` Sakari Ailus
2025-07-08 11:56       ` Laurent Pinchart
2025-07-08 12:02         ` Sakari Ailus
2025-07-08 16:17           ` Laurent Pinchart
2025-07-09 20:03             ` Sakari Ailus
2025-07-09 20:54               ` Laurent Pinchart
2025-07-10  6:57                 ` Sakari Ailus
2025-06-19  8:15 ` [PATCH 06/13] media: v4l2-subdev: Mark both streams of a route enabled Sakari Ailus
2025-06-19 16:56   ` Laurent Pinchart
2025-06-19 18:34     ` Sakari Ailus
2025-06-19 22:18       ` Laurent Pinchart
2025-06-25 16:10         ` Sakari Ailus
2025-06-26 15:22       ` Tomi Valkeinen
2025-06-26 19:13         ` Laurent Pinchart
2025-06-26 15:17   ` Tomi Valkeinen
2025-06-27  6:09     ` Sakari Ailus
2025-06-30  0:47       ` Laurent Pinchart
2025-06-19  8:15 ` [PATCH 07/13] media: ipu6: Set up CSI-2 receiver at correct moment Sakari Ailus
2025-06-19 17:00   ` Laurent Pinchart
2025-06-19 17:20     ` Sakari Ailus
2025-06-19  8:15 ` [PATCH 08/13] media: v4l2-subdev: Print early in v4l2_subdev_{enable,disable}_streams() Sakari Ailus
2025-06-19 17:03   ` Laurent Pinchart
2025-06-25 16:12     ` Sakari Ailus
2025-06-19  8:15 ` [PATCH 09/13] media: v4l2-subdev: Collect streams on source pads only Sakari Ailus
2025-06-19 17:07   ` Laurent Pinchart
2025-06-25 16:14     ` Sakari Ailus
2025-06-19  8:15 ` [PATCH 10/13] media: v4l2-subdev: Add debug prints to v4l2_subdev_collect_streams() Sakari Ailus
2025-06-19 22:23   ` Laurent Pinchart
2025-06-25 16:28     ` Sakari Ailus
2025-06-19  8:15 ` [PATCH 11/13] media: v4l2-subdev: Introduce v4l2_subdev_find_route() Sakari Ailus
2025-06-20  8:14   ` Jacopo Mondi
2025-06-25 16:53     ` Sakari Ailus
2025-06-26 22:20       ` Laurent Pinchart
2025-07-15 14:09         ` Sakari Ailus
2025-06-19  8:15 ` [PATCH 12/13] media: v4l2-mc: Introduce v4l2_mc_pipeline_enabled() Sakari Ailus
2025-06-19 11:42   ` kernel test robot
2025-06-20  3:58   ` Dan Carpenter
2025-06-20  8:53   ` Jacopo Mondi
2025-06-21  8:10     ` Sakari Ailus
2025-07-15 10:49     ` Sakari Ailus
2025-07-15 11:25       ` Laurent Pinchart
2025-07-15 11:32         ` Sakari Ailus
2025-07-15 18:18           ` Laurent Pinchart
2025-06-23  9:48   ` kernel test robot
2025-06-26 23:07   ` Laurent Pinchart
2025-08-04 11:32     ` Sakari Ailus
2025-08-04 11:46       ` Laurent Pinchart
2025-06-19  8:15 ` [PATCH 13/13] media: ipu6: isys: Rework stream starting and stopping Sakari Ailus

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.