Re: [PATCH v6 2/8] drm/display: hdmi-state-helper: Force modeset on colorspace change

From: Nicolas Frattaroli

Date: Tue Dec 01 2026 - 10:10:01 EST


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@xxxxxx>
> ---
> 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?