Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: Suraj Kandpal <suraj.kandpal@intel.com>,
	<dri-devel@lists.freedesktop.org>,
	<intel-xe@lists.freedesktop.org>,
	<intel-gfx@lists.freedesktop.org>
Cc: <arun.r.murthy@intel.com>
Subject: Re: [PATCH 2/2] drm/i915/backlight: Modify condition to use panel luminance
Date: Thu, 10 Apr 2025 11:15:36 +0530	[thread overview]
Message-ID: <7e599c21-34e6-4c19-9e95-04e0198c4361@intel.com> (raw)
In-Reply-To: <0e034903-5bbc-435b-8636-ab67f582a536@intel.com>


On 4/10/2025 11:11 AM, Nautiyal, Ankit K wrote:
>
> On 4/8/2025 10:31 AM, Suraj Kandpal wrote:
>> According to our internal spec we need to now check if both
>> panel luminance and smooth brightness are available in panel for
>> us to be able to change brightness using luminance value.
>
> Since DP_EDP_SMOOTH_BRIGHTNESS_CAPABLE is introduced in eDP2.0 and
>
> DP_EDP_PANEL_LUMINANCE_CONTROL_CAPABLE was introduced in eDP1.5
>
> is it like that we intended this for eDP2.0 only and not for eDP1.5 
> panels?
>
> This will perhaps change the behavior for existing eDP1.5 panel. Do we 
> need to add a fix me?


I meant fixes tag.

Regards,
Ankit

>
> Regards,
>
> Ankit
>
>>
>> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
>> ---
>>   drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c | 3 ++-
>>   1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> 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 8173de8aec63..20ab90acb351 100644
>> --- a/drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
>> +++ b/drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
>> @@ -663,7 +663,8 @@ intel_dp_aux_supports_vesa_backlight(struct 
>> intel_connector *connector)
>>       struct intel_dp *intel_dp = intel_attached_dp(connector);
>>       struct intel_panel *panel = &connector->panel;
>>   -    if ((intel_dp->edp_dpcd[3] & 
>> DP_EDP_PANEL_LUMINANCE_CONTROL_CAPABLE)) {
>> +    if ((intel_dp->edp_dpcd[3] & 
>> DP_EDP_PANEL_LUMINANCE_CONTROL_CAPABLE) &&
>> +        (intel_dp->edp_dpcd[3] & DP_EDP_SMOOTH_BRIGHTNESS_CAPABLE)) {
>>           drm_dbg_kms(display->drm,
>>                   "[CONNECTOR:%d:%s] AUX Luminance Based Backlight 
>> Control Supported!\n",
>>                   connector->base.base.id, connector->base.name);

  reply	other threads:[~2025-04-10  5:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-08  5:01 [PATCH 0/2] Register bit definition for EDP_GENERAL_CAP2 Suraj Kandpal
2025-04-08  5:01 ` [PATCH 1/2] drm/dp: Add smooth brightness register bit definition Suraj Kandpal
2025-04-10  4:01   ` Murthy, Arun R
2025-04-10  5:31   ` Nautiyal, Ankit K
2025-04-08  5:01 ` [PATCH 2/2] drm/i915/backlight: Modify condition to use panel luminance Suraj Kandpal
2025-04-10  4:08   ` Murthy, Arun R
2025-04-10  5:41   ` Nautiyal, Ankit K
2025-04-10  5:45     ` Nautiyal, Ankit K [this message]
2025-04-08  5:24 ` ✗ Fi.CI.SPARSE: warning for Register bit definition for EDP_GENERAL_CAP2 Patchwork
2025-04-08  5:45 ` ✓ i915.CI.BAT: success " Patchwork
2025-04-08  7:45 ` ✓ i915.CI.Full: " Patchwork
2025-04-11 13:28 ` [PATCH 0/2] " Kandpal, Suraj
  -- strict thread matches above, loose matches on Subject: below --
2025-04-11  6:02 Suraj Kandpal
2025-04-11  6:02 ` [PATCH 2/2] drm/i915/backlight: Modify condition to use panel luminance Suraj Kandpal

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=7e599c21-34e6-4c19-9e95-04e0198c4361@intel.com \
    --to=ankit.k.nautiyal@intel.com \
    --cc=arun.r.murthy@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 \
    /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