public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Cc: "Loic Poulain" <loic.poulain@oss.qualcomm.com>,
	"Michael Riesch" <michael.riesch@collabora.com>,
	"Ricardo Ribalda" <ribalda@chromium.org>,
	"Hans Verkuil" <hverkuil+cisco@kernel.org>,
	"Linux Media Mailing List" <linux-media@vger.kernel.org>,
	"Mauro Carvalho Chehab" <mchehab@kernel.org>,
	"Sean Young" <sean@mess.org>,
	"Sakari Ailus" <sakari.ailus@linux.intel.com>,
	"Jacopo Mondi" <jacopo.mondi@ideasonboard.com>,
	"Niklas Söderlund" <niklas.soderlund@ragnatech.se>,
	"Tomi Valkeinen" <tomi.valkeinen@ideasonboard.com>,
	"Alain Volmat" <alain.volmat@foss.st.com>,
	"Bryan O'Donoghue" <bryan.odonoghue@linaro.org>,
	"Dave Stevenson" <dave.stevenson@raspberrypi.com>,
	"Daniel Almeida" <daniel.almeida@collabora.com>,
	"Michael Tretter" <m.tretter@pengutronix.de>,
	"Tomasz Figa" <tfiga@chromium.org>,
	"Steve Cho" <stevecho@chromium.org>,
	"Kieran Bingham" <kieran.bingham@ideasonboard.com>,
	"Kevin Hilman" <khilman@baylibre.com>,
	"Paul Kocialkowski" <paulk@sys-base.io>,
	"Benjamin Mugnier" <benjamin.mugnier@foss.st.com>,
	"Hans de Goede" <hansg@kernel.org>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Brandon Brnich" <b-brnich@ti.com>,
	"Marco Felsch" <m.felsch@pengutronix.de>,
	"Sven Püschel" <s.pueschel@pengutronix.de>,
	"Devarsh Thakkar" <devarsht@ti.com>,
	"Yemike Abhilash Chandra" <y-abhilashchandra@ti.com>,
	"Jackson Lee" <jackson.lee@chipsnmedia.com>,
	"Jai Luthra" <jai.luthra@ideasonboard.com>,
	"Mehdi Djait" <mehdi.djait@linux.intel.com>,
	"Padhi, Beleswar" <b-padhi@ti.com>,
	"Donadkar, Rishikesh" <r-donadkar@ti.com>,
	"Rouven Czerwinski" <rouven.czerwinski@linaro.org>
Subject: Re: [ANNv4] Media Summit on May 26th in Nice, France
Date: Tue, 14 Apr 2026 21:09:45 +0300	[thread overview]
Message-ID: <20260414180945.GL4061@killaraus.ideasonboard.com> (raw)
In-Reply-To: <6e4f376fd3d1624a502cb6634e0f855af7d223f5.camel@collabora.com>

On Tue, Apr 14, 2026 at 01:55:20PM -0400, Nicolas Dufresne wrote:
> Hey,
> 
> Le mardi 14 avril 2026 à 11:42 +0300, Laurent Pinchart a écrit :
> > Let's not reproduce the design mistakes made in the V4L2 M2M framework.
> > 
> > I also think you need to decouple the context handling and scheduling in
> > two separate components. They need to work together, but shouldn't be
> > bundled into a monolithic system. Very importantly, a driver should be
> > able to implement contexts with the multi-context helpers, and implement
> > custom scheduling itself.
> 
> Note that the v4l2_m2m_dev is juts miss-named, it does not wrap a specific dev
> instance anymore. I'll rename and clean that up eventually, but I agree its not
> meant for your purpose, and it will be a good fight to use. Its already a pretty
> big miss-fit for stateful codec, which don't really have the notion of "active
> central job". Jacopo's proposal is to have multi-context MC (as you already
> know), making the media device as the central source of context, so I think
> that's a path in the right direction.
> 
> But I'll be honest, I would see a future where we actually drop (or break down
> into pieces) VB2, which is I read you well, its not miss-aligned with your say.

I won't object :-) vb2 was designed as a midlayer, and that causes
headaches (I'm thinking in particular about how .start_streaming() is
delayed until buffers get queued). I have less issues with vb2 than with
the M2M midlayer, as vb2 gets less in the way, but I think we should
overall favour for new developments smaller helpers that drivers can
assemble based on their needs over monolithic midlayers.

-- 
Regards,

Laurent Pinchart

  reply	other threads:[~2026-04-14 18:09 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-12 10:25 [ANNv4] Media Summit on May 26th in Nice, France Hans Verkuil
2026-04-12 13:56 ` Sakari Ailus
2026-04-13  6:08   ` Hans Verkuil
2026-04-13  9:57 ` Michael Riesch
2026-04-14  6:49   ` Hans Verkuil
2026-04-13 20:03 ` Loic Poulain
2026-04-13 20:19   ` Laurent Pinchart
2026-04-13 20:25     ` Nicolas Dufresne
2026-04-13 21:16       ` Laurent Pinchart
2026-04-14  6:47         ` Hans Verkuil
2026-04-14  6:55           ` Ricardo Ribalda
2026-04-14  7:20             ` Michael Riesch
2026-04-14  7:42               ` Laurent Pinchart
2026-04-14  8:34                 ` Loic Poulain
2026-04-14  8:42                   ` Laurent Pinchart
2026-04-14 17:55                     ` Nicolas Dufresne
2026-04-14 18:09                       ` Laurent Pinchart [this message]
2026-04-14 19:25                     ` Loic Poulain
2026-04-14  7:04           ` Jacopo Mondi

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=20260414180945.GL4061@killaraus.ideasonboard.com \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=alain.volmat@foss.st.com \
    --cc=b-brnich@ti.com \
    --cc=b-padhi@ti.com \
    --cc=benjamin.mugnier@foss.st.com \
    --cc=bryan.odonoghue@linaro.org \
    --cc=daniel.almeida@collabora.com \
    --cc=dave.stevenson@raspberrypi.com \
    --cc=devarsht@ti.com \
    --cc=hansg@kernel.org \
    --cc=hverkuil+cisco@kernel.org \
    --cc=jackson.lee@chipsnmedia.com \
    --cc=jacopo.mondi@ideasonboard.com \
    --cc=jai.luthra@ideasonboard.com \
    --cc=khilman@baylibre.com \
    --cc=kieran.bingham@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=loic.poulain@oss.qualcomm.com \
    --cc=m.felsch@pengutronix.de \
    --cc=m.tretter@pengutronix.de \
    --cc=mchehab@kernel.org \
    --cc=mehdi.djait@linux.intel.com \
    --cc=michael.riesch@collabora.com \
    --cc=mripard@kernel.org \
    --cc=nicolas.dufresne@collabora.com \
    --cc=niklas.soderlund@ragnatech.se \
    --cc=paulk@sys-base.io \
    --cc=r-donadkar@ti.com \
    --cc=ribalda@chromium.org \
    --cc=rouven.czerwinski@linaro.org \
    --cc=s.pueschel@pengutronix.de \
    --cc=sakari.ailus@linux.intel.com \
    --cc=sean@mess.org \
    --cc=stevecho@chromium.org \
    --cc=tfiga@chromium.org \
    --cc=tomi.valkeinen@ideasonboard.com \
    --cc=y-abhilashchandra@ti.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