Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2052439lqb; Mon, 27 May 2024 06:30:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWtkFmUUGxil2yO4TkTUMqfa+NcfEcp4HOULA/aRuDCSjBylj8TAy8aZ1LJFrpQyyK9tf5u8GUgeJ4da6RD+l75WAb4EjMoxV7ryi9ETA== X-Google-Smtp-Source: AGHT+IF4kR5JHixEcOCRnDM0VAaqsKZxcUq/FOBWSBDtmsvHAajYe5zJJQxVl5dn8QAbEWCD4yyF X-Received: by 2002:a17:906:28cb:b0:a62:b84e:2d79 with SMTP id a640c23a62f3a-a62b84e3a2fmr397185266b.32.1716816658649; Mon, 27 May 2024 06:30:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716816658; cv=pass; d=google.com; s=arc-20160816; b=vdEFQEFCzLNHSeXjTOkNezohFIdMYcVAXmrKZiiCIo1JBTriWWQkNhPiomnFSTutvT ZiTCcaSNIIXWQCPBbZLTxhmwPx8Mrvx1NBn7y2PrEAHwVt+DIXq1IvATPmnqbYBNlTNY wXNLRyG5nykWggqlUg8/3nYlwt2T03Kdouej38sVhsw1LAb4/bsCwbH6MR9mGv4j83qH IJkjzyindeifWdABA7SQ+4OO/7ZiWW4NjvUGJflYGvLARD0ObgEtvQis/B921A1ibCvs ++GAOkN9TByIxB4F9EVKtIvLTsbcG0hoPGji1vzNUyKTxrasj5pTKpi/wrwFWE+qO7A4 2+DA== ARC-Message-Signature: i=2; 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=iRrU7hSbsvaFZDGnzIn4qdlyuM0lAI22gYIuJ37jqkc=; fh=h4X/nf4IW7NfPdiqlv4AGCn2SUNlaTA8xb6pbxt6Twg=; b=OzwX+JOCzEinQ81nr5VnEGxAbTkcrbH6DOUgsepYLUKGM8WC9qPJOjCBioxPLEGr8p MpbGTvMx5jI25pz5hXorUh6EqpPbhC7QT4qtS2AMgCU7LSVAJdHqfAjgEme2pTy5hxD1 FTyB0PqAwpTNMIsNIVzT4qfSlj8zatSSoosqEzcIXoLUMgfgNMFztidO8lXY0tn0qSxR 9UjWjca10cqAMI+OG631OZBDrhB9IwKrQ5ty6t7yw7Nj11o+RyGDl2yyWjS8UVNDKFlM 1y5dcO8BeI8nNb8yxAvkXVEfID1CYnS3gYAI/SrksU2+5e7b1jlRKt+JOIXQQQCqYdm0 lfSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F2glDx+3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190701-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190701-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc66735si378560366b.600.2024.05.27.06.30.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 06:30:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190701-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F2glDx+3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190701-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190701-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 31E461F21549 for ; Mon, 27 May 2024 13:30:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1142715F30B; Mon, 27 May 2024 13:30:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="F2glDx+3" 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 0E05415ECFE; Mon, 27 May 2024 13:30:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716816623; cv=none; b=bLM3jKfs9+IzvMcj41KzNa3KVq+oG/WqMki8EWUUMXOJ3EOz/kyORnedJZcc2RQwIdZDCcPxRbmFbmf9jHvaMuYpl0BbjcIBDd3BgZn4iNTz8+81hwE409oiEQf1rmP90U4ZDgNEzu3Q4ROW2sISWUUMJpzQhCtlFMYlhv3cEpw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716816623; c=relaxed/simple; bh=TF/G2ffwfrBRISpD7K1d5EZ9ItCYMb2x92oWHu7T4AM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lQJxiEOy+vK8GxzS+YiFkGkebOzg+lS3X3/BnddotmX8ZTenYUgxfc7ACJdC+Mhl70WF1xbkhmzwMele4fzZTaOi6sEktbhjXJsxUgFybPaUclkVUbjQXFJ5ky0kzcs0lQBpdJ8OAyQlcWU17LVIwdlL3CdDHbjVegF14BuTX2o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=F2glDx+3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48CB1C4AF07; Mon, 27 May 2024 13:30:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716816622; bh=TF/G2ffwfrBRISpD7K1d5EZ9ItCYMb2x92oWHu7T4AM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F2glDx+39JvZ8wnXQ32eLjUP4/ijfHmYOPAR3IWCS52WYonp3adypyoHL43pOKEIw pua5H9IocB1EWiS+PP8277F61bmkw/7YM6Zq/yAJnDph5evoOKVrSMVPEEC8kfF0Lc eCinKxXlFityRJ45ODnWMC4rgTnkq1De/XcY6nde07CDm+9iFxYSe1hibktpnIBBA8 u5g/nqZzec8VeOsqqIqlj+ggMKD4mFYlVtfUDdcqlReD4FRfkGlNeMTtcWH0MUdHrL DzfbRjC7mgqW3t9+cKg/mO/eRsTT+seji5fjvNsd1TkEPIKzMzkKVXvTv2v83M68us +LBBBDXRC+udA== Date: Mon, 27 May 2024 15:30:19 +0200 From: Maxime Ripard To: Dmitry Baryshkov Cc: Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Jonathan Corbet , Sandy Huang , Heiko =?utf-8?Q?St=C3=BCbner?= , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andy Yan , Hans Verkuil , Sebastian Wick , 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 , Pekka Paalanen Subject: Re: [PATCH v14 17/28] drm/connector: hdmi: Add Broadcast RGB property Message-ID: <20240527-colorful-orange-bug-bbeefe@houat> References: <20240521-kms-hdmi-connector-state-v14-0-51950db4fedb@kernel.org> <20240521-kms-hdmi-connector-state-v14-17-51950db4fedb@kernel.org> <4n55dbl2h275z5ubebigri4xjtjsvt44w62n656srdgndcav2j@rrq5haucqx5u> <20240527-adamant-just-spaniel-ebed4e@houat> 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-sha384; protocol="application/pgp-signature"; boundary="rh4txa2gphc5y7co" Content-Disposition: inline In-Reply-To: --rh4txa2gphc5y7co Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, May 27, 2024 at 12:43:18PM GMT, Dmitry Baryshkov wrote: > On Mon, May 27, 2024 at 11:02:13AM +0200, Maxime Ripard wrote: > > Hi, > >=20 > > Thanks again for that thorough review :) > >=20 > > On Thu, May 23, 2024 at 01:22:56PM GMT, Dmitry Baryshkov wrote: > > > On Tue, May 21, 2024 at 12:13:50PM +0200, Maxime Ripard wrote: > > > > The i915 driver has a property to force the RGB range of an HDMI ou= tput. > > > > The vc4 driver then implemented the same property with the same > > > > semantics. KWin has support for it, and a PR for mutter is also the= re to > > > > support it. > > > >=20 > > > > Both drivers implementing the same property with the same semantics, > > > > plus the userspace having support for it, is proof enough that it's > > > > pretty much a de-facto standard now and we can provide helpers for = it. > > > >=20 > > > > Let's plumb it into the newly created HDMI connector. > > > >=20 > > > > Reviewed-by: Dave Stevenson > > > > Acked-by: Pekka Paalanen > > > > Reviewed-by: Sebastian Wick > > > > Signed-off-by: Maxime Ripard > > > > --- > > > > Documentation/gpu/kms-properties.csv | 1 - > > > > drivers/gpu/drm/display/drm_hdmi_state_helper.c | 4 +- > > > > drivers/gpu/drm/drm_atomic.c | 2 + > > > > drivers/gpu/drm/drm_atomic_uapi.c | 4 ++ > > > > drivers/gpu/drm/drm_connector.c | 88 +++++++++++++= ++++++++++++ > > > > include/drm/drm_connector.h | 36 ++++++++++ > > > > 6 files changed, 133 insertions(+), 2 deletions(-) > > > >=20 > > > > diff --git a/Documentation/gpu/kms-properties.csv b/Documentation/g= pu/kms-properties.csv > > > > index 0f9590834829..caef14c532d4 100644 > > > > --- a/Documentation/gpu/kms-properties.csv > > > > +++ b/Documentation/gpu/kms-properties.csv > > > > @@ -15,11 +15,10 @@ Owner Module/Drivers,Group,Property Name,Type,P= roperty Values,Object attached,De > > > > ,,=E2=80=9Csaturation=E2=80=9D,RANGE,"Min=3D0, Max=3D100",Connecto= r,TBD > > > > ,,=E2=80=9Chue=E2=80=9D,RANGE,"Min=3D0, Max=3D100",Connector,TBD > > > > ,Virtual GPU,=E2=80=9Csuggested X=E2=80=9D,RANGE,"Min=3D0, Max=3D0= xffffffff",Connector,property to suggest an X offset for a connector > > > > ,,=E2=80=9Csuggested Y=E2=80=9D,RANGE,"Min=3D0, Max=3D0xffffffff",= Connector,property to suggest an Y offset for a connector > > > > ,Optional,"""aspect ratio""",ENUM,"{ ""None"", ""4:3"", ""16:9"" }= ",Connector,TDB > > > > -i915,Generic,"""Broadcast RGB""",ENUM,"{ ""Automatic"", ""Full"", = ""Limited 16:235"" }",Connector,"When this property is set to Limited 16:23= 5 and CTM is set, the hardware will be programmed with the result of the mu= ltiplication of CTM by the limited range matrix to ensure the pixels normal= ly in the range 0..1.0 are remapped to the range 16/255..235/255." > > >=20 > > > Should it still be defined as a generic property? > >=20 > > I'm not sure what you mean here, sorry. It's being documented as a > > connector property now, so it's very much still listed as a generic > > property? >=20 > I didn't perform my duty well enough and I didn't check the file for > other instances of the property. Now I indeed see a generic "Broadcast > RGB" property, but to me it looks like having a different set of values: >=20 > ,,"""Broadcast RGB""",ENUM,"{ =E2=80=9Coff=E2=80=9D, =E2=80=9Cauto=E2=80= =9D, =E2=80=9Con=E2=80=9D }",Connector,TBD That's not really what I meant: that file is deprecated now and it's not where we document the properties anymore. This patch has improved that documentation and moved it to the new place, and removed the deprecated part. However, this line shouldn't be there at all. I'll add a patch to remove it. Thanks! Maxime --rh4txa2gphc5y7co Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iJUEABMJAB0WIQTkHFbLp4ejekA/qfgnX84Zoj2+dgUCZlSK6wAKCRAnX84Zoj2+ duG9AYDdUpGu5aVO7zw3zFdz1kudBfe8bhW4zbk7Rqh2F38nbF9k6OHwGoXKxcQe BoqzGpYBf2GmKLiAj1MKfeIjRVsuVzqIgaw1sWlPvBOTPP+4TYXBl/H+8CBtp9KB EgfYt9ctqg== =NOy6 -----END PGP SIGNATURE----- --rh4txa2gphc5y7co--