Re: [PATCH v12 01/12] drm: add connector LUMINANCE property
From: Javier Martinez Canillas
Date: Mon Nov 23 2026 - 03:48:21 EST
Maxime Ripard <mripard@xxxxxxxxxx> 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.
> Maxime
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat