From: Daniel Vetter <daniel@ffwll.ch>
To: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/3] drm/i915: correct BLC vs PWM enable/disable ordering
Date: Mon, 7 Jul 2014 23:45:15 +0200 [thread overview]
Message-ID: <20140707214515.GM17271@phenom.ffwll.local> (raw)
In-Reply-To: <20140619110020.50a52a5e@jbarnes-desktop>
On Thu, Jun 19, 2014 at 11:00:20AM -0700, Jesse Barnes wrote:
> Jani, can you review this one? It's still needed for us to conform to
> the eDP timing spec.
Jani's already goofing off on vacation and I couldn't spot his r-b. Merged
anyway, I guess people will scream fast enough if this breaks stuff ;-)
-Daniel
>
> Thanks,
> Jesse
>
> On Mon, 31 Mar 2014 11:13:56 -0700
> Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
>
> > With the new checks in place, we can see we're doing things backwards,
> > so fix them up per the spec.
> >
> > Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
> > ---
> > drivers/gpu/drm/i915/intel_dp.c | 13 +++++++------
> > 1 file changed, 7 insertions(+), 6 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
> > index b6f7087..d540fbe 100644
> > --- a/drivers/gpu/drm/i915/intel_dp.c
> > +++ b/drivers/gpu/drm/i915/intel_dp.c
> > @@ -1273,8 +1273,6 @@ void intel_edp_panel_off(struct intel_dp *intel_dp)
> >
> > DRM_DEBUG_KMS("Turn eDP power off\n");
> >
> > - edp_wait_backlight_off(intel_dp);
> > -
> > WARN(!intel_dp->want_panel_vdd, "Need VDD to turn off panel\n");
> >
> > /* By this time the PWM and BLC bits should be off already */
> > @@ -1316,6 +1314,9 @@ void intel_edp_backlight_on(struct intel_dp *intel_dp)
> > return;
> >
> > DRM_DEBUG_KMS("\n");
> > +
> > + intel_panel_enable_backlight(intel_dp->attached_connector);
> > +
> > /*
> > * If we enable the backlight right away following a panel power
> > * on, we may see slight flicker as the panel syncs with the eDP
> > @@ -1333,8 +1334,6 @@ void intel_edp_backlight_on(struct intel_dp *intel_dp)
> >
> > I915_WRITE(pp_ctrl_reg, pp);
> > POSTING_READ(pp_ctrl_reg);
> > -
> > - intel_panel_enable_backlight(intel_dp->attached_connector);
> > }
> >
> > void intel_edp_backlight_off(struct intel_dp *intel_dp)
> > @@ -1350,8 +1349,6 @@ void intel_edp_backlight_off(struct intel_dp *intel_dp)
> > /* PWM must still be enabled here */
> > assert_pwm_enabled(intel_dp->attached_connector);
> >
> > - intel_panel_disable_backlight(intel_dp->attached_connector);
> > -
> > DRM_DEBUG_KMS("\n");
> > pp = ironlake_get_pp_control(intel_dp);
> > pp &= ~EDP_BLC_ENABLE;
> > @@ -1361,6 +1358,10 @@ void intel_edp_backlight_off(struct intel_dp *intel_dp)
> > I915_WRITE(pp_ctrl_reg, pp);
> > POSTING_READ(pp_ctrl_reg);
> > intel_dp->last_backlight_off = jiffies;
> > +
> > + edp_wait_backlight_off(intel_dp);
> > +
> > + intel_panel_disable_backlight(intel_dp->attached_connector);
> > }
> >
> > static void ironlake_edp_pll_on(struct intel_dp *intel_dp)
>
>
> --
> Jesse Barnes, Intel Open Source Technology Center
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
next prev parent reply other threads:[~2014-07-07 21:45 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-31 18:13 [PATCH 1/3] drm/i915: add PWM and BLC assertion checks Jesse Barnes
2014-03-31 18:13 ` [PATCH 2/3] drm/i915: correct BLC vs PWM enable/disable ordering Jesse Barnes
2014-06-19 18:00 ` Jesse Barnes
2014-07-07 21:45 ` Daniel Vetter [this message]
2014-06-25 12:21 ` Jani Nikula
2014-06-25 15:02 ` Jesse Barnes
2014-06-26 7:58 ` Jani Nikula
2014-03-31 18:13 ` [PATCH 3/3] drm/i915/vlv: use min brightness from VBT Jesse Barnes
2014-03-31 19:07 ` Daniel Vetter
2014-03-31 19:14 ` Jesse Barnes
2014-04-01 8:08 ` Jani Nikula
2014-04-01 16:16 ` Jesse Barnes
2014-04-01 7:19 ` [PATCH 1/3] drm/i915: add PWM and BLC assertion checks Jani Nikula
2014-04-01 9:27 ` Jani Nikula
2014-04-01 16:14 ` Jesse Barnes
2014-04-01 16:13 ` Jesse Barnes
2014-06-25 12:45 ` Jani Nikula
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=20140707214515.GM17271@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jbarnes@virtuousgeek.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox