From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.17 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795424915; b=mKzlQ+2+moBAHz8RGwn6jOuGv+jWGoZ6nPGMnWJ32HGacSUF3dUV8ZMX5YuWUDc95flh 9mQH6IX+JIYjTuM6M79tGmH4HtOYsgMjQw+1rDZ6jJkqRzGOgHmKQRLDaNxf6AKi6fOVU vIs4ZiY4gxjbKpJMMh2rLx2euEsgMZEQ1Qf2pVZ2GP2qn3npWv7fv97lf4m+YC2thVtPT JhKLLbJ4tWfJUi14PqJ71Hrne1qDnfH6jBAahfQ0slWD6SCZTfDIR37M4B8pAB/An60YQ O5OkOdE0yq2K0RmEG3NwhQwkDvzhWhNSAjwistouKpXt2xboXGFDVAJwKZpkMjuZV0Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795424915; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To: X-Patchwork-Hint:Organization; bh=3lkN3iPrctrIPLk5aalzoazU71tbB5LZ0ecbW7DqWgM=; b=r98Phg/Q4KVqtjBtbw9ZuQyM2V5qyH0iASOoNYDzP80v4p7EQmZwzIeaDokLbff61DMu siMz7DoCzhRvNqAZMgTHICIPjAIS88qDkaOAZxF7Sy7qiAlsToKxgoBNNRbjrRI+mKNmb 8g7j4deFBOs7MZkx88aXP6/zlbrg1DAfJmynAwF5dPYkH7+Ozbn/mmOMojfcACO6oPLTT YDDEflyJt5shuQrVhdvdYeELALfDQU9JNtmQUSTGRXfmJIUJzEmsauEDPkj9hF8JG5rf6 cqA3CSSk2hiWzmPowwTxlnyaJQunzScT/YAFHsFI918dPVCyef1VS+VaiPhhCr+geCQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b="aK/0J3vZ"; arc=none smtp.remote-ip=192.198.163.17 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 360AD606A31A for ; Mon, 23 Nov 2026 09:08:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 360AD606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=aK/0J3vZ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795424915; x=1826960915; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=iadGTTZpgIj0sYqSUfXwnmqzZltFtxbp5DiO51+/m38=; b=aK/0J3vZaUCuN4Eil1jth1Rqits0I+XYtVCUqhXk1ODdpqiZh+oCIRYl Pmw5wT0BTC+FW7QP0izv22DMa7hg04XMov0oHIOElOOV0rg5HrTQ9Z8xw WtxQCB1REvpuiPHde5sVQwPkmU1IGMNz2h9jqDhYEhwhNMTplTKyJWTKG 9ae2PyGBCZzNTcOUwh1t6gQ+W5Ida9Azhxf9zH+wxpByNw8oiIWjRLYAZ VNwHDM1DS88nolRzVGunvoLwftHRNPqTkQ/9rNX4vXMaO1hFWnhCASW8e k3MwcWMlivOL9T/OW+LhGWlyTZ6oQvV5uOEFv6ftM1sWk+96RytVaUWQT w==; X-CSE-ConnectionGUID: S0nq58INSROcbFLQoiDT1Q== X-CSE-MsgGUID: czbejls2SAWgD0EcfPLEZA== X-IronPort-AV: E=McAfee;i="6800,10657,11974"; a="4213113" X-IronPort-AV: E=Sophos;i="6.27,227,1787036400"; d="scan'208";a="4213113" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2026 01:08:34 -0800 X-CSE-ConnectionGUID: M4L018usSfS0xTfajJhMQg== X-CSE-MsgGUID: nuGMrwQAS0CwcWgbWLh5oQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,227,1787036400"; d="scan'208";a="11123681" Received: from pgcooper-mobl3.ger.corp.intel.com (HELO localhost) ([10.245.244.170]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2026 01:08:29 -0800 Date: Mon, 23 Nov 2026 11:08:26 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Javier Martinez Canillas Cc: Maxime Ripard , Mario Limonciello , Alex Deucher , Jani Nikula , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Simona Vetter , Harry Wentland , Leo Li , Rodrigo Siqueira , Mario Limonciello , Xaver Hugl , 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 Message-ID: References: <20261119-superm1-backlight-property-v12-0-89d5217d3618@amd.com> <20261119-superm1-backlight-property-v12-1-89d5217d3618@amd.com> <8713bae1-9782-41d4-b09c-f14031203e88@amd.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Patchwork-Hint: comment Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs Bertel Jungin Aukio 5, 02600 Espoo, Finland On Mon, Nov 23, 2026 at 09:48:11AM +0100, Javier Martinez Canillas wrote: > Maxime Ripard 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