mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Javier Martinez Canillas <javierm@redhat.com>
Cc: Maxime Ripard <mripard@kernel.org>,
	Mario Limonciello <mario.limonciello@amd.com>,
	Alex Deucher <alexander.deucher@amd.com>,
	Jani Nikula <jani.nikula@linux.intel.com>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	Harry Wentland <harry.wentland@amd.com>,
	Leo Li <sunpeng.li@amd.com>,
	Rodrigo Siqueira <siqueira@igalia.com>,
	Mario Limonciello <superm1@kernel.org>,
	Xaver Hugl <xaver.hugl@gmail.com>,
	dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
	amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org,
	intel-xe@lists.freedesktop.org, nouveau@lists.freedesktop.org
Subject: Re: [PATCH v12 01/12] drm: add connector LUMINANCE property
Date: Mon, 23 Nov 2026 11:08:26 +0200	[thread overview]
Message-ID: <awQCiqG9rwxY_kAI@intel.com> (raw)
In-Reply-To: <xlv14id8rl10.fsf@fmartine-thinkpadx1carbongen12.rmtes.csb>

On Mon, Nov 23, 2026 at 09:48:11AM +0100, Javier Martinez Canillas wrote:
> Maxime Ripard <mripard@kernel.org> writes:
> 
> > On Mon, Nov 23, 2026 at 10:05:04AM +0200, Ville Syrjälä wrote:
> >> On Mon, Nov 23, 2026 at 08:50:29AM +0100, Maxime Ripard wrote:
> >> > On Fri, Nov 20, 2026 at 11:19:13AM -0600, Mario Limonciello wrote:
> >> > > 
> >> > > 
> >> > > On 11/20/26 10:41, Ville Syrjälä wrote:
> >> > > > On Thu, Nov 19, 2026 at 05:27:28PM -0600, Mario Limonciello wrote:
> 
> [...]
> 
> >> > > > > +config DRM_LUMINANCE
> >> > > > > +	bool "DRM connector luminance support"
> >> > > > > +	help
> >> > > > > +	  Expose relative luminance as an atomic DRM connector property. Values
> >> > > > > +	  are driver-defined levels rather than absolute luminance in cd/m^2.
> >> > > > > +	  Drivers provide connector helper callbacks to program their hardware;
> >> > > > > +	  the DRM core does not depend on a particular backend.
> >> > > > > +
> >> > > > > +	  Drivers migrated to this interface will use it instead of registering
> >> > > > > +	  a legacy backlight class device. Leave this disabled to preserve the
> >> > > > > +	  de-facto userspace ABI in /sys/class/backlight.
> >> > > > 
> >> > > > I don't think this will fly if it breaks the backlight class interface.
> >> > > > No one can actually enable this outside of some niche embedded use
> >> > > > cases where backwards compatibility is not an issue. I think what
> >> > > > you need is a generic backlight class implementation on top of this.
> >> > > > 
> >> > > 
> >> > > The idea with this was:
> >> > > 1) to get the series landed
> >> > > 2) let compositors merge solutions around it.
> >> > > 3) Then add backwards compatibility to kernel so we can flip the Kconfig
> >> > > default.
> >> > 
> >> > I said this a few times already, but we keep having those discussions
> >> > while the backlight sysfs handling is far from being the main point. You
> >> > should *really* consider adding support for the luminance property for
> >> > something that isn't tied to that interface (like DDC/CI for HDMI), and
> >> > treat the sysfs API as a sysfs series.
> >> > 
> >> > It looks like people just have conflicting opinions on this particular
> >> > part that isn't going to solve itself easily. You should not treat this
> >> > sysfs discussion as a blocker for the infrastructure work.
> >> 
> >> You want to be sure backwards compatibility with the backlight
> >> class is a solvable problem before you land *anything*. Otherwise
> >> you might just paint yourself into a corner with no way out.
> >
> > I disagree. The luminance property is more useful than *just* for
> > backlights but is also useful for HDMI, DP, and MIPI-DSI that would all
> > use it.
> >
> > If that's the corner we paint ourselves into, it's still a pretty nice
> > corner.
> >
> 
> I agree with Maxime. Drivers can choose to not expose the luminance property
> until the sysfs backward compatiblity is sorted. But this shouldn't block the
> core infrastructure to land, given that's useful for other drivers/use cases.

If by infrastructure you mean just essentially defining the property,
then sure you could add that. But you can only hook it up for external
displays. For anything internal you actually need a working backlight
to see anything so the backlight class interface must stay.

Oh, and what's the actual plan to make this usable for external
displays? The property will have to be added onto the connector when
it's registered, but the display you hook up later may not even
support DDC/CI. How is userspace to know that the property is a dud?

-- 
Ville Syrjälä
Intel

  reply	other threads:[~2026-11-23  9:08 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 23:27 [PATCH v12 00/12] Add support for a DRM backlight capability Mario Limonciello
2026-11-19 23:27 ` [PATCH v12 01/12] drm: add connector LUMINANCE property Mario Limonciello
2026-11-20 16:41   ` Ville Syrjälä
2026-11-20 17:19     ` Mario Limonciello
2026-11-20 17:33       ` Ville Syrjälä
2026-11-20 17:42         ` Ville Syrjälä
2026-11-23  7:50       ` Maxime Ripard
2026-11-23  8:05         ` Ville Syrjälä
2026-11-23  8:10           ` Maxime Ripard
2026-11-23  8:42             ` Ville Syrjälä
2026-11-23  9:03               ` Maxime Ripard
2026-11-23  9:15                 ` Ville Syrjälä
2026-11-23  9:30                   ` Maxime Ripard
2026-11-23 10:42                     ` Ville Syrjälä
2026-11-23  8:48             ` Javier Martinez Canillas
2026-11-23  9:08               ` Ville Syrjälä [this message]
2026-11-19 23:27 ` [PATCH v12 02/12] drm/amd/display: Pass up errors reading actual brightness Mario Limonciello
2026-11-19 23:27 ` [PATCH v12 03/12] drm/amdgpu: Check bios_scratch_reg_offset in backlight level helper Mario Limonciello
2026-11-19 23:27 ` [PATCH v12 04/12] drm/amd: add luminance property support Mario Limonciello
2026-11-19 23:27 ` [PATCH v12 05/12] drm/i915/display: " Mario Limonciello
2026-11-19 23:27 ` [PATCH v12 06/12] drm/bridge: add connector luminance operations Mario Limonciello
2026-11-19 23:27 ` [PATCH v12 07/12] drm/panel: add connector luminance forwarding Mario Limonciello
2026-11-19 23:27 ` [PATCH v12 08/12] drm/bridge_connector: add luminance support Mario Limonciello
2026-11-19 23:27 ` [PATCH v12 09/12] drm/nouveau: add connector " Mario Limonciello
2026-11-19 23:27 ` [PATCH v12 10/12] drm/gud: " Mario Limonciello
2026-11-19 23:27 ` [PATCH v12 11/12] drm/bridge: add PS8622 " Mario Limonciello
2026-11-19 23:27 ` [PATCH v12 12/12] drm/solomon: add SSD130x " Mario Limonciello

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=awQCiqG9rwxY_kAI@intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=airlied@gmail.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=harry.wentland@amd.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=javierm@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mario.limonciello@amd.com \
    --cc=mripard@kernel.org \
    --cc=nouveau@lists.freedesktop.org \
    --cc=simona@ffwll.ch \
    --cc=siqueira@igalia.com \
    --cc=sunpeng.li@amd.com \
    --cc=superm1@kernel.org \
    --cc=tzimmermann@suse.de \
    --cc=xaver.hugl@gmail.com \
    /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

all inboxes | Powered by JetHome®