From: Daniel Vetter <daniel@ffwll.ch>
To: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>,
Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/i915: pixel multiplier readout support for pch ports
Date: Sun, 30 Jun 2013 21:25:38 +0200 [thread overview]
Message-ID: <20130630192538.GR18285@phenom.ffwll.local> (raw)
In-Reply-To: <20130628102035.049dd858@jbarnes-desktop>
On Fri, Jun 28, 2013 at 10:20:35AM -0700, Jesse Barnes wrote:
> On Thu, 27 Jun 2013 19:47:19 +0200
> Daniel Vetter <daniel.vetter@ffwll.ch> wrote:
>
> > Now that we painstakingly track the shared pch dplls we can finally
> > implement pixel mutliplier readout support for pch ports, too.
> >
> > v2: Undo the temporary hack to disable the sdvo pixel multiplier
> > cross-checking.
> >
> > Cc: Imre Deak <imre.deak@intel.com>
> > Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
> > Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> > ---
> > drivers/gpu/drm/i915/intel_display.c | 12 ++++++------
> > drivers/gpu/drm/i915/intel_sdvo.c | 3 ---
> > 2 files changed, 6 insertions(+), 9 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> > index 04c2cab..16aacfa 100644
> > --- a/drivers/gpu/drm/i915/intel_display.c
> > +++ b/drivers/gpu/drm/i915/intel_display.c
> > @@ -5778,10 +5778,6 @@ static bool ironlake_get_pipe_config(struct intel_crtc *crtc,
> >
> > ironlake_get_fdi_m_n_config(crtc, pipe_config);
> >
> > - /* XXX: Can't properly read out the pch dpll pixel multiplier
> > - * since we don't have state tracking for pch clocks yet. */
> > - pipe_config->pixel_multiplier = 1;
> > -
> > if (HAS_PCH_IBX(dev_priv->dev)) {
> > pipe_config->shared_dpll = crtc->pipe;
> > } else {
> > @@ -5796,6 +5792,11 @@ static bool ironlake_get_pipe_config(struct intel_crtc *crtc,
> >
> > WARN_ON(!pll->get_hw_state(dev_priv, pll,
> > &pipe_config->dpll_hw_state));
> > +
> > + tmp = pipe_config->dpll_hw_state.dpll;
> > + pipe_config->pixel_multiplier =
> > + ((tmp & PLL_REF_SDVO_HDMI_MULTIPLIER_MASK)
> > + >> PLL_REF_SDVO_HDMI_MULTIPLIER_SHIFT) + 1;
> > } else {
> > pipe_config->pixel_multiplier = 1;
> > }
> > @@ -8046,8 +8047,7 @@ intel_pipe_config_compare(struct drm_device *dev,
> > PIPE_CONF_CHECK_I(adjusted_mode.crtc_vsync_start);
> > PIPE_CONF_CHECK_I(adjusted_mode.crtc_vsync_end);
> >
> > - if (!HAS_PCH_SPLIT(dev))
> > - PIPE_CONF_CHECK_I(pixel_multiplier);
> > + PIPE_CONF_CHECK_I(pixel_multiplier);
> >
> > PIPE_CONF_CHECK_FLAGS(adjusted_mode.flags,
> > DRM_MODE_FLAG_INTERLACE);
> > diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c
> > index 2628d56..8415d6a 100644
> > --- a/drivers/gpu/drm/i915/intel_sdvo.c
> > +++ b/drivers/gpu/drm/i915/intel_sdvo.c
> > @@ -1370,9 +1370,6 @@ static void intel_sdvo_get_config(struct intel_encoder *encoder,
> > break;
> > }
> >
> > - if(HAS_PCH_SPLIT(dev))
> > - return; /* no pixel multiplier readout support yet */
> > -
> > WARN(encoder_pixel_multiplier != pipe_config->pixel_multiplier,
> > "SDVO pixel multiplier mismatch, port: %i, encoder: %i\n",
> > pipe_config->pixel_multiplier, encoder_pixel_multiplier);
>
> Yay
>
> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Queued for -next, thanks for the review.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
prev parent reply other threads:[~2013-06-30 19:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-27 17:47 [PATCH] drm/i915: pixel multiplier readout support for pch ports Daniel Vetter
2013-06-28 17:20 ` Jesse Barnes
2013-06-30 19:25 ` Daniel Vetter [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=20130630192538.GR18285@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=daniel.vetter@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