public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Paulo Zanoni <przanoni@gmail.com>
Cc: Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/i915: move infoframe setting to after pll enable v3
Date: Wed, 9 Apr 2014 14:48:39 +0200	[thread overview]
Message-ID: <20140409124839.GI9262@phenom.ffwll.local> (raw)
In-Reply-To: <CA+gsUGQL4Gm2+Yqr+bjOp2iXjRBz7hE+61H_SRsgFBQrALcY9A@mail.gmail.com>

On Mon, Apr 07, 2014 at 09:54:50AM -0300, Paulo Zanoni wrote:
> 2014-04-05 15:51 GMT-03:00 Jesse Barnes <jbarnes@virtuousgeek.org>:
> > Needs to happen after clock is running or it doesn't behave correctly.
> >
> > v2: fix subject (Ville)
> >     make it clearer that this occurs in pre_enable (Paulo)
> >     misc bikesheds (Paulo)
> >
> > Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
> 
> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>

All 4 patches merged to dinq, thanks.
-Daniel

> 
> > ---
> >  drivers/gpu/drm/i915/intel_hdmi.c |   18 ++++++++++++++++--
> >  1 file changed, 16 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
> > index fb9839b..fd940a7 100644
> > --- a/drivers/gpu/drm/i915/intel_hdmi.c
> > +++ b/drivers/gpu/drm/i915/intel_hdmi.c
> > @@ -669,8 +669,6 @@ static void intel_hdmi_mode_set(struct intel_encoder *encoder)
> >
> >         I915_WRITE(intel_hdmi->hdmi_reg, hdmi_val);
> >         POSTING_READ(intel_hdmi->hdmi_reg);
> > -
> > -       intel_hdmi->set_infoframes(&encoder->base, adjusted_mode);
> >  }
> >
> >  static bool intel_hdmi_get_hw_state(struct intel_encoder *encoder,
> > @@ -1115,13 +1113,26 @@ done:
> >         return 0;
> >  }
> >
> > +static void intel_hdmi_pre_enable(struct intel_encoder *encoder)
> > +{
> > +       struct intel_hdmi *intel_hdmi = enc_to_intel_hdmi(&encoder->base);
> > +       struct intel_crtc *intel_crtc = to_intel_crtc(encoder->base.crtc);
> > +       struct drm_display_mode *adjusted_mode =
> > +               &intel_crtc->config.adjusted_mode;
> > +
> > +       intel_hdmi->set_infoframes(&encoder->base, adjusted_mode);
> > +}
> > +
> >  static void vlv_hdmi_pre_enable(struct intel_encoder *encoder)
> >  {
> >         struct intel_digital_port *dport = enc_to_dig_port(&encoder->base);
> > +       struct intel_hdmi *intel_hdmi = &dport->hdmi;
> >         struct drm_device *dev = encoder->base.dev;
> >         struct drm_i915_private *dev_priv = dev->dev_private;
> >         struct intel_crtc *intel_crtc =
> >                 to_intel_crtc(encoder->base.crtc);
> > +       struct drm_display_mode *adjusted_mode =
> > +               &intel_crtc->config.adjusted_mode;
> >         enum dpio_channel port = vlv_dport_to_channel(dport);
> >         int pipe = intel_crtc->pipe;
> >         u32 val;
> > @@ -1155,6 +1166,8 @@ static void vlv_hdmi_pre_enable(struct intel_encoder *encoder)
> >         vlv_dpio_write(dev_priv, pipe, VLV_PCS_DW23(port), 0x00400888);
> >         mutex_unlock(&dev_priv->dpio_lock);
> >
> > +       intel_hdmi->set_infoframes(&encoder->base, adjusted_mode);
> > +
> >         intel_enable_hdmi(encoder);
> >
> >         vlv_wait_port_ready(dev_priv, dport);
> > @@ -1350,6 +1363,7 @@ void intel_hdmi_init(struct drm_device *dev, int hdmi_reg, enum port port)
> >                 intel_encoder->enable = vlv_enable_hdmi;
> >                 intel_encoder->post_disable = vlv_hdmi_post_disable;
> >         } else {
> > +               intel_encoder->pre_enable = intel_hdmi_pre_enable;
> >                 intel_encoder->enable = intel_enable_hdmi;
> >         }
> >
> > --
> > 1.7.9.5
> >
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/intel-gfx
> 
> 
> 
> -- 
> Paulo Zanoni
> _______________________________________________
> 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

  reply	other threads:[~2014-04-09 12:48 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-02 17:08 [PATCH 1/4] drm/i915/vlv: write the port field in the per-pipe DIP control reg Jesse Barnes
2014-04-02 17:08 ` [PATCH 2/4] drm/i915/vlv: disable AVI infoframe emission when writing infoframes Jesse Barnes
2014-04-03 10:33   ` Ville Syrjälä
2014-04-02 17:08 ` [PATCH 3/4] drm/i915: enable HDMI mode on VLV when an HDMI sink is detected Jesse Barnes
2014-04-03 10:30   ` Ville Syrjälä
2014-04-02 17:08 ` [PATCH 4/4] drm/i915: move infoframe setting to after port enable Jesse Barnes
2014-04-03  7:41   ` Jani Nikula
2014-04-03 10:31   ` Ville Syrjälä
2014-04-03 15:19   ` Daniel Vetter
2014-04-03 16:49     ` Jesse Barnes
2014-04-03 20:55       ` Daniel Vetter
2014-04-03 21:00         ` Jesse Barnes
2014-04-04 21:11   ` Paulo Zanoni
2014-04-05 15:18     ` Daniel Vetter
2014-04-04 21:38   ` [PATCH] drm/i915: move infoframe setting to after pll enable v2 Jesse Barnes
2014-04-04 21:59     ` Paulo Zanoni
2014-04-04 22:12     ` Jesse Barnes
2014-04-05 15:21       ` Daniel Vetter
2014-04-05 18:51         ` Jesse Barnes
2014-04-05 18:51       ` [PATCH] drm/i915: move infoframe setting to after pll enable v3 Jesse Barnes
2014-04-07 12:54         ` Paulo Zanoni
2014-04-09 12:48           ` Daniel Vetter [this message]
2014-04-02 17:10 ` [PATCH 1/4] drm/i915/vlv: write the port field in the per-pipe DIP control reg Jesse Barnes
2014-04-04 19:25 ` Ville Syrjälä

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=20140409124839.GI9262@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=przanoni@gmail.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