From: Daniel Vetter <daniel@ffwll.ch>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>,
Intel Graphics Development <intel-gfx@lists.freedesktop.org>,
Aleks <aleks@slobodensoftver.org.mk>,
stable@vger.kernel.org
Subject: Re: [PATCH] drm/i915: Don't take fp 0/1 selector into account for pll state
Date: Mon, 16 Jun 2014 20:01:26 +0200 [thread overview]
Message-ID: <20140616180125.GD5821@phenom.ffwll.local> (raw)
In-Reply-To: <20140616083239.GG27580@intel.com>
On Mon, Jun 16, 2014 at 11:32:39AM +0300, Ville Syrjälä wrote:
> On Sun, Jun 15, 2014 at 02:55:42PM +0200, Daniel Vetter wrote:
> > It changes at runtime and so should be ignored for pipe state checks.
> > Note that we don't yet read out the full DRRS state, so there's some
> > gaps. Bu DRRS is also not yet enabled for LVDS by default.
> >
> > Cc: Aleks <aleks@slobodensoftver.org.mk>
> > Reported-by: Aleks <aleks@slobodensoftver.org.mk>
> > Cc: stable@vger.kernel.org
> > Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> > ---
> > drivers/gpu/drm/i915/intel_display.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> > index ba1d9aac3958..1ccf660e67d9 100644
> > --- a/drivers/gpu/drm/i915/intel_display.c
> > +++ b/drivers/gpu/drm/i915/intel_display.c
> > @@ -8549,6 +8549,9 @@ static void i9xx_crtc_clock_get(struct intel_crtc *crtc,
> > else
> > fp = pipe_config->dpll_hw_state.fp1;
> >
> > + /* We don't compute the FPA 0/1 selector. */
> > + dpll &= ~DISPLAY_RATE_SELECT_FPA1;
> > +
>
> But we still compute port_clock based on the currently active FPA
> register. Won't that make the clock checks fail as well?
Well yeah, but that should get solved as part of the DRRS stuff I think.
Imo ignore the frequency selector for the dpll state is the right thing.
DRRS with state readout is still in-flux and unsolved wrt fastbooting.
Should I add a caveat to the commit message that this isn't everything or
not worth it as-is?
-Daniel
>
> > clock.m1 = (fp & FP_M1_DIV_MASK) >> FP_M1_DIV_SHIFT;
> > if (IS_PINEVIEW(dev)) {
> > clock.n = ffs((fp & FP_N_PINEVIEW_DIV_MASK) >> FP_N_DIV_SHIFT) - 1;
> > --
> > 2.0.0
> >
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/intel-gfx
>
> --
> Ville Syrjälä
> Intel OTC
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
next prev parent reply other threads:[~2014-06-16 18:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-15 12:55 [PATCH] drm/i915: Don't take fp 0/1 selector into account for pll state Daniel Vetter
2014-06-16 8:32 ` [Intel-gfx] " Ville Syrjälä
2014-06-16 18:01 ` Daniel Vetter [this message]
2014-06-16 18:20 ` Ville Syrjälä
2014-06-16 18:45 ` [Intel-gfx] " 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=20140616180125.GD5821@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=aleks@slobodensoftver.org.mk \
--cc=daniel.vetter@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=stable@vger.kernel.org \
--cc=ville.syrjala@linux.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