All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: "Pandiyan, Dhinakaran" <dhinakaran.pandiyan@intel.com>,
	"Tc, Jenny" <jenny.tc@intel.com>
Cc: "puthik@chromium.org" <puthik@chromium.org>,
	"Vetter, Daniel" <daniel.vetter@intel.com>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>,
	"Weinehall, David" <david.weinehall@intel.com>
Subject: Re: [PATCH] drm/i915: Use AUX for backlight only if eDP 1.4 or later
Date: Thu, 20 Jul 2017 12:33:00 +0300	[thread overview]
Message-ID: <87y3rjo3lf.fsf@intel.com> (raw)
In-Reply-To: <1500489783.20458.27.camel@dk-H97M-D3H>

On Wed, 19 Jul 2017, "Pandiyan, Dhinakaran" <dhinakaran.pandiyan@intel.com> wrote:
> On Wed, 2017-07-19 at 15:59 +0530, Jenny TC wrote:
>> With older panels, AUX pin for backlight doesn't work.

What evidence do you have to back up that claim?

>> On some panels, this causes backlight issues on S3 resume.
>
> What is it that we are missing in the resume path?
>
>>  Enable the
>> feature only for eDP1.4 or later.
>
> I can't find the eDP 1.4 requirement in the spec. Regional brightness
> control was added in eDP 1.4, but we don't enable that. My concern is we
> might be missing a real fix by ignoring < eDP 1.4 panels. 

Agreed.

This has been going on too long now, with no real effort to get at the
roots of the problem. The right approach is to revert the regressing
commits now, and start over. Reverts posted [1].

BR,
Jani.

[1] https://patchwork.freedesktop.org/series/27623/

>
>
>> 
>> Fix-suggested-by: Puthikorn Voravootivat <puthik@chromium.org>
>
> 1. Please use the "Fixes" tag to refer to the commit that introduced the
> code you are fixing.
> 2. The "Suggested-by" tag is more common to give credits to the person
> who suggested the fix.
> 3. Please use the "Bugzilla" tag to point to the bug that David
> reported.
>
>
>> Signed-off-by: Jenny TC <jenny.tc@intel.com>
>> ---
>>  drivers/gpu/drm/i915/intel_dp_aux_backlight.c | 6 +++++-
>>  1 file changed, 5 insertions(+), 1 deletion(-)
>> 
>> diff --git a/drivers/gpu/drm/i915/intel_dp_aux_backlight.c b/drivers/gpu/drm/i915/intel_dp_aux_backlight.c
>> index b25cd88..421f31f 100644
>> --- a/drivers/gpu/drm/i915/intel_dp_aux_backlight.c
>> +++ b/drivers/gpu/drm/i915/intel_dp_aux_backlight.c
>> @@ -292,7 +292,7 @@ static int intel_dp_aux_setup_backlight(struct intel_connector *connector,
>>   * via PWM pin or using AUX is better than using PWM pin.
>>   *
>>   * The heuristic to determine that using AUX pin is better than using PWM pin is
>> - * that the panel support any of the feature list here.
>> + * that the panel is eDP 1.4 or later and support any of the feature list here
>>   * - Regional backlight brightness adjustment
>>   * - Backlight PWM frequency set
>>   * - More than 8 bits resolution of brightness level
>> @@ -310,6 +310,10 @@ static int intel_dp_aux_setup_backlight(struct intel_connector *connector,
>>  	if (!(intel_dp->edp_dpcd[2] & DP_EDP_BACKLIGHT_BRIGHTNESS_PWM_PIN_CAP))
>>  		return true;
>>  
>> +	/* Enable this for eDP 1.4 panel or later. */
>> +	if (intel_dp->edp_dpcd[0] < DP_EDP_14)
>> +		return false;
>> +
>>  	/* Panel supports regional backlight brightness adjustment */
>>  	if (drm_dp_dpcd_readb(&intel_dp->aux, DP_EDP_GENERAL_CAP_3,
>>  			      &reg_val) != 1) {

-- 
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-07-20  9:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-19 10:29 [PATCH] drm/i915: Use AUX for backlight only if eDP 1.4 or later Jenny TC
2017-07-19 11:50 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-07-19 18:22 ` [PATCH] " Pandiyan, Dhinakaran
2017-07-20  9:33   ` Jani Nikula [this message]
2017-07-20 10:06     ` Tc, Jenny
2017-07-20 20:27       ` Pandiyan, Dhinakaran
2017-07-24 23:15         ` Puthikorn Voravootivat
2017-07-25 12:41           ` David Weinehall
2017-07-25 13:11             ` David Weinehall
2017-07-31 10:55           ` Jani Nikula
2017-07-31 22:41             ` Puthikorn Voravootivat
2017-08-01 23:15               ` Pandiyan, Dhinakaran
2017-08-02 13:53                 ` David Weinehall
2017-07-20 15:35     ` David Weinehall
2017-07-20 18:20       ` Pandiyan, Dhinakaran

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=87y3rjo3lf.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=daniel.vetter@intel.com \
    --cc=david.weinehall@intel.com \
    --cc=dhinakaran.pandiyan@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jenny.tc@intel.com \
    --cc=puthik@chromium.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.