From: "Luca Ceresoli" <luca.ceresoli@bootlin.com>
To: "Laurentiu Palcu" <laurentiu.palcu@oss.nxp.com>,
<imx@lists.linux.dev>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
"Shawn Guo" <shawnguo@kernel.org>,
"Sascha Hauer" <s.hauer@pengutronix.de>,
"Pengutronix Kernel Team" <kernel@pengutronix.de>,
"Fabio Estevam" <festevam@gmail.com>
Cc: <dri-devel@lists.freedesktop.org>,
"Sandor Yu" <sandor.yu@nxp.com>, <linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v6 5/9] drm/imx: Add support for i.MX94 DCIF
Date: Tue, 11 Nov 2025 16:34:39 +0100 [thread overview]
Message-ID: <DE5Z4R8JBA2F.1SKUAS1R6BCGY@bootlin.com> (raw)
In-Reply-To: <20251103-dcif-upstreaming-v6-5-76fcecfda919@oss.nxp.com>
On Mon Nov 3, 2025 at 4:30 PM CET, Laurentiu Palcu wrote:
> From: Sandor Yu <sandor.yu@nxp.com>
>
> The i.MX94 Display Control Interface features:
> * Up to maximum 3 layers of alpha blending:
> - 1 background layer(Layer 0);
> - 1 foreground layer(Layer 1);
> - A programmable constant color behind the background layer;
> * Each layer supports:
> - programmable plane size;
> - programmable background color;
> - embedded alpha and global alpha;
> * Data output with CRC checksum for 4 programmable regions;
>
> Signed-off-by: Sandor Yu <sandor.yu@nxp.com>
> Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
[...]
> +static struct drm_bridge *dcif_crtc_get_bridge(struct drm_crtc *crtc,
> + struct drm_crtc_state *crtc_state)
> +{
> + struct drm_connector_state *conn_state;
> + struct drm_encoder *encoder;
> + struct drm_connector *conn;
> + struct drm_bridge *bridge;
> + int i;
> +
> + for_each_new_connector_in_state(crtc_state->state, conn, conn_state, i) {
> + if (crtc != conn_state->crtc)
> + continue;
> +
> + encoder = conn_state->best_encoder;
> +
> + bridge = drm_bridge_chain_get_first_bridge(encoder);
> + if (bridge)
> + return bridge;
> + }
> +
> + return NULL;
> +}
> +
> +static void dcif_crtc_query_output_bus_format(struct drm_crtc *crtc,
> + struct drm_crtc_state *crtc_state)
> +{
> + struct dcif_crtc_state *dcif_state = to_dcif_crtc_state(crtc_state);
> + struct drm_bridge *bridge __free(drm_bridge_put) = NULL;
> + struct drm_bridge_state *bridge_state;
> +
> + dcif_state->bus_format = MEDIA_BUS_FMT_RGB888_1X24;
> + dcif_state->bus_flags = 0;
> +
> + bridge = dcif_crtc_get_bridge(crtc, crtc_state);
> + if (!bridge)
> + return;
> +
> + bridge_state = drm_atomic_get_new_bridge_state(crtc_state->state, bridge);
> + if (!bridge_state)
> + return;
> +
> + dcif_state->bus_format = bridge_state->input_bus_cfg.format;
> + dcif_state->bus_flags = bridge_state->input_bus_cfg.flags;
> +}
I haven't reviewed the entire patch in detail, but the refcounting is
correct now:
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> # bridge refcounting
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2025-11-11 15:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-03 15:30 [PATCH v6 0/9] Add support for i.MX94 DCIF Laurentiu Palcu
2025-11-03 15:30 ` [PATCH v6 1/9] dt-bindings: display: fsl,ldb: Add i.MX94 LDB Laurentiu Palcu
2025-11-03 15:30 ` [PATCH v6 2/9] drm/bridge: fsl-ldb: Get the next non-panel bridge Laurentiu Palcu
2025-11-03 15:30 ` [PATCH v6 3/9] drm/bridge: fsl-ldb: Add support for i.MX94 Laurentiu Palcu
2025-11-03 15:30 ` [PATCH v6 4/9] dt-bindings: display: imx: Add i.MX94 DCIF Laurentiu Palcu
2025-11-03 15:30 ` [PATCH v6 5/9] drm/imx: Add support for " Laurentiu Palcu
2025-11-11 15:34 ` Luca Ceresoli [this message]
2025-11-03 15:30 ` [PATCH v6 6/9] dt-bindings: clock: nxp,imx95-blk-ctl: Add ldb child node Laurentiu Palcu
2025-11-03 15:30 ` [PATCH v6 7/9] arm64: dts: imx943: Add display pipeline nodes Laurentiu Palcu
2025-11-03 15:30 ` [PATCH v6 8/9] arm64: dts: imx943-evk: Add display support using IT6263 Laurentiu Palcu
2025-11-03 15:30 ` [PATCH v6 9/9] MAINTAINERS: Add entry for i.MX94 DCIF driver Laurentiu Palcu
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=DE5Z4R8JBA2F.1SKUAS1R6BCGY@bootlin.com \
--to=luca.ceresoli@bootlin.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=laurentiu.palcu@oss.nxp.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=sandor.yu@nxp.com \
--cc=shawnguo@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/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