From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Puthikorn Voravootivat <puthik@chromium.org>
Cc: Jani Nikula <jani.nikula@intel.com>,
Yetunde Adebisi <yetundex.adebisi@intel.com>,
intel-gfx@lists.freedesktop.org,
Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Subject: Re: [PATCH v2] drm/i915: Don't enable backlight at setup time.
Date: Thu, 15 Jun 2017 16:15:31 +0300 [thread overview]
Message-ID: <20170615131531.GY12629@intel.com> (raw)
In-Reply-To: <CANCcNXcBci0M36-9EzSuXn7UAbYNaUJcqjvt+jKAtA5WCh660A@mail.gmail.com>
On Wed, Jun 14, 2017 at 01:18:42PM -0700, Puthikorn Voravootivat wrote:
> I tested this on actual system and it is working fine.
Thank you everyone. Patch pushed to dinq.
>
> On Tue, Jun 13, 2017 at 1:03 PM, Dhinakaran Pandiyan <
> dhinakaran.pandiyan@intel.com> wrote:
>
> > Maarten and Ville noticed that we are enabling backlight via DP aux very
> > early in the modeset_init path via the intel_dp_aux_setup_backlight()
> > function, since commit e7156c833903 ("drm/i915: Add Backlight Control using
> > DPCD for eDP connectors (v9)"). Looks like all we need to do during
> > _setup_backlight() is read the current brightness state instead of
> > modifying it.
> >
> > v2: Rewrote commit message.
> >
> > Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
> > Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> > Cc: Jani Nikula <jani.nikula@intel.com>
> > Cc: Yetunde Adebisi <yetundex.adebisi@intel.com>
> > Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
> > Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> > Acked-by: Jani Nikula <jani.nikula@intel.com>
> > ---
> > drivers/gpu/drm/i915/intel_dp_aux_backlight.c | 10 ----------
> > 1 file changed, 10 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_dp_aux_backlight.c
> > b/drivers/gpu/drm/i915/intel_dp_aux_backlight.c
> > index 6cc6298..228ca06 100644
> > --- a/drivers/gpu/drm/i915/intel_dp_aux_backlight.c
> > +++ b/drivers/gpu/drm/i915/intel_dp_aux_backlight.c
> > @@ -80,10 +80,6 @@ static uint32_t intel_dp_aux_get_backlight(struct
> > intel_connector *connector)
> > static void
> > intel_dp_aux_set_backlight(const struct drm_connector_state *conn_state,
> > u32 level)
> > {
> > - /*
> > - * conn_state->best_encoder is likely NULL when called from
> > - * intel_dp_aux_setup_backlight()
> > - */
> > struct intel_connector *connector = to_intel_connector(conn_state-
> > >connector);
> > struct intel_dp *intel_dp = enc_to_intel_dp(&connector->
> > encoder->base);
> > uint8_t vals[2] = { 0x0 };
> > @@ -106,10 +102,6 @@ static void intel_dp_aux_enable_backlight(const
> > struct intel_crtc_state *crtc_st
> > const struct drm_connector_state
> > *conn_state)
> > {
> > struct intel_connector *connector = to_intel_connector(conn_state-
> > >connector);
> > - /*
> > - * conn_state->best_encoder (and crtc_state) are NULL when called
> > from
> > - * intel_dp_aux_setup_backlight()
> > - */
> > struct intel_dp *intel_dp = enc_to_intel_dp(&connector->
> > encoder->base);
> > uint8_t dpcd_buf = 0;
> > uint8_t edp_backlight_mode = 0;
> > @@ -156,8 +148,6 @@ static int intel_dp_aux_setup_backlight(struct
> > intel_connector *connector,
> > struct intel_dp *intel_dp = enc_to_intel_dp(&connector->
> > encoder->base);
> > struct intel_panel *panel = &connector->panel;
> >
> > - intel_dp_aux_enable_backlight(NULL, connector->base.state);
> > -
> > if (intel_dp->edp_dpcd[2] & DP_EDP_BACKLIGHT_BRIGHTNESS_
> > BYTE_COUNT)
> > panel->backlight.max = 0xFFFF;
> > else
> > --
> > 2.7.4
> >
> >
--
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2017-06-15 13:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-13 20:03 [PATCH v2] drm/i915: Don't enable backlight at setup time Dhinakaran Pandiyan
2017-06-13 20:22 ` ✓ Fi.CI.BAT: success for drm/i915: Don't enable backlight at setup time. (rev2) Patchwork
2017-06-14 20:18 ` [PATCH v2] drm/i915: Don't enable backlight at setup time Puthikorn Voravootivat
2017-06-15 13:15 ` Ville Syrjälä [this message]
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=20170615131531.GY12629@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=dhinakaran.pandiyan@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=puthik@chromium.org \
--cc=yetundex.adebisi@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 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.