Received: by 2002:a05:7412:b112:b0:f9:3106:f1c0 with SMTP id az18csp131631rdb; Mon, 18 Dec 2023 01:05:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IERJYyQ9KHRo4EapmOP9MK8LVH90BNagRPzVALMfmcssCDp/M35SAwbl3bYD0tz2wnDoB2x X-Received: by 2002:a05:6a20:d42f:b0:190:53c1:fee2 with SMTP id il47-20020a056a20d42f00b0019053c1fee2mr17432617pzb.19.1702890318094; Mon, 18 Dec 2023 01:05:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702890318; cv=none; d=google.com; s=arc-20160816; b=ak/SprWU60s4PPRQy+Kq8/Bc/P9VRD19rMSyInbB4ex4mojN1MwZCJi5Xmf71nn/0p HBkKzqw9MqpdaTIb7GRF/txWEtXoijoVBF+Fo2EvBs54OAj1spKIcj+GaDRyFfBi1XAS B6X+kqNnimcPwiNtfCSFqAuND+MQAPOml0a1KEnEjayQwgHoxU4YrkUbO6xordpJNvPu PEkUxy+AjUEc4knYIFF9wdYOPvpb9qrRMT8NOH4JD2fAxvNgwmMhr1QDNZ38l4U8azsc zG8l5EFjhNDmPnZC+MlcyrrShk2smxb80hToj4jmj2JtEP6cS1XwgVexi5qDlR5i3esL 7zUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=F3diPcF9S5jPKna3ampf/oIYXrCM7657tMyW9eCZ5xg=; fh=jejk4hcq7/BxBx++uS6mNE2629zToLBrV5YsK7QQT38=; b=zXH9CdAQRsOA+lwYnPSVKsRQE9GxrM2cYf4B11oDnidpzjp/4UMHvxsPcSVsBA9QzY m1qw27bbGf8H2u+V+RBXuT0vK6kvlawzqqDZba/JdipFQi0M6CX1soUa57NexE4hffhR 4QghVKxx0uXr9goKNxrPviDFdHBG34lf0PpP/pECqA0aPg3hwSDBbsnxYdXNJyj3NgQg D+Lef5lOn+xGYe/r+fQR7Shu3tih3QC5EacY/oN0TTn29tRqUze2R3z5Fa8vNOsnpU8d BsyxWF/5W+P23qDZHplMRSg6ZbNVellN4WjJyBnfOUYi/B73q3A5/vaaJFnqdoHzF8yt 5ydQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DbjhWmQv; spf=pass (google.com: domain of linux-kernel+bounces-3207-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3207-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x31-20020a17090a6c2200b002868d3e1ab4si9241560pjj.170.2023.12.18.01.05.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 01:05:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3207-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DbjhWmQv; spf=pass (google.com: domain of linux-kernel+bounces-3207-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3207-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BA507282F29 for ; Mon, 18 Dec 2023 09:05:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FA181119A; Mon, 18 Dec 2023 09:05:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DbjhWmQv" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D24E611C91; Mon, 18 Dec 2023 09:05:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF990C433C7; Mon, 18 Dec 2023 09:05:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702890310; bh=yAr4KLt08A7Iall+6S1OSy+IFrkOCzjW+AgOrCIVPKA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DbjhWmQvIZQyVfYOkuJm8tHcyZGWKsv9OSBNiZq31GpFDSNrmj6IgTFqSkvkSMgfn +nCjAAhsczAAma4vp42q/dCqJozoRxZMeF7cMgdTjNKOXkHIerUIbeJeMNuJN3q/Qu rCe+WdEyOoCgGsS3nt1B5vSVNQ7w7141J/DRAI/stPKR2mG/GLsU+1ylIArQL/PvIk RJheNYZxKmhuC1/IHXHsIif9QERvDPYQFwu3cCF0TA3QGHPqO33eAarcagtA71p0DH cb5CqNQIYLqPErT8KehTNCSRiljhSJy345vACn3bUGNU74NZdflBt7MDuu9vLw52Mt gT8Oy6c/Hgw0Q== Date: Mon, 18 Dec 2023 10:05:07 +0100 From: Maxime Ripard To: Alex Bee Cc: Sandy Huang , Heiko =?utf-8?Q?St=C3=BCbner?= , Andy Yan , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 20/27] drm/rockchip: inno_hdmi: Correctly setup HDMI quantization range Message-ID: References: <20231216162639.125215-1-knaerzche@gmail.com> <20231216162639.125215-21-knaerzche@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="syuqoz5ybbowf3nd" Content-Disposition: inline In-Reply-To: <20231216162639.125215-21-knaerzche@gmail.com> --syuqoz5ybbowf3nd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 16, 2023 at 05:26:31PM +0100, Alex Bee wrote: > @@ -431,6 +452,9 @@ static int inno_hdmi_setup(struct inno_hdmi *hdmi, > else > inno_conn_state->colorimetry =3D HDMI_COLORIMETRY_ITU_709; > =20 > + inno_conn_state->rgb_limited_range =3D > + drm_default_rgb_quant_range(mode) =3D=3D HDMI_QUANTIZATION_RANGE_LIMIT= ED; > + > /* Mute video and audio output */ > hdmi_modb(hdmi, HDMI_AV_MUTE, m_AUDIO_MUTE | m_VIDEO_BLACK, > v_AUDIO_MUTE(1) | v_VIDEO_MUTE(1)); This needs to be done at atomic_check time: the expectation is that by the time you commit the state, everything is prepared for it. Maxime --syuqoz5ybbowf3nd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZYALQwAKCRDj7w1vZxhR xQzzAP0YVFac7ehXKiTwVJRxtQYeIMZmYW1VoSFT4wGJVIk8ZAD+PBIYdoQZJl7b X7Gv0oBzZzU9IKJ+0sxAUitZEgq+5w8= =+z9c -----END PGP SIGNATURE----- --syuqoz5ybbowf3nd--