Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp249332lqg; Fri, 1 Mar 2024 04:19:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCULzi1ZqObFmELZvjLUzGaYVW/2m7yFEwiBc1EFbJtrXngH3Am4HMNGJtag8j5i2PyoN3EwWUi6NO1e0o3gxCA4DI0acuP74pRr86lN8A== X-Google-Smtp-Source: AGHT+IECe7rA1G5TDTRKxjKKNY+QfjSVBRjwc3QZ0Ah3M4JTeZjAMlXOUNYkrgY72sqappNDHmHI X-Received: by 2002:a05:6214:1631:b0:690:50b3:20ab with SMTP id e17-20020a056214163100b0069050b320abmr1323796qvw.41.1709295559247; Fri, 01 Mar 2024 04:19:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709295559; cv=pass; d=google.com; s=arc-20160816; b=l7cBDpKkzIWLZ9erIfxSlvW5/8Or6dp9nXJprJdY2DQtnCM1MITZ4LtkX9yMWGoSfM SZ+KzAR4i+AwpB0Ozc2+uM5LixsUPAg8IOkawk2Xar2d/sPDrGLreATMWhCGf0iIdgFf xJDSgyyy60EZlea6nM0CaabLmv3tPS6tS6wgszv90KlLrQwzMa0k24TV+Eeb5AbHJDUk vTgAaD1bJbXaDIPmV/vi6lYlZCNyju7Y3p86Vgp/PhNantOsDWi2AAzdAL2KSkAFxB6G gcvsM5DFOwLGvbvftRibplgAocsIFA2Dc2NNf0TxJ6khCQYdsteMit3a93B3BJUd95OM YpkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=H2H1AdZd79aWhMCfGasrxC/2W44STmzXeH85/Mmi+V4=; fh=BYUu9RbueRcWW6rHlDn3cRfzbNwbsk8sFraU9FwI2Ts=; b=ZqnljwUG/iysr/UAsrJcbtlbdz66WgV5CHDHpqM+rCN/W8NvecsjnzXC3mNSH6/vLw zeE5hMcPExwVszLFBgCNWCZOBqu9lD0aakyVTdZhZkcC7xIvx7tvwjI+l3dQ93AJdW4/ 3L3035HOrVE9ikwztjqs+fnBhSPagrBLHBe/bC3FTspf3iqXXXcezur/pIzCOEk3hWBr qam14uV67TEtLvorAhuw0FM9U+9uk66PgU+OQWB/MF6l6zdf38lzsud2kVJngy6g6EP0 p0I1K2UYDMUehbaDEVWnlODojL4m3tZkkLayK/TEbeJ6yhvbw0dFSEQQID0EDY9BC4BP p+qA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=S6lYDqXJ; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-88391-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88391-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id dv1-20020ad44ee1000000b0068fe284de30si3510403qvb.111.2024.03.01.04.19.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 04:19:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88391-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=S6lYDqXJ; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-88391-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88391-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E46BF1C22AF7 for ; Fri, 1 Mar 2024 12:19:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DB946E613; Fri, 1 Mar 2024 12:19:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="S6lYDqXJ" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 C760A4F1E5; Fri, 1 Mar 2024 12:19:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709295546; cv=none; b=L1euk9MF4AvAqI3VSlBlzT0RTA5JYKt0zucetBPCrlhE61CS6tzYpt2S7yIFpBFO/1B97rTyde1zFe1vD+XFGpm96sCy8/6NXmUk3AmhhUFKaWucF2LJ5eVZOHjfR0gK9fEv2ZUg2+gvTNRGe5sfiqm+3ia07O2voH+PDSRRDVw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709295546; c=relaxed/simple; bh=/JuogARoTSkexC999JDvQiVZli/6nhMtXRKfthwm9cw=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Pu4gonOE1H+bJ4u9TwwYeG78OXd1hQx96KUGfXN2X56OCuk5JjiqoCNFmlt4PBhc6H7413zyhX5zS8+xgz1zDRwSgdjAtbU2+KdhHTBbn136MIPlaPzA0N39QZ7X54KSrpitxQgHXthsxqJ14xM4rYUn8iJTHB8jo5jmNRlNFhE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=S6lYDqXJ; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1709295542; bh=/JuogARoTSkexC999JDvQiVZli/6nhMtXRKfthwm9cw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=S6lYDqXJrWXUDzPO1wTmvcUBucoziKYFzSnZOSZUEAB1QwwGMnwSj9RquoSAOkPJ/ ++HwlGFBlVjPES5nwc555SgdlGFrPN8PVYChSzRSTD7xQaR0O3JCCC1lIb2mLJtM31 kCyDlCATlHHcYdwBa3hsXYzOM8N8+FE3uUD0XkYXid7DYVxuw+Vpx628DAilTvjnk/ NcBvlpGOPQOxm8Hr2E+M0wtCChqfHXo/YJqFuJLjwaMF71knauhnn6nqVjoWOonb8K voWsn5IaQ7Cwlz4cnNjiGwOCUAVGjNT86uhYLgezNrfqseQxjy5zgS8lUHt8h3tkad 1uVuziX/wL+7w== Received: from eldfell (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pq) by madrid.collaboradmins.com (Postfix) with ESMTPSA id BEAED378000E; Fri, 1 Mar 2024 12:19:01 +0000 (UTC) Date: Fri, 1 Mar 2024 14:19:00 +0200 From: Pekka Paalanen To: Maxime Ripard Cc: Sebastian Wick , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Jonathan Corbet , Sandy Huang , Heiko =?UTF-8?B?U3TDvGJuZXI=?= , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Hans Verkuil , Ville =?UTF-8?B?U3lyasOkbMOk?= , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-sunxi@lists.linux.dev, Dave Stevenson Subject: Re: [PATCH v7 21/36] drm/connector: hdmi: Add Broadcast RGB property Message-ID: <20240301141900.1ee1e2ef.pekka.paalanen@collabora.com> In-Reply-To: <20240301-loyal-cornflower-oxpecker-83ed59@houat> References: <20240222-kms-hdmi-connector-state-v7-0-8f4af575fce2@kernel.org> <20240222-kms-hdmi-connector-state-v7-21-8f4af575fce2@kernel.org> <20240229194726.GB166694@toolbox> <20240301-light-impressive-grasshopper-adabeb@houat> <20240301112941.GE166694@toolbox> <20240301-loyal-cornflower-oxpecker-83ed59@houat> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/yomWKOIfqdy35zj6dRjUbn_"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/yomWKOIfqdy35zj6dRjUbn_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 1 Mar 2024 13:12:02 +0100 Maxime Ripard wrote: > On Fri, Mar 01, 2024 at 12:29:41PM +0100, Sebastian Wick wrote: > > On Fri, Mar 01, 2024 at 11:30:56AM +0100, Maxime Ripard wrote: =20 > > > On Thu, Feb 29, 2024 at 08:47:26PM +0100, Sebastian Wick wrote: =20 > > > > > @@ -1708,6 +1731,39 @@ EXPORT_SYMBOL(drm_connector_attach_dp_subc= onnector_property); > > > > > /** > > > > > * DOC: HDMI connector properties > > > > > * > > > > > + * Broadcast RGB (HDMI specific) > > > > > + * Indicates the Quantization Range (Full vs Limited) used.= The color > > > > > + * processing pipeline will be adjusted to match the value = of the > > > > > + * property, and the Infoframes will be generated and sent = accordingly. > > > > > + * > > > > > + * This property is only relevant if the HDMI output format= is RGB. If > > > > > + * it's one of the YCbCr variant, it will be ignored and th= e output will > > > > > + * use a limited quantization range. =20 > > > >=20 > > > > Uh, maybe just say that the quantization range is selected automati= cally > > > > in case a YCbCr output format is in use. I'm not sure every YCbCr > > > > variant requires limited and even if it does, new formats could cha= nge > > > > this. =20 > > >=20 > > > I documented what i915 is doing: > > > https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/i915/d= isplay/intel_hdmi.c#L2143 =20 > >=20 > > Sure, this is one valid strategy for the automatic behavior of YCbCr. > > Drivers could also always send an InfoFrame to ensure full range where > > possible. The point here is that this property shall not affect YCbCr > > output formats! > >=20 > > Maybe it's even better to say "driver specific" instead of "automatic".= =20 >=20 > Honestly, I'm not sure what you want from me here. Ville and you > insisted on the previous version to document what i915 is doing and to > follow whatever the behaviour was, and that we shouldn't spend time > improving the property. Fine, I did that. >=20 > But now, you want me to ... improve the property? Just drop the "and the output will use a limited quantization range" part. Thanks, pq --Sig_/yomWKOIfqdy35zj6dRjUbn_ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAmXhx7QACgkQI1/ltBGq qqcFMhAApnw120yGkMTU78b9MLRYnIpCL8IVDkC74fOg134teNF3ZHRveBy91rEy yGr5TiB5iXahBTUIM8oSttIEu0IpqTauZISYsBOnVXqukbO2MktR8Nbec4YioVb0 HFLYbyzewiyTOkuF5Ud9C7icE2g65xEt/RxserG73jUAj6CTnhWRl8zbZQOo5ze7 1P8E2uWGehaZh8YRzbwIjXJYxj8gEUfj5vZy7HX+YmPYfls/lanw0XWU2ON+rs1f xFM2u6nDeQ30pGSG7I0ccD6oXFw4yesbSusecHexpByjwIyDMlz0uP5HkLuqeI9I mBZmvX4YEfyjQgq3H0Rnsm1OJIU3SC2pGQ9YLJxpmA/dSf3PZ2ktHsz3WQjRxbhr aJq1d8DroMft41SRdindTDUwg2lssg1MNWu3GRLee8vWxc8Paf/4eNEhbolfTFHB dXagpKniLK0Fk8BCpKv0M2TuKyiv5Hc5jCiwHtHX3ESIvhBC952k7UP4aHRPif5U Df9nQwfRKgOb9CYXPKZK+Ug6u9Ayxb1m47e2Z3K0duRyi4I7yMz9M8FAEguvMNsH YoghGtR4geDcBruuLIOI2yeORwOYorHRww9U+J9spCN1zEcbO+9aCxZ+EmEKABtw XXN/e3yaSp0gEqGOQfIFopUV3gYq7M1YcNFP4hMRzIro6qVwqUQ= =+Rkf -----END PGP SIGNATURE----- --Sig_/yomWKOIfqdy35zj6dRjUbn_--