Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1280142rda; Mon, 23 Oct 2023 07:59:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IELd0kY60hGNGtlvZRjY1xcCR6Q7zCXtKQqjMgeYH5lqXRJucBBW2sIpq4U25WaEeLeHcHg X-Received: by 2002:a17:90b:19c5:b0:27c:e062:c464 with SMTP id nm5-20020a17090b19c500b0027ce062c464mr10360005pjb.37.1698073153141; Mon, 23 Oct 2023 07:59:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698073153; cv=none; d=google.com; s=arc-20160816; b=K/feQuzVBKRuQ9lWYihVZycua5ya2IRsoTwk43AAasSZjmZV714dCRsk93QW1Cl2bN mKmN3TIXXNvD6jknazp5Be2VKQOVLWzuZOxFsj+Izh0wMimM6craOhLVPvgF+LBdZFrA s036lkLvjfAmZT/CdpmRqNS4T4wT/0SovIX6WW1rmWIk/1M6WoiIhyr9fguxgdm83ZLS FY0nFk0dn3otePhYNuWYdUfq4kHGGxtHF7v+6zUdJlwG1ylBvEcZlUvtZ4AiiEBUs40P jrfxU3txC240YBDPd3goEL0OXEb8FeJkVbqoRe7huiljFtcMGTKajrGSPg1IxtOYe/oT B1IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=W/0WC7RItMawrgL8SpGn0ORkdhr0XPCHb2iIFurmGk8=; fh=S6P1X78Y3YvQo6DfBZgVgReyC3ugaEHJtOxfGdeN+1c=; b=HfgCNPbkvbMjx5t3OXcYvyZbYfes9ve3J1fTscxNc7F5m+Gcr+qywxgU2pjh5NYCFH JkIeO5dW+dpDQic27D2uoZrGHrEjKavG/VQ2yZB2zx5A2C/gyGEHswS82AMjHKcd30qW YdwpAxi9jLKY/v6FiWEYvHEOPEFT33N3BhvF0Ca983ZRW+f7yCAuP3dTxMBscEel8ykn rGJ2WCXMlRdWxl5pOkCKKezbuCWaQKpnai/nqIjBnuC2eJ4DFzbguuV+dsIDdQXwlmi4 HTUup0fftZcvd+O5XuOIsHlWOFR5gjH5K9k66FyfVEWaxm6ye8V5zudrIoCRsJsEHls5 W6YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=r4GRNYVs; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=V9zBYozF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id g5-20020a170902740500b001c9b0be1391si6359399pll.614.2023.10.23.07.59.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 07:59:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=r4GRNYVs; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=V9zBYozF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 30962809AF9A; Mon, 23 Oct 2023 07:59:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233495AbjJWO6q (ORCPT + 99 others); Mon, 23 Oct 2023 10:58:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233625AbjJWO6f (ORCPT ); Mon, 23 Oct 2023 10:58:35 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8A73173C for ; Mon, 23 Oct 2023 07:58:16 -0700 (PDT) Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id 625325C036B; Mon, 23 Oct 2023 10:58:15 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Mon, 23 Oct 2023 10:58:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1698073095; x=1698159495; bh=W/ 0WC7RItMawrgL8SpGn0ORkdhr0XPCHb2iIFurmGk8=; b=r4GRNYVss2a6WBCuRW MDQ3LUTC9wccr5VVmBkD0SwP7Ab6QtXQLcXeF72aNQ0Lzhk1mnghKXlCrMz11O1C gzE+CGBBg1xt4aFSWhgG5Yax7rtaMGYEcpzRwyk7V/2j1udnuk5svn8qLSv+0v4p /enz2jzJ7wmmDGjeMVQLoMUTpMuXtj1BGQWG5LD4AdvA5CjKpHPm1ziYd83bewtf 4/2oTaA4Ks4aF/qTqjf1c9+MpASo1STtqhStbQT0hiBgLy906ia1tJ6uj0Haz1Xt kNdXO603RDgDzBGoOy8Vkoh07C45+YBQY2uZOLfXJfbOTmhsXk4M2xQZ0Z45Cf7d k4BA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1698073095; x=1698159495; bh=W/0WC7RItMawr gL8SpGn0ORkdhr0XPCHb2iIFurmGk8=; b=V9zBYozFVd47ADENJks7U1WkD/VH4 BvOdmo5VJWyDWLowJRe5n2/Opr45y8zxzwvBdfU0VRruiP54rZyU0ACilL4fxvqT Qk59KTtyc6EpZGgwY1xCR54vtztDe9KfU5bSIrfrpUV1bYDbldVJ6S7t2Y6JZCJP MZwICe9Loigh6J7dOC61/ie1MZyZ8fLYD48HG6XCsyHlzgf2ws0ntkCPVF4XW5oU MlSEcR2dSOFvlIRa1MaLsvCYxcDZzP4+wF6qA7N+vHJML3beH5qMl8jlPujQo6WD jguv3vXv5sxKYvxigZVCRxpy0FetH0ymjp0zyK5D3iedez1lAqjZkTT/g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrkeeigdekvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehgtdfsredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnheptdfgudekieeguefhleehfedthffggeefgfduueeihfeuueelkeevtedviedt vdeinecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 Oct 2023 10:58:14 -0400 (EDT) Date: Mon, 23 Oct 2023 16:58:12 +0200 From: Maxime Ripard To: Hans Verkuil Cc: Daniel Vetter , Emma Anholt , David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dave Stevenson Subject: Re: [PATCH v3 3/9] drm/vc4: hdmi: Add Broadcast RGB property to allow override of RGB range Message-ID: References: <20221207-rpi-hdmi-improvements-v3-0-bdd54f66884e@cerno.tech> <20221207-rpi-hdmi-improvements-v3-3-bdd54f66884e@cerno.tech> <12669999-295f-40c5-8c58-ba3ed26efb16@xs4all.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kg5ejgqcqfwxthnd" Content-Disposition: inline In-Reply-To: <12669999-295f-40c5-8c58-ba3ed26efb16@xs4all.nl> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 23 Oct 2023 07:59:10 -0700 (PDT) --kg5ejgqcqfwxthnd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Hans, On Thu, Oct 19, 2023 at 10:26:40AM +0200, Hans Verkuil wrote: > Hi Maxime, >=20 > On 19/10/2023 10:02, Maxime Ripard wrote: > > Hi, > >=20 > > On Wed, Oct 11, 2023 at 03:23:18PM +0200, Daniel Vetter wrote: > >> On Mon, 6 Mar 2023 at 11:49, Maxime Ripard wrote: > >>> > >>> From: Dave Stevenson > >>> > >>> Copy Intel's "Broadcast RGB" property semantics to add manual override > >>> of the HDMI pixel range for monitors that don't abide by the content > >>> of the AVI Infoframe. > >>> > >>> Signed-off-by: Dave Stevenson > >>> Signed-off-by: Maxime Ripard > >> > >> Stumbled over this grepping around, but would have been nice to lift > >> this into drm code and document the property. It's one of the legacy > >> ones from the table of horrors after all ... > >> > >> Shouldn't be an uapi problem because it's copypasted to much, just not= great. > >=20 > > We already discussed it on IRC, but just for the record I have a current > > series that should address exactly that: > >=20 > > https://lore.kernel.org/dri-devel/20230920-kms-hdmi-connector-state-v2-= 3-17932daddd7d@kernel.org/ > >=20 > > Maxime >=20 > I've pasted a snippet from that patch below for a quick review: >=20 > > /** > > * DOC: HDMI connector properties > > * > > + * Broadcast RGB (HDMI Specific): >=20 > Full vs Limited is actually not HDMI specific, DisplayPort can signal thi= s as > well for whatever it is worth. Sure, what I (and the original patch I guess) meant is that it's only ever used on HDMI connectors these days. If that ever changes, then we can update the doc. > > + * Indicates the RGB Range (Full vs Limited) used. >=20 > RGB Range -> RGB Quantization Range >=20 > > + * > > + * The value of this property can be one of the following: > > + * > > + * Automatic: > > + * RGB Range is selected automatically based on the mode > > + * according to the HDMI specifications. > > + * > > + * Full: > > + * Full RGB Range is forced. > > + * > > + * Limited 16:235: >=20 > It is very unfortunate that this is called "Limited 16:235" instead of ju= st "Limited" > since for color component bit depths > 8 these values are different. >=20 > I have no idea if it is possible to add an alias "Limited" that you can u= se instead. > In any case, this should document that it works just as well for higher b= it depths, > but with different limits. I had a look and it doesn't look like the property infrastructure can deal with aliases. I'll add something in the doc Thanks! Maxime --kg5ejgqcqfwxthnd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZTaKBAAKCRDj7w1vZxhR xWptAP42g9P7kv2iPbu4YrraFGmwXRYdv9Jwnqj1JWzCfk7IegEA6Id6EjqfGIDt 0180BH6z4cwus4NL2P4Cz/1Ox5aj7Q8= =OIoh -----END PGP SIGNATURE----- --kg5ejgqcqfwxthnd--