Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp90626rdh; Mon, 18 Dec 2023 05:22:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IErxW2cIAFzC/aehvxoO7XCsi0g3JwYEx8WMeNhmBAfBytgjLdeByvMphu7Y3VsAVTRq1aZ X-Received: by 2002:a17:90b:4b0e:b0:28b:4c9f:150 with SMTP id lx14-20020a17090b4b0e00b0028b4c9f0150mr4479648pjb.16.1702905746778; Mon, 18 Dec 2023 05:22:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702905746; cv=none; d=google.com; s=arc-20160816; b=S6pIS0015gd8v9lOHLpmvABSUupNHbw4f+oRQM4i2bgQqw7kRRa48JreznuxsHULeb Ray0yCKAK4UL5lDq0CUEWoC7Xqs9BXTZvVqH4YjtO4SnEwGtsoU9pkfCJUeqmclz+RQ4 vO6RIQgYOBrSHtAXDz+z6JpCGa396T9C3AhXvz4YgF9hhNbjuXFN/KI+DxEYDTWbZG6j mTJKQgeOkgVTYvasAVI6z7HPxPZDSzDguyhHvC0lIBKYFg7NHezGsvYa7zRIt8uKtKwd 3BUOtAPmCQ9m75kp48Fulk1zvTpNTJA3tUvfNbFhsfvIrEsdm9vP2PTi+QEg7B+/2oLW tPvA== 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=dVxr3PKekeapiNQok1MwlcXFmsGPAYIVfbmzdOjct2w=; fh=jejk4hcq7/BxBx++uS6mNE2629zToLBrV5YsK7QQT38=; b=nzTfi497nOAkO24m/pu/bXyivsGa8im3BDRGEthYseCxKN7vWy2HpYGI4OJBgfUei7 PP9mhaQygnO8hVGYGhj6u5HXwhVCaMpj5yq5dPCHJSeb6b/Dox84m1VohucFbMwt2Xuj 1XGk9XZsGqpQ5ZZpEH8hkownDp8hKT1ZoxnK5QFe/fGUEqAyF4LJgVEQB3nkWNP5sU4U HQIQSPJKwGqI64Pgk3eEacMc3QMLfIeiTwfgQuzP7PekPZLh5zCVxKB7ljyWUjyxeapz DhCha0xoXW7aJ3WNc1f7B3VtCLc3tHdevBYJwXfvxaZOwcw+Uf7MI2WPhTcZFfUsXt// lAWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JhWBueRn; spf=pass (google.com: domain of linux-kernel+bounces-3711-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3711-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 b15-20020a170902b60f00b001cf5d537eb6si10268414pls.190.2023.12.18.05.22.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 05:22:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3711-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=JhWBueRn; spf=pass (google.com: domain of linux-kernel+bounces-3711-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3711-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 68D5E281299 for ; Mon, 18 Dec 2023 13:17:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2777129EC5; Mon, 18 Dec 2023 13:13:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JhWBueRn" 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 BF5E95A876; Mon, 18 Dec 2023 13:13:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFB46C433C8; Mon, 18 Dec 2023 13:13:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702905189; bh=udY2ZVYbIZd5ZCe58uJ//Cte5cbMyGl062PfD6ipia8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JhWBueRnhK0JsdbnxH4+BY37nfhJ46YbxaBGKzscfg+bDukJ0xtuuKQhqZ90N+xrd DnWZvroui0d1TjJ3YU7pR+v4T3FBVzMWB+XjOUgOT2f6xSgwV9VUgs0WUphcGe1Auo Sz9vu2+Xthx4C7T3ckCWDWHLHKcLoUyC78mYi/WXmlF3yL9dvZL//Tp8WHE+VSmPlc ZEiEvtV8thrqjPDo/6Br+rEmCItsTeVv0IU+WHQg5AafCOaVg1mxLwz5px90CYrVOo H8Y8aGW7qZA6r/QldRxslG1Tc1BzajLkpTWXKZm4DxEpcv1fal+P4xDiNa3yYlheZr oOYIxgBZw6OPA== Date: Mon, 18 Dec 2023 14:13:06 +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="jgxrix7gwqmw7nf2" Content-Disposition: inline In-Reply-To: --jgxrix7gwqmw7nf2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 18, 2023 at 01:37:47PM +0100, Alex Bee wrote: >=20 > Am 18.12.23 um 10:05 schrieb Maxime Ripard: > > 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; > > > + inno_conn_state->rgb_limited_range =3D > > > + drm_default_rgb_quant_range(mode) =3D=3D HDMI_QUANTIZATION_RANGE_L= IMITED; > > > + > > > /* 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. > OK. I guess that also applies to the other members of > inno_hdmi_connector_state (former hdmi_data) and was wrong all the time. Yeah, this will apply to all the members of inno_hdmi_connector_state indeed Maxime --jgxrix7gwqmw7nf2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZYBFYgAKCRDj7w1vZxhR xY2XAQCR6tCncnAWA8MdEVEaMfWfdUgSjMlsog4s3k0fwAsIlAD/cfsVKMaQvv/v EP9lwRSub/nFdJFP70GUiOmW3sWmZgM= =BBqm -----END PGP SIGNATURE----- --jgxrix7gwqmw7nf2--