From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: Suraj Kandpal <suraj.kandpal@intel.com>,
<intel-xe@lists.freedesktop.org>,
<intel-gfx@lists.freedesktop.org>
Cc: <ville.syrjala@linux.intel.com>
Subject: Re: [PATCH v2] drm/i915/backlight: Fix VESA backlight possible check condition
Date: Tue, 7 Apr 2026 16:40:37 +0530 [thread overview]
Message-ID: <8830eb0d-a161-44d6-805d-5f14e33ff031@intel.com> (raw)
In-Reply-To: <20260407030710.1440046-1-suraj.kandpal@intel.com>
On 4/7/2026 8:37 AM, Suraj Kandpal wrote:
> VESA backlight enable is possible when
> BACKLIGHT_AUX_ENABLE_CAPABLE is true via AUX command or when
> BACKLIGHT_PIN_ENABLE_CAPABLE is true via eDP connector pin.
> Similarly, backlight brightness adjustment can be
> done via AUX-based control or PWM pin-based control.
> It means there can be three configurations:
> 1) Full AUX-based: Enable and adjustment both via AUX. We currently
> support this (apart from the AUX luminance-based backlight control).
> 2) Hybrid: Enable via the BL_ENABLE pin, adjustment via either AUX or
> PWM.
> 3) Fully PWM pin-based: Enable via the BL_ENABLE pin, adjustment via
> PWM.
> Since that only 1 is supported as of now we need to make
> sure we do not try to manipulate backlight when
> BACKLIGHT_AUX_ENABLE_CAPABLE is not set.
> Also fix return value when condition is not fulfilled.
>
> Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/work_items/15907
> Fixes: 0fb03890d182 ("drm/i915/backlight: Check if VESA backlight is possible")
> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
> Tested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> 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 d0c76632a946..a8d56ebf06a2 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
> @@ -615,8 +615,13 @@ check_if_vesa_backlight_possible(struct intel_dp *intel_dp)
> int ret;
> u8 bit_min, bit_max;
>
> - if (!(intel_dp->edp_dpcd[2] & DP_EDP_BACKLIGHT_BRIGHTNESS_AUX_SET_CAP))
> - return true;
> + /*
> + * Since we only support Fully AUX Based VESA Backlight interface make sure
> + * backlight enable is possible via AUX along with backlight adjustment
> + */
> + if (!(intel_dp->edp_dpcd[1] & DP_EDP_BACKLIGHT_AUX_ENABLE_CAP &&
> + intel_dp->edp_dpcd[2] & DP_EDP_BACKLIGHT_BRIGHTNESS_AUX_SET_CAP))
> + return false;
>
> ret = drm_dp_dpcd_read_byte(&intel_dp->aux, DP_EDP_PWMGEN_BIT_COUNT_CAP_MIN, &bit_min);
> if (ret < 0)
next prev parent reply other threads:[~2026-04-07 11:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-01 3:43 [PATCH] drm/i915/backlight: Fix VESA backlight possible check condition Suraj Kandpal
2026-04-01 3:50 ` ✓ CI.KUnit: success for " Patchwork
2026-04-01 4:36 ` ✓ Xe.CI.BAT: " Patchwork
2026-04-01 10:53 ` ✓ Xe.CI.FULL: " Patchwork
2026-04-02 19:18 ` [PATCH] " Ville Syrjälä
2026-04-06 14:42 ` Nautiyal, Ankit K
2026-04-07 3:07 ` [PATCH v2] " Suraj Kandpal
2026-04-07 11:10 ` Nautiyal, Ankit K [this message]
2026-04-07 4:30 ` ✓ CI.KUnit: success for drm/i915/backlight: Fix VESA backlight possible check condition (rev2) Patchwork
2026-04-07 5:07 ` ✓ Xe.CI.BAT: " Patchwork
2026-04-07 6:39 ` ✗ Xe.CI.FULL: failure " Patchwork
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=8830eb0d-a161-44d6-805d-5f14e33ff031@intel.com \
--to=ankit.k.nautiyal@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=suraj.kandpal@intel.com \
--cc=ville.syrjala@linux.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