From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: linux-media@vger.kernel.org,
Alexander Shiyan <eagle.alexander923@gmail.com>,
Fabio Estevam <festevam@gmail.com>,
Frieder Schrempf <frieder.schrempf@kontron.de>,
Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
Kieran Bingham <kieran.bingham@ideasonboard.com>,
Marek Vasut <marex@denx.de>,
Martin Kepplinger <martin.kepplinger@puri.sm>,
Rui Miguel Silva <rmfrfs@gmail.com>,
Tim Harvey <tharvey@gateworks.com>,
Purism Kernel Team <kernel@puri.sm>
Subject: Re: [PATCH v2 1/7] media: mc: Add local pad to pipeline regardless of the link state
Date: Tue, 16 Jan 2024 15:35:16 +0200 [thread overview]
Message-ID: <20240116133516.GA7325@pendragon.ideasonboard.com> (raw)
In-Reply-To: <ZaZoIXiM0XGDchIo@valkosipuli.retiisi.eu>
Hi Sakari,
On Tue, Jan 16, 2024 at 11:27:29AM +0000, Sakari Ailus wrote:
> On Tue, Jan 16, 2024 at 10:42:34AM +0200, Laurent Pinchart wrote:
> > When building pipelines by following links, the
> > media_pipeline_explore_next_link() function only traverses enabled
> > links. The remote pad of a disabled link is not added to the pipeline,
> > and neither is the local pad. While the former is correct as disabled
> > links should not be followed, not adding the local pad breaks processing
> > of the MEDIA_PAD_FL_MUST_CONNECT flag.
> >
> > The MEDIA_PAD_FL_MUST_CONNECT flag is checked in the
> > __media_pipeline_start() function that iterates over all pads after
> > populating the pipeline. If the pad is not present, the check gets
> > skipped, rendering it useless.
> >
> > Fix this by adding the local pad of all links regardless of their state,
> > only skipping the remote pad for disabled links.
> >
> > Cc: Alexander Shiyan <eagle.alexander923@gmail.com>
> > Fixes: ae219872834a ("media: mc: entity: Rewrite media_pipeline_start()")
> > Reported-by: Frieder Schrempf <frieder.schrempf@kontron.de>
> > Closes: https://lore.kernel.org/linux-media/7658a15a-80c5-219f-2477-2a94ba6c6ba1@kontron.de
> > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
>
> Could you add Cc: stable when sending the PR? This should be applied to 6.1
> and later.
I'll do so, far all patches in the series.
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2024-01-16 13:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-16 8:42 [PATCH v2 0/7] media: Fix mishandling of MEDIA_PAD_FL_MUST_CONNECT flag Laurent Pinchart
2024-01-16 8:42 ` [PATCH v2 1/7] media: mc: Add local pad to pipeline regardless of the link state Laurent Pinchart
2024-01-16 11:27 ` Sakari Ailus
2024-01-16 13:35 ` Laurent Pinchart [this message]
2024-01-16 13:55 ` Sakari Ailus
2024-01-16 8:42 ` [PATCH v2 2/7] media: mc: Fix flags handling when creating pad links Laurent Pinchart
2024-01-16 8:42 ` [PATCH v2 3/7] media: nxp: imx8-isi: Check whether crossbar pad is non-NULL before access Laurent Pinchart
2024-01-16 8:42 ` [PATCH v2 4/7] media: mc: Add num_links flag to media_pad Laurent Pinchart
2024-01-16 8:42 ` [PATCH v2 5/7] media: mc: Rename pad variable to clarify intent Laurent Pinchart
2024-01-16 8:42 ` [PATCH v2 6/7] media: mc: Expand MUST_CONNECT flag to always require an enabled link Laurent Pinchart
2024-01-16 8:42 ` [PATCH v2 7/7] media: nxp: imx8-isi: Mark all crossbar sink pads as MUST_CONNECT Laurent Pinchart
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=20240116133516.GA7325@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=eagle.alexander923@gmail.com \
--cc=festevam@gmail.com \
--cc=frieder.schrempf@kontron.de \
--cc=jacopo.mondi@ideasonboard.com \
--cc=kernel@puri.sm \
--cc=kieran.bingham@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=marex@denx.de \
--cc=martin.kepplinger@puri.sm \
--cc=rmfrfs@gmail.com \
--cc=sakari.ailus@iki.fi \
--cc=tharvey@gateworks.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