Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Suraj Kandpal <suraj.kandpal@intel.com>,
	intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org,
	dri-devel@lists.freedesktop.org
Cc: uma.shankar@intel.com, arun.r.murthy@intel.com,
	ben.kao@intel.com, Suraj Kandpal <suraj.kandpal@intel.com>
Subject: Re: [PATCH 3/7] drm/i915/backlight: Check Nits based brightness control for VESA
Date: Tue, 04 Feb 2025 10:45:12 +0200	[thread overview]
Message-ID: <87ed0e6quf.fsf@intel.com> (raw)
In-Reply-To: <20250124054631.1796456-4-suraj.kandpal@intel.com>

On Fri, 24 Jan 2025, Suraj Kandpal <suraj.kandpal@intel.com> wrote:
> Check if we are capable of controlling brightness via Nits which
> is dependant on PANEL_LUMINANCE_OVERRIDE and SMOOTH_BRIGHTNESS
> capablility being set.
>
> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_display_types.h    | 1 +
>  drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c | 9 +++++++++
>  2 files changed, 10 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers/gpu/drm/i915/display/intel_display_types.h
> index 083eb86f0904..f900e1f2d93e 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_types.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_types.h
> @@ -412,6 +412,7 @@ struct intel_panel {
>  		union {
>  			struct {
>  				struct drm_edp_backlight_info info;
> +				bool nits_support;
>  			} vesa;
>  			struct {
>  				bool sdr_uses_aux;
> diff --git a/drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c b/drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
> index 09e82f24d030..c5ff6e044866 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
> @@ -575,6 +575,15 @@ intel_dp_aux_supports_vesa_backlight(struct intel_connector *connector)
>  {
>  	struct intel_display *display = to_intel_display(connector);
>  	struct intel_dp *intel_dp = intel_attached_dp(connector);
> +	struct intel_panel *panel = &connector->panel;
> +
> +	if ((intel_dp->edp_dpcd[2] & DP_EDP_PANEL_LUMINANCE_CONTROL_CAPABLE)) {
> +		drm_dbg_kms(display->drm,
> +			    "[CONNECTOR:%d:%s] AUX Nits Based Backlight Control Supported!\n",
> +			    connector->base.base.id, connector->base.name);
> +		panel->backlight.edp.vesa.nits_support = true;

Should we refer to luminance rather than nits here?

BR,
Jani.


> +		return true;
> +	}
>  
>  	if (drm_edp_backlight_supported(intel_dp->edp_dpcd)) {
>  		drm_dbg_kms(display->drm,

-- 
Jani Nikula, Intel

  parent reply	other threads:[~2025-02-04  8:45 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-24  5:46 [PATCH 0/7] Enable Aux based Nits brightness control for eDP Suraj Kandpal
2025-01-24  5:46 ` [PATCH 1/7] drm/dp: Add eDP 1.5 bit definition Suraj Kandpal
2025-02-03  7:10   ` Kao, Ben
2025-02-04  8:44   ` Murthy, Arun R
2025-01-24  5:46 ` [PATCH 2/7] drm/i915/backlight: Use proper interface based on eDP version Suraj Kandpal
2025-02-03  7:11   ` Kao, Ben
2025-01-24  5:46 ` [PATCH 3/7] drm/i915/backlight: Check Nits based brightness control for VESA Suraj Kandpal
2025-02-03  7:11   ` Kao, Ben
2025-02-04  8:45   ` Jani Nikula [this message]
2025-02-04  9:42     ` Kandpal, Suraj
2025-01-24  5:46 ` [PATCH 4/7] drm/i915/backlight: Modify function to get VESA brightness in NITS Suraj Kandpal
2025-02-03  7:11   ` Kao, Ben
2025-01-24  5:46 ` [PATCH 5/7] drm/i915/backlight: Add function to change brightness in NITS for VESA Suraj Kandpal
2025-02-03  7:12   ` Kao, Ben
2025-02-04  8:49   ` Jani Nikula
2025-01-24  5:46 ` [PATCH 6/7] drm/i915/backlight: Setup NITS based brightness via VESA Suraj Kandpal
2025-02-03  7:12   ` Kao, Ben
2025-01-24  5:46 ` [PATCH 7/7] drm/i915/backlight: Enable Nits based brightness Suraj Kandpal
2025-02-03  7:13   ` Kao, Ben
2025-01-24  6:42 ` ✓ CI.Patch_applied: success for Enable Aux based Nits brightness control for eDP Patchwork
2025-01-24  6:43 ` ✗ CI.checkpatch: warning " Patchwork
2025-01-24  6:45 ` ✓ CI.KUnit: success " Patchwork
2025-01-24  7:06 ` ✓ CI.Build: " Patchwork
2025-01-24  7:08 ` ✓ CI.Hooks: " Patchwork
2025-01-24  7:10 ` ✗ CI.checksparse: warning " Patchwork
2025-01-24  7:37 ` ✓ Xe.CI.BAT: success " Patchwork
2025-01-24 12:45 ` ✗ Xe.CI.Full: failure " Patchwork
2025-02-03  7:13 ` [PATCH 0/7] " Kao, Ben

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=87ed0e6quf.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=arun.r.murthy@intel.com \
    --cc=ben.kao@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=suraj.kandpal@intel.com \
    --cc=uma.shankar@intel.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