From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: "Mustaffa, Mustamin B" <mustamin.b.mustaffa@intel.com>
Cc: "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org>
Subject: Re: [V4] drm/i915: Enable VBT based BL control for DP
Date: Wed, 21 Feb 2018 15:19:07 +0200 [thread overview]
Message-ID: <20180221131907.GL5453@intel.com> (raw)
In-Reply-To: <605678218D4AE343AA40E888647A6D691AEAEE60@PGSMSX111.gar.corp.intel.com>
On Wed, Feb 21, 2018 at 12:04:43AM +0000, Mustaffa, Mustamin B wrote:
> Hi Ville,
>
> Can you point out what makes you says the git diff is broken?
>
> Best regard
>
> Mustamin
>
>
> -----Original Message-----
> From: Ville Syrjälä [mailto:ville.syrjala@linux.intel.com]
> Sent: Tuesday, February 20, 2018 10:26 PM
> To: Mustaffa, Mustamin B <mustamin.b.mustaffa@intel.com>
> Cc: intel-gfx@lists.freedesktop.org
> Subject: Re: [Intel-gfx] [V4] drm/i915: Enable VBT based BL control for DP
>
> On Tue, Feb 20, 2018 at 05:42:59PM +0800, Mustamin B Mustaffa wrote:
> > Currently, BXT_PP is hardcoded with value '0'.
> > It practically disabled eDP backlight on MRB (BXT) platform.
> >
> > This patch will tell which BXT_PP registers (there are two set of
> > PP_CONTROL in the spec) to be used as defined in VBT (Video Bios
> > Timing
> > table) and this will enabled eDP backlight controller on MRB (BXT)
> > platform.
> >
> > v2:
> > - Remove unnecessary information in commit message.
> > - Assign vbt.backlight.controller to a backlight_controller variable and
> > return the variable value.
> > v3:
> > - Rebased to latest code base.
> > - updated commit title.
> > V4:
> > - Use sanitized panel backlight controller instead of vbt backlight
> > controller
> >
> > Signed-off-by: Mustamin B Mustaffa <mustamin.b.mustaffa@intel.com>
> > ---
> > drivers/gpu/drm/i915/intel_dp.c | 11 ++++-------
> > 1 file changed, 4 insertions(+), 7 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_dp.c
> > b/drivers/gpu/drm/i915/intel_dp.c index 1868f73..f9b922d 100644
> > --- a/drivers/gpu/drm/i915/intel_dp.c
> > +++ b/drivers/gpu/drm/i915/intel_dp.c
> > @@ -655,18 +655,15 @@ static enum pipe vlv_find_free_pps(struct
^^^^^^^^^^^^^^^^^
That is not the function you're patching here.
> > drm_i915_private *dev_priv)
>
> Your git diff is clearly broken. This makes patch review harder than it has to be. Please consider updating to a non-broken version.
>
> > {
> > struct drm_i915_private *dev_priv =
> > to_i915(intel_dp_to_dev(intel_dp));
> >
> > + int backlight_controller =
> > +intel_dp->attached_connector->panel.backlight.controller;
> > +
> > lockdep_assert_held(&dev_priv->pps_mutex);
> >
> > /* We should never land here with regular DP ports */
> > WARN_ON(!intel_dp_is_edp(intel_dp));
> >
> > - /*
> > - * TODO: BXT has 2 PPS instances. The correct port->PPS instance
> > - * mapping needs to be retrieved from VBT, for now just hard-code to
> > - * use instance #0 always.
> > - */
> > if (!intel_dp->pps_reset)
> > - return 0;
> > + return backlight_controller;
> >
> > intel_dp->pps_reset = false;
> >
> > @@ -676,7 +673,7 @@ static enum pipe vlv_find_free_pps(struct drm_i915_private *dev_priv)
> > */
> > intel_dp_init_panel_power_sequencer_registers(intel_dp, false);
> >
> > - return 0;
> > + return backlight_controller;
> > }
> >
> > typedef bool (*vlv_pipe_check)(struct drm_i915_private *dev_priv,
> > --
> > 1.9.1
> >
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/intel-gfx
>
> --
> Ville Syrjälä
> Intel OTC
--
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-02-21 13:19 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-20 2:46 [PATCH] drm/i915: Enable VBT based BL control for DP (v3) Mustamin B Mustaffa
2018-02-20 5:54 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2018-02-20 6:09 ` ✓ Fi.CI.BAT: success " Patchwork
2018-02-20 6:18 ` [V3] drm/i915: Enable VBT based BL control for DP Mustamin B Mustaffa
2018-02-20 6:52 ` Mustamin B Mustaffa
2018-02-20 8:39 ` Chris Wilson
2018-02-20 8:44 ` Mustaffa, Mustamin B
2018-02-20 9:29 ` Chris Wilson
2018-02-20 9:43 ` Jani Nikula
2018-02-20 19:46 ` Rodrigo Vivi
2018-02-20 9:42 ` [V4] " Mustamin B Mustaffa
2018-02-20 14:26 ` Ville Syrjälä
2018-02-21 0:04 ` Mustaffa, Mustamin B
2018-02-21 0:22 ` Rodrigo Vivi
2018-02-21 13:19 ` Ville Syrjälä [this message]
2018-02-22 1:36 ` Mustaffa, Mustamin B
2018-02-21 6:43 ` [PATCH] " Mustamin B Mustaffa
2018-02-21 7:38 ` Jani Nikula
2018-02-27 2:47 ` [PATCH] [V3] " Mustamin B Mustaffa
2018-02-27 3:07 ` Mustamin B Mustaffa
2018-02-28 9:42 ` Jani Nikula
2018-02-28 10:40 ` Mustaffa, Mustamin B
2018-02-20 6:39 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Enable VBT based BL control for DP (v3) (rev2) Patchwork
2018-02-20 6:53 ` ✓ Fi.CI.IGT: success for drm/i915: Enable VBT based BL control for DP (v3) Patchwork
2018-02-20 6:55 ` ✓ Fi.CI.BAT: success for drm/i915: Enable VBT based BL control for DP (v3) (rev2) Patchwork
2018-02-20 7:31 ` ✓ Fi.CI.BAT: success for drm/i915: Enable VBT based BL control for DP (v3) (rev3) Patchwork
2018-02-20 8:35 ` ✓ Fi.CI.IGT: " Patchwork
2018-02-20 10:43 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Enable VBT based BL control for DP (v3) (rev4) Patchwork
2018-02-20 10:58 ` ✓ Fi.CI.BAT: success " Patchwork
2018-02-20 14:06 ` ✗ Fi.CI.IGT: failure " Patchwork
2018-02-20 19:44 ` [PATCH] drm/i915: Enable VBT based BL control for DP (v3) Rodrigo Vivi
2018-02-21 7:14 ` ✓ Fi.CI.BAT: success for drm/i915: Enable VBT based BL control for DP (v3) (rev5) Patchwork
2018-02-21 8:56 ` ✓ Fi.CI.IGT: " Patchwork
2018-02-27 2:54 ` ✗ Fi.CI.BAT: failure for drm/i915: Enable VBT based BL control for DP (v3) (rev7) Patchwork
2018-02-27 3:37 ` ✓ Fi.CI.BAT: success for drm/i915: Enable VBT based BL control for DP (v3) (rev8) Patchwork
2018-02-27 4:22 ` ✓ Fi.CI.IGT: " 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=20180221131907.GL5453@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=mustamin.b.mustaffa@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;
as well as URLs for NNTP newsgroup(s).