linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Maxime Ripard <mripard@kernel.org>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: "Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
	"Thomas Zimmermann" <tzimmermann@suse.de>,
	"David Airlie" <airlied@gmail.com>,
	"Daniel Vetter" <daniel@ffwll.ch>,
	"Jonathan Corbet" <corbet@lwn.net>,
	"Sandy Huang" <hjc@rock-chips.com>,
	"Heiko Stübner" <heiko@sntech.de>, "Chen-Yu Tsai" <wens@csie.org>,
	"Jernej Skrabec" <jernej.skrabec@gmail.com>,
	"Samuel Holland" <samuel@sholland.org>,
	"Andy Yan" <andy.yan@rock-chips.com>,
	"Hans Verkuil" <hverkuil@xs4all.nl>,
	"Sebastian Wick" <sebastian.wick@redhat.com>,
	"Ville Syrjälä" <ville.syrjala@linux.intel.com>,
	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" <dave.stevenson@raspberrypi.com>,
	"Pekka Paalanen" <pekka.paalanen@collabora.com>
Subject: Re: [PATCH v14 17/28] drm/connector: hdmi: Add Broadcast RGB property
Date: Mon, 27 May 2024 15:30:19 +0200	[thread overview]
Message-ID: <20240527-colorful-orange-bug-bbeefe@houat> (raw)
In-Reply-To: <a65wtf2hy7ufimkcgo5k2c34ygvtv7erwh567ngsnuaha7qiny@nl6lx67qsjuw>


[-- Attachment #1.1: Type: text/plain, Size: 3762 bytes --]

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,
> > 
> > Thanks again for that thorough review :)
> > 
> > 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 output.
> > > > The vc4 driver then implemented the same property with the same
> > > > semantics. KWin has support for it, and a PR for mutter is also there to
> > > > support it.
> > > > 
> > > > 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.
> > > > 
> > > > Let's plumb it into the newly created HDMI connector.
> > > > 
> > > > Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
> > > > Acked-by: Pekka Paalanen <pekka.paalanen@collabora.com>
> > > > Reviewed-by: Sebastian Wick <sebastian.wick@redhat.com>
> > > > Signed-off-by: Maxime Ripard <mripard@kernel.org>
> > > > ---
> > > >  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(-)
> > > > 
> > > > diff --git a/Documentation/gpu/kms-properties.csv b/Documentation/gpu/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,Property Values,Object attached,De
> > > >  ,,“saturation”,RANGE,"Min=0, Max=100",Connector,TBD
> > > >  ,,“hue”,RANGE,"Min=0, Max=100",Connector,TBD
> > > >  ,Virtual GPU,“suggested X”,RANGE,"Min=0, Max=0xffffffff",Connector,property to suggest an X offset for a connector
> > > >  ,,“suggested Y”,RANGE,"Min=0, Max=0xffffffff",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:235 and CTM is set, the hardware will be programmed with the result of the multiplication of CTM by the limited range matrix to ensure the pixels normally in the range 0..1.0 are remapped to the range 16/255..235/255."
> > > 
> > > Should it still be defined as a generic property?
> > 
> > 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?
> 
> 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:
> 
> ,,"""Broadcast RGB""",ENUM,"{ “off”, “auto”, “on” }",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

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 273 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2024-05-27 13:30 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-21 10:13 [PATCH v14 00/28] drm/connector: Create HDMI Connector infrastructure Maxime Ripard
2024-05-21 10:13 ` [PATCH v14 01/28] drm/connector: Introduce an HDMI connector initialization function Maxime Ripard
2024-05-22 22:12   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 02/28] drm/mode_object: Export drm_mode_obj_find_prop_id for tests Maxime Ripard
2024-05-22 22:15   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 03/28] drm/tests: connector: Add tests for drmm_connector_hdmi_init Maxime Ripard
2024-05-22 22:16   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 04/28] drm/connector: hdmi: Create an HDMI sub-state Maxime Ripard
2024-05-22 22:17   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 05/28] drm/connector: hdmi: Add output BPC to the connector state Maxime Ripard
2024-05-22 22:25   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 06/28] drm/tests: Add output bpc tests Maxime Ripard
2024-05-23  9:10   ` Dmitry Baryshkov
2024-05-23 17:00   ` [v14,06/28] " Sui Jingfeng
2024-05-21 10:13 ` [PATCH v14 07/28] drm/connector: hdmi: Add support for output format Maxime Ripard
2024-05-23  9:12   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 08/28] drm/tests: Add output formats tests Maxime Ripard
2024-05-23  9:18   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 09/28] drm/display: hdmi: Add HDMI compute clock helper Maxime Ripard
2024-05-23  9:37   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 10/28] drm/tests: Add HDMI TDMS character rate tests Maxime Ripard
2024-05-21 10:13 ` [PATCH v14 11/28] drm/connector: hdmi: Calculate TMDS character rate Maxime Ripard
2024-05-23  9:39   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 12/28] drm/tests: Add TDMS character rate connector state tests Maxime Ripard
2024-05-23  9:41   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 13/28] drm/connector: hdmi: Add custom hook to filter TMDS character rate Maxime Ripard
2024-05-23 10:03   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 14/28] drm/tests: Add HDMI connector rate filter hook tests Maxime Ripard
2024-05-23 10:04   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 15/28] drm/connector: hdmi: Compute bpc and format automatically Maxime Ripard
2024-05-23 10:15   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 16/28] drm/tests: Add HDMI connector bpc and format tests Maxime Ripard
2024-05-23 10:17   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 17/28] drm/connector: hdmi: Add Broadcast RGB property Maxime Ripard
2024-05-23 10:22   ` Dmitry Baryshkov
2024-05-27  9:02     ` Maxime Ripard
2024-05-27  9:43       ` Dmitry Baryshkov
2024-05-27 13:30         ` Maxime Ripard [this message]
2024-05-27 19:00           ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 18/28] drm/tests: Add tests for " Maxime Ripard
2024-05-23 10:23   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 19/28] drm/connector: hdmi: Add RGB Quantization Range to the connector state Maxime Ripard
2024-05-23 10:24   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 20/28] drm/tests: Add RGB Quantization tests Maxime Ripard
2024-05-23 10:25   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 21/28] drm/connector: hdmi: Add Infoframes generation Maxime Ripard
2024-05-23 11:46   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 22/28] drm/tests: Add infoframes test Maxime Ripard
2024-05-23 11:47   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 23/28] drm/connector: hdmi: Create Infoframe DebugFS entries Maxime Ripard
2024-05-23 11:48   ` Dmitry Baryshkov
2024-05-21 10:13 ` [PATCH v14 24/28] drm/vc4: hdmi: Switch to HDMI connector Maxime Ripard
2024-05-21 10:13 ` [PATCH v14 25/28] drm/vc4: tests: Remove vc4_dummy_plane structure Maxime Ripard
2024-05-21 10:13 ` [PATCH v14 26/28] drm/vc4: tests: Convert to plane creation helper Maxime Ripard
2024-05-21 10:14 ` [PATCH v14 27/28] drm/rockchip: inno_hdmi: Switch to HDMI connector Maxime Ripard
2024-05-23 11:55   ` Andy Yan
2024-05-21 10:14 ` [PATCH v14 28/28] drm/sun4i: hdmi: " Maxime Ripard
2024-05-23 11:56   ` Andy Yan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240527-colorful-orange-bug-bbeefe@houat \
    --to=mripard@kernel.org \
    --cc=airlied@gmail.com \
    --cc=andy.yan@rock-chips.com \
    --cc=corbet@lwn.net \
    --cc=daniel@ffwll.ch \
    --cc=dave.stevenson@raspberrypi.com \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=heiko@sntech.de \
    --cc=hjc@rock-chips.com \
    --cc=hverkuil@xs4all.nl \
    --cc=jernej.skrabec@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=pekka.paalanen@collabora.com \
    --cc=samuel@sholland.org \
    --cc=sebastian.wick@redhat.com \
    --cc=tzimmermann@suse.de \
    --cc=ville.syrjala@linux.intel.com \
    --cc=wens@csie.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).