From: Damien Lespiau <damien.lespiau@intel.com>
To: Paulo Zanoni <przanoni@gmail.com>
Cc: intel-gfx@lists.freedesktop.org,
Paulo Zanoni <paulo.r.zanoni@intel.com>,
stable@vger.kernel.org
Subject: Re: [Intel-gfx] [PATCH 1/2] drm/i915: fix DDI PLLs HW state readout code
Date: Wed, 8 Jan 2014 14:27:58 +0000 [thread overview]
Message-ID: <20140108142758.GA19801@strange.amr.corp.intel.com> (raw)
In-Reply-To: <1389186748-1954-1-git-send-email-przanoni@gmail.com>
On Wed, Jan 08, 2014 at 11:12:27AM -0200, Paulo Zanoni wrote:
> From: Paulo Zanoni <paulo.r.zanoni@intel.com>
>
> Properly zero the refcounts and crtc->ddi_pll_set so the previous HW
> state doesn't affect the result of reading the current HW state.
>
> This fixes WARNs about WRPLL refcount if we have an HDMI monitor on
> HSW and then suspend/resume.
>
> Cc: stable@vger.kernel.org
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64379
> Tested-by: Qingshuai Tian <qingshuai.tian@intel.com>
> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
--
Damien
> ---
> drivers/gpu/drm/i915/intel_ddi.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
> index 4ec1665..0def5ef 100644
> --- a/drivers/gpu/drm/i915/intel_ddi.c
> +++ b/drivers/gpu/drm/i915/intel_ddi.c
> @@ -1136,12 +1136,18 @@ void intel_ddi_setup_hw_pll_state(struct drm_device *dev)
> enum pipe pipe;
> struct intel_crtc *intel_crtc;
>
> + dev_priv->ddi_plls.spll_refcount = 0;
> + dev_priv->ddi_plls.wrpll1_refcount = 0;
> + dev_priv->ddi_plls.wrpll2_refcount = 0;
> +
> for_each_pipe(pipe) {
> intel_crtc =
> to_intel_crtc(dev_priv->pipe_to_crtc_mapping[pipe]);
>
> - if (!intel_crtc->active)
> + if (!intel_crtc->active) {
> + intel_crtc->ddi_pll_sel = PORT_CLK_SEL_NONE;
> continue;
> + }
>
> intel_crtc->ddi_pll_sel = intel_ddi_get_crtc_pll(dev_priv,
> pipe);
> --
> 1.8.4.2
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2014-01-08 14:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-08 13:12 [PATCH 1/2] drm/i915: fix DDI PLLs HW state readout code Paulo Zanoni
2014-01-08 13:12 ` [PATCH 2/2] drm/i915: fix wrong PLL debug messages Paulo Zanoni
2014-01-08 14:51 ` Damien Lespiau
2014-01-08 16:37 ` Paulo Zanoni
2014-01-08 14:27 ` Damien Lespiau [this message]
2014-01-08 14:53 ` [Intel-gfx] [PATCH 1/2] drm/i915: fix DDI PLLs HW state readout code Daniel Vetter
2014-01-08 15:40 ` Ville Syrjälä
2014-01-08 15:55 ` Paulo Zanoni
2014-01-08 16:13 ` Daniel Vetter
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=20140108142758.GA19801@strange.amr.corp.intel.com \
--to=damien.lespiau@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=paulo.r.zanoni@intel.com \
--cc=przanoni@gmail.com \
--cc=stable@vger.kernel.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