From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A412C606A320 for ; Tue, 1 Dec 2026 15:09:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key, unprotected) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=zohomail header.b=eqTEc1Ww Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0950910F9DF; Tue, 1 Dec 2026 15:09:26 +0000 (UTC) Received: from sender6-pp-f112.zoho.com (sender6-pp-f112.zoho.com [165.173.180.112]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8656E10F9CE for ; Tue, 1 Dec 2026 15:09:19 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1796137748; cv=none; d=zohomail.com; s=zohoarc; b=Tun2eOVDZyWslaTFkmBoxNvJuZFkO5ZwfnIGCC0eN2Wl9I4OM1O1HV9s33VvLjDD6l6Ir3Kmy6mOUm+S5/lLhtYYPixcFY5sin2rfZrqtktpYdnnwHfxoRgApv6+ZY0Kml+vuriFzuVp49Ypn1PawfFdO/qn4rMT5H/PweeZJag= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1796137748; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=YR2OHX8rYiJE4Ig6Sxdt/3AYsKaqxnaSS/Qq+nZwOCY=; b=HDMt5KL6YOG5TKSZs++DFrLGhdW7JG2/H6wGdw7YdcS6gLuqk+ipLBsrexrAZKjN/SaI4gQtkOLmaS/C0EgsDs6JJTIggfdihd0hx7q1shYRa4uHpCDaH5mz1n4nkzR8oBOHIdHoVsvAhb39U7RrvlClpyIVCAV67NdrQfaWjbc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=nicolas.frattaroli@collabora.com; dmarc=pass header.from= DKIM-Signature: a=rsa-sha256; b=eqTEc1WwGemFXom9xWtc2lO8KxWfGQb4jhG9MxVTwPITkCJof2CS1sCd1Awi/6oFgWe/+B8riKhWZeBnmffVMpnA3KOu8lagiahbn2xlxgIZrlq4A6oWW6w7PP2dBtO9APElQSRMkCdpb+Y5ECor44wU2eZq3/zzx0QlZo2cfcw=; c=relaxed/relaxed; s=zohomail; d=collabora.com; v=1; bh=YR2OHX8rYiJE4Ig6Sxdt/3AYsKaqxnaSS/Qq+nZwOCY=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; Received: by smtp.zohomail.com with SMTPS id 179613774457429.073271723665243; Tue, 1 Dec 2026 07:09:04 -0800 (PST) From: Nicolas Frattaroli To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Dmitry Baryshkov , Daniel Stone , Cristian Ciocaltea , John Harrison , Jan =?UTF-8?B?Q2xhdcOfZW4=?= Cc: Jan =?UTF-8?B?Q2xhdcOfZW4=?= , 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 Message-ID: <8eSqdY4QQSOsnKpNfulqiA@collabora.com> In-Reply-To: <20261121160725.6344-3-jan.claussen10@web.de> References: <20261121160725.6344-1-jan.claussen10@web.de> <20261121160725.6344-3-jan.claussen10@web.de> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "dri-devel" X-Spam-Status: No, score=-13.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Saturday, 21 November 2026 17:06:54 Central European Standard Time Jan C= lau=C3=9Fen 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. >=20 > Treat a colorspace change like a change of the Broadcast RGB, output > bpc or output format, and force a modeset. >=20 > Signed-off-by: Jan Clau=C3=9Fen > --- > drivers/gpu/drm/display/drm_hdmi_state_helper.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/gpu/drm/display/drm_hdmi_state_helper.c b/drivers/gp= u/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, > =20 > if (old_conn_state->hdmi.broadcast_rgb !=3D new_conn_state->hdmi.broadc= ast_rgb || > old_conn_state->hdmi.output_bpc !=3D new_conn_state->hdmi.output_bp= c || > - old_conn_state->hdmi.output_format !=3D new_conn_state->hdmi.output= _format) { > + old_conn_state->hdmi.output_format !=3D new_conn_state->hdmi.output= _format || > + old_conn_state->colorspace !=3D new_conn_state->colorspace) { > struct drm_crtc *crtc =3D new_conn_state->crtc; > struct drm_crtc_state *crtc_state; > =20 >=20 =46orcing 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 con= nector's atomic_enable instead?