From: Daniel Vetter <daniel@ffwll.ch>
To: "Vivi, Rodrigo" <rodrigo.vivi@intel.com>
Cc: "intel-gfx@lists.freedesktop.org" <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/i915: VLV/CHV PSR: Increase wait delay time before active PSR.
Date: Mon, 24 Nov 2014 10:22:46 +0100 [thread overview]
Message-ID: <20141124092246.GI25711@phenom.ffwll.local> (raw)
In-Reply-To: <AC49CA744796934484854BF79A8D0E563562927E@FMSMSX113.amr.corp.intel.com>
On Fri, Nov 21, 2014 at 10:00:53PM +0000, Vivi, Rodrigo wrote:
> Yeah, I'm glad you skipped this one. It was something old I was just carrying for too long...
>
> Just tested on -nightly and everything is working fine. Even after suspend-resume! :)
>
> Still said that I cannot use sink_crc when psr is enabled...
Don't we still need a patch to obey the minimal psr/non-psr times as
specified in the vbt like on hsw/bdw? Or is this a case where the vbt
doesn't quite mean the same thing on vlv/chv than on big core platforms?
Please chase the vbt/vbios/bangalore folks a bit to make sure we don't
have a gap here.
Thanks, Daniel
>
> Thank you very much.
>
> -----Original Message-----
> From: Daniel Vetter [mailto:daniel.vetter@ffwll.ch] On Behalf Of Daniel Vetter
> Sent: Friday, November 21, 2014 10:46 AM
> To: Vivi, Rodrigo
> Cc: intel-gfx@lists.freedesktop.org
> Subject: Re: [Intel-gfx] [PATCH] drm/i915: VLV/CHV PSR: Increase wait delay time before active PSR.
>
> On Wed, Nov 19, 2014 at 07:38:51AM -0800, Rodrigo Vivi wrote:
> > Since active function on VLV immediately activate PSR let's give more
> > time for idleness.
> >
> > v2: Rebase over intel_psr.c and fix typo.
> > v3: s/psr/PSR on comment (by Durgadoss)
> >
> > Reviewed-by: Durgadoss R <durgadoss.r@intel.com>
> > Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > ---
> > drivers/gpu/drm/i915/intel_psr.c | 7 ++++++-
> > 1 file changed, 6 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_psr.c
> > b/drivers/gpu/drm/i915/intel_psr.c
> > index dd0e6e0..57bf6d4 100644
> > --- a/drivers/gpu/drm/i915/intel_psr.c
> > +++ b/drivers/gpu/drm/i915/intel_psr.c
> > @@ -597,6 +597,11 @@ void intel_psr_flush(struct drm_device *dev,
> > struct drm_i915_private *dev_priv = dev->dev_private;
> > struct drm_crtc *crtc;
> > enum pipe pipe;
> > + /* On HSW/BDW Hardware controls idle_frames to go to PSR entry state
> > + * However on VLV we go to PSR active state with PSR work. So let's
> > + * wait more time and let the user experience smooth enough.
> > + */
> > + int delay = msecs_to_jiffies(HAS_DDI(dev) ? 100 : 5000);
>
> I'd like to know how we arrived at this number? And the justification imo doesn't make a lot of sense, whether it's hw or sw entering psr state doesn't take a lot of cpu cycles. Two things:
>
> - Should we compute this delay according to the minimal psr exit frames we
> already get from vbt and use for hsw/bdw?
> - Do we need to adjust igt testcases to wait longer with this 5s delay?
>
> I'll punt on this patch for now until this is resolved.
> -Daniel
>
> >
> > mutex_lock(&dev_priv->psr.lock);
> > if (!dev_priv->psr.enabled) {
> > @@ -631,7 +636,7 @@ void intel_psr_flush(struct drm_device *dev,
> >
> > if (!dev_priv->psr.active && !dev_priv->psr.busy_frontbuffer_bits)
> > schedule_delayed_work(&dev_priv->psr.work,
> > - msecs_to_jiffies(100));
> > + msecs_to_jiffies(delay));
> > mutex_unlock(&dev_priv->psr.lock);
> > }
> >
> > --
> > 1.9.3
> >
> > _______________________________________________
> > 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
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2014-11-24 9:22 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-14 16:52 [PATCH 01/15] drm/i915: Make dp aux pack/unpack public outside intel_dp.c Rodrigo Vivi
2014-11-14 16:52 ` [PATCH 02/15] drm/i915: Introduce intel_psr.c Rodrigo Vivi
2014-11-18 18:16 ` R, Durgadoss
2014-11-14 16:52 ` [PATCH 03/15] drm/i915: Add PSR docbook Rodrigo Vivi
2014-11-18 18:18 ` R, Durgadoss
2014-11-14 16:52 ` [PATCH 04/15] drm/i915: Parse VBT PSR block Rodrigo Vivi
2015-02-10 19:26 ` Damien Lespiau
2014-11-14 16:52 ` [PATCH 05/15] drm/i915: HSW/BDW PSR Set idle_frames = VBT + 1 Rodrigo Vivi
2014-11-14 16:52 ` [PATCH 06/15] drm/i915: PSR get full link off x standby from VBT Rodrigo Vivi
2014-11-18 18:21 ` R, Durgadoss
2014-11-21 18:46 ` Daniel Vetter
2014-11-14 16:52 ` [PATCH 07/15] drm/i915: PSR skip aux on wake up as defined by VBT Rodrigo Vivi
2014-11-17 18:48 ` Rodrigo Vivi
2014-11-14 16:52 ` [PATCH 08/15] drm/i915: remove PSR BDW single frame update Rodrigo Vivi
2014-11-18 18:23 ` R, Durgadoss
2014-11-19 15:34 ` [PATCH] " Rodrigo Vivi
2014-11-21 14:55 ` shuang.he
2014-11-14 16:52 ` [PATCH 09/15] drm/i915: Fix intel_psr_is_enabled function and document it Rodrigo Vivi
2014-11-18 18:24 ` R, Durgadoss
2014-11-19 13:51 ` Daniel Vetter
2014-11-19 15:34 ` [PATCH] drm/i915: Remove intel_psr_is_enabled function Rodrigo Vivi
2014-11-20 5:56 ` R, Durgadoss
2014-11-20 10:22 ` Rodrigo Vivi
2014-11-21 13:12 ` shuang.he
2014-11-21 18:29 ` Daniel Vetter
2014-11-21 11:35 ` Rodrigo Vivi
2014-11-21 18:28 ` shuang.he
2014-11-21 13:14 ` shuang.he
2014-11-14 16:52 ` [PATCH 10/15] drm/i915: Add PSR registers for PSR VLV/CHV Rodrigo Vivi
2014-11-18 18:27 ` R, Durgadoss
2014-11-14 16:52 ` [PATCH 11/15] drm/i915: PSR VLV/CHV: Introduce setup, enable and disable functions Rodrigo Vivi
2014-11-18 18:32 ` R, Durgadoss
2014-11-19 18:20 ` Rodrigo Vivi
2014-11-19 19:22 ` R, Durgadoss
2014-11-19 15:37 ` [PATCH] " Rodrigo Vivi
2014-11-20 5:54 ` R, Durgadoss
2014-11-19 22:30 ` [PATCH 11/15] " Rodrigo Vivi
2014-11-14 16:52 ` [PATCH 12/15] drm/i915: VLV/CHV PSR Software timer mode Rodrigo Vivi
2014-11-18 18:36 ` R, Durgadoss
2014-11-19 15:37 ` [PATCH] " Rodrigo Vivi
2014-11-20 5:52 ` R, Durgadoss
2014-11-14 16:52 ` [PATCH 13/15] drm/i915: VLV/CHV PSR: Increase wait delay time before active PSR Rodrigo Vivi
2014-11-18 18:37 ` R, Durgadoss
2014-11-19 15:38 ` [PATCH] " Rodrigo Vivi
2014-11-21 18:45 ` Daniel Vetter
2014-11-21 22:00 ` Vivi, Rodrigo
2014-11-24 9:22 ` Daniel Vetter [this message]
2014-11-22 9:28 ` [PATCH] drm/i915: VLV/CHV PSR: Increase wait delay time shuang.he
2014-11-14 16:52 ` [PATCH 14/15] drm/i915: VLV/CHV PSR debugfs Rodrigo Vivi
2014-11-18 18:40 ` R, Durgadoss
2014-11-14 16:52 ` [PATCH 15/15] drm/i915: Enable PSR for Baytrail and Braswell Rodrigo Vivi
2014-11-15 9:47 ` [PATCH 15/15] drm/i915: Enable PSR for Baytrail and shuang.he
2014-11-17 18:18 ` [PATCH 15/15] drm/i915: Enable PSR for Baytrail and Braswell Daniel Vetter
2014-11-17 18:30 ` Rodrigo Vivi
2014-11-17 18:51 ` Daniel Vetter
2014-11-17 19:12 ` Rodrigo Vivi
2014-11-17 20:18 ` Daniel Vetter
2014-11-20 17:25 ` Rodrigo Vivi
2014-11-20 17:58 ` R, Durgadoss
2014-11-20 11:44 ` [PATCH] " Rodrigo Vivi
2014-11-22 17:08 ` shuang.he
2014-11-17 18:14 ` [PATCH 01/15] drm/i915: Make dp aux pack/unpack public outside intel_dp.c Daniel Vetter
-- strict thread matches above, loose matches on Subject: below --
2015-07-24 23:38 [PATCH 1/2] drm/i915: VLV/CHV PSR: Increase wait delay time before active PSR Rodrigo Vivi
2015-07-24 23:42 ` [PATCH] " Rodrigo Vivi
2015-07-25 9:18 ` shuang.he
2015-07-27 8:36 ` Daniel Vetter
2015-07-27 18:37 ` Vivi, Rodrigo
2015-07-28 8:19 ` Daniel Vetter
2015-07-31 0:07 ` Rodrigo Vivi
2015-08-05 8:08 ` 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=20141124092246.GI25711@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=rodrigo.vivi@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