From: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
To: "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>,
"Dmitry Baryshkov" <dmitry.baryshkov@oss.qualcomm.com>,
"Daniel Stone" <daniels@collabora.com>,
"Cristian Ciocaltea" <cristian.ciocaltea@collabora.com>,
"John Harrison" <John.Harrison@igalia.com>,
"Jan Claußen" <jan.claussen10@web.de>
Cc: "Jan Claußen" <jan.claussen10@web.de>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6 2/8] drm/display: hdmi-state-helper: Force modeset on colorspace change
Date: Tue, 01 Dec 2026 16:08:59 +0100 [thread overview]
Message-ID: <8eSqdY4QQSOsnKpNfulqiA@collabora.com> (raw)
In-Reply-To: <20261121160725.6344-3-jan.claussen10@web.de>
On Saturday, 21 November 2026 17:06:54 Central European Standard Time Jan Claußen wrote:
> The colorimetry signalled to the sink is part of the AVI infoframe,
> which is only updated on a modeset. A change of the colorspace
> property therefore never reaches the sink.
>
> Treat a colorspace change like a change of the Broadcast RGB, output
> bpc or output format, and force a modeset.
>
> Signed-off-by: Jan Claußen <jan.claussen10@web.de>
> ---
> drivers/gpu/drm/display/drm_hdmi_state_helper.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/display/drm_hdmi_state_helper.c b/drivers/gpu/drm/display/drm_hdmi_state_helper.c
> index 7cdb7ca3dc12..9368e53c5945 100644
> --- a/drivers/gpu/drm/display/drm_hdmi_state_helper.c
> +++ b/drivers/gpu/drm/display/drm_hdmi_state_helper.c
> @@ -925,7 +925,8 @@ int drm_atomic_helper_connector_hdmi_check(struct drm_connector *connector,
>
> if (old_conn_state->hdmi.broadcast_rgb != new_conn_state->hdmi.broadcast_rgb ||
> old_conn_state->hdmi.output_bpc != new_conn_state->hdmi.output_bpc ||
> - old_conn_state->hdmi.output_format != new_conn_state->hdmi.output_format) {
> + old_conn_state->hdmi.output_format != new_conn_state->hdmi.output_format ||
> + old_conn_state->colorspace != new_conn_state->colorspace) {
> struct drm_crtc *crtc = new_conn_state->crtc;
> struct drm_crtc_state *crtc_state;
>
>
Forcing a modeset is quite a big hammer. Are we sure that a change in AVI infoframes
necessarily need a modeset? Can we update the AVI infoframes outside of connector's
atomic_enable instead?
next prev parent reply other threads:[~2026-12-01 15:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 16:06 [PATCH v6 0/8] drm: Add colorspace property support to the HDMI helpers Jan Claußen
2026-11-21 16:06 ` [PATCH v6 1/8] drm/connector: Fix typo in colorspace error messages Jan Claußen
2026-11-30 14:56 ` Maxime Ripard
2026-11-21 16:06 ` [PATCH v6 2/8] drm/display: hdmi-state-helper: Force modeset on colorspace change Jan Claußen
2026-11-30 14:56 ` Maxime Ripard
2026-12-01 15:08 ` Nicolas Frattaroli [this message]
2026-11-21 16:06 ` [PATCH v6 3/8] drm/connector: hdmi: Create the colorspace property Jan Claußen
2026-11-30 14:57 ` Maxime Ripard
2026-11-21 16:06 ` [PATCH v6 4/8] drm/bridge-connector: Pass supported colorspaces to the HDMI helpers Jan Claußen
2026-11-30 14:58 ` Maxime Ripard
2026-11-21 16:06 ` [PATCH v6 5/8] drm/bridge: dw-hdmi-qp: Forward supported colorspaces from platform data Jan Claußen
2026-11-21 16:06 ` [PATCH v6 6/8] drm/rockchip: vop2: Select the CSC matrix from the DRM colorimetry Jan Claußen
2026-11-21 16:06 ` [PATCH v6 7/8] drm/rockchip: dw_hdmi_qp: Set the VOP2 color space from the connector Jan Claußen
2026-11-21 16:07 ` [PATCH v6 8/8] drm/rockchip: dw_hdmi_qp: Advertise BT.709 and BT.2020 colorimetries Jan Claußen
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=8eSqdY4QQSOsnKpNfulqiA@collabora.com \
--to=nicolas.frattaroli@collabora.com \
--cc=John.Harrison@igalia.com \
--cc=airlied@gmail.com \
--cc=cristian.ciocaltea@collabora.com \
--cc=daniels@collabora.com \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jan.claussen10@web.de \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@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
all inboxes | Powered by JetHome®