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>,
	"puthik@chromium.org" <puthik@chromium.org>
Cc: "intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH v5 3/9] drm/i915: Drop AUX backlight enable check for backlight control
Date: Wed, 10 May 2017 13:05:49 +0300	[thread overview]
Message-ID: <87fugdni0y.fsf@intel.com> (raw)
In-Reply-To: <1494396010.12201.10.camel@dk-H97M-D3H>

On Wed, 10 May 2017, "Pandiyan, Dhinakaran" <dhinakaran.pandiyan@intel.com> wrote:
> On Tue, 2017-05-09 at 16:39 -0700, Puthikorn Voravootivat wrote:
>> > How is backlight enabled in this case?
>> Using eDP BL_ENABLE pin
>
>
> Sure, but I am not seeing how this falls back to one of the
> [bxt,lpt]_enable_backlight() functions in intel_panel.c. Apologies if I
> am missing something very obvious.
>
> If intel_dp_aux_init_backlight_funcs() returned -ENODEV, then one of the
> platform specific PWM enable callbacks would be called. But in this
> case, dp_aux_enable_backlight() just returns without doing anything.

The eDP BL_ENABLE pin (in the physical eDP connector) is controlled by
the panel power sequencer, independent from the PWM control. See
intel_edp_backlight_* functions in intel_dp.c.

BR,
Jani.


>
>
> -DK
>> 
>> 
>> On Sat, May 6, 2017 at 1:59 AM, Pandiyan, Dhinakaran
>> <dhinakaran.pandiyan@intel.com> wrote:
>>         On Wed, 2017-05-03 at 17:28 -0700, Puthikorn Voravootivat
>>         wrote:
>>         > There are some panel that
>>         > (1) does not support display backlight enable via AUX
>>         > (2) support display backlight adjustment via AUX
>>         > (3) support display backlight enable via eDP BL_ENABLE pin
>>         >
>>         > The current driver required that (1) must be support to
>>         enable (2).
>>         > This patch drops that requirement.
>>         >
>>         > Signed-off-by: Puthikorn Voravootivat <puthik@chromium.org>
>>         > ---
>>         >  drivers/gpu/drm/i915/intel_dp_aux_backlight.c | 5 ++++-
>>         >  1 file changed, 4 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 ad8560c5f689..5b83c9737644 100644
>>         > --- a/drivers/gpu/drm/i915/intel_dp_aux_backlight.c
>>         > +++ b/drivers/gpu/drm/i915/intel_dp_aux_backlight.c
>>         > @@ -28,6 +28,10 @@ static void
>>         set_aux_backlight_enable(struct intel_dp *intel_dp, bool
>>         enable)
>>         >  {
>>         >       uint8_t reg_val = 0;
>>         >
>>         > +       /* Early return when display use other mechanism to
>>         enable backlight. */
>>         > +     if (!(intel_dp->edp_dpcd[1] &
>>         DP_EDP_BACKLIGHT_AUX_ENABLE_CAP))
>>         > +             return;
>>         > +
>>         
>>         How is backlight enabled in this case?
>>         
>>         -DK
>>         
>>         >       if (drm_dp_dpcd_readb(&intel_dp->aux,
>>         DP_EDP_DISPLAY_CONTROL_REGISTER,
>>         >                             &reg_val) < 0) {
>>         >               DRM_DEBUG_KMS("Failed to read DPCD register 0x
>>         %x\n",
>>         > @@ -164,7 +168,6 @@
>>         intel_dp_aux_display_control_capable(struct intel_connector
>>         *connector)
>>         >        * the panel can support backlight control over the
>>         aux channel
>>         >        */
>>         >       if ((intel_dp->edp_dpcd[1] &
>>         DP_EDP_TCON_BACKLIGHT_ADJUSTMENT_CAP) &&
>>         > -         (intel_dp->edp_dpcd[1] &
>>         DP_EDP_BACKLIGHT_AUX_ENABLE_CAP) &&
>>         >           (intel_dp->edp_dpcd[2] &
>>         DP_EDP_BACKLIGHT_BRIGHTNESS_AUX_SET_CAP)) {
>>         >               DRM_DEBUG_KMS("AUX Backlight Control
>>         Supported!\n");
>>         >               return true;
>>         
>>         
>> 
>> 
>> _______________________________________________
>> Intel-gfx mailing list
>> Intel-gfx@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
>

-- 
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-05-10 10:05 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-04  0:28 [PATCH v5 0/9] Enhancement to intel_dp_aux_backlight driver Puthikorn Voravootivat
2017-05-04  0:28 ` [PATCH v5 1/9] drm/i915: Fix cap check for " Puthikorn Voravootivat
2017-05-08 17:55   ` Pandiyan, Dhinakaran
2017-05-08 18:06     ` Puthikorn Voravootivat
2017-05-08 22:08       ` Pandiyan, Dhinakaran
2017-05-04  0:28 ` [PATCH v5 2/9] drm/i915: Correctly enable backlight brightness adjustment via DPCD Puthikorn Voravootivat
2017-05-08 18:07   ` Pandiyan, Dhinakaran
2017-05-04  0:28 ` [PATCH v5 3/9] drm/i915: Drop AUX backlight enable check for backlight control Puthikorn Voravootivat
2017-05-06  8:59   ` Pandiyan, Dhinakaran
2017-05-09 23:39     ` Puthikorn Voravootivat
2017-05-10  5:40       ` Pandiyan, Dhinakaran
2017-05-10 10:05         ` Jani Nikula [this message]
2017-05-11  5:14           ` Pandiyan, Dhinakaran
2017-05-04  0:28 ` [PATCH v5 4/9] drm/i915: Allow choosing how to adjust brightness if both supported Puthikorn Voravootivat
2017-05-05  9:10   ` kbuild test robot
2017-05-04  0:28 ` [PATCH v5 5/9] drm/i915: Set backlight mode before enable backlight Puthikorn Voravootivat
2017-05-08 18:21   ` Pandiyan, Dhinakaran
2017-05-04  0:28 ` [PATCH v5 6/9] drm/i915: Support dynamic backlight via DPCD register Puthikorn Voravootivat
2017-05-11  1:26   ` Pandiyan, Dhinakaran
2017-05-11 20:59     ` Puthikorn Voravootivat
2017-05-04  0:28 ` [PATCH v5 7/9] drm/i915: Restore brightness level in aux backlight driver Puthikorn Voravootivat
2017-05-08 22:28   ` Pandiyan, Dhinakaran
2017-05-04  0:28 ` [PATCH v5 8/9] drm: Add definition for eDP backlight frequency Puthikorn Voravootivat
2017-05-04  0:28 ` [PATCH v5 9/9] drm/i915: Set PWM divider to match desired frequency in vbt Puthikorn Voravootivat
2017-05-06  8:35   ` Pandiyan, Dhinakaran
2017-05-08 17:49     ` Puthikorn Voravootivat
2017-05-08 18:17       ` Pandiyan, Dhinakaran
2017-05-08 18:36         ` Puthikorn Voravootivat
2017-05-04  7:20 ` ✗ Fi.CI.BAT: failure for Enhancement to intel_dp_aux_backlight driver (rev4) Patchwork
2017-05-04  7:29 ` 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=87fugdni0y.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=dhinakaran.pandiyan@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --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.