intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Ajdust down threshold in intel_pm.
@ 2012-07-03 21:16 Stéphane Marchesin
  2012-07-04  7:52 ` Daniel Vetter
  0 siblings, 1 reply; 4+ messages in thread
From: Stéphane Marchesin @ 2012-07-03 21:16 UTC (permalink / raw)
  To: intel-gfx

The up and down thresholds are very asymetric, so it is possible
to have a case where a spike of rendering increases the GPU clock to
the max (because the up threshold is low) and then a simple blinking
cursor is enough to keep the clock at the maximum speed forever
(because the down threshold is high).

Lowering the down threshold allows the GPU clock to go back down even
when there is a blinking cursor on the screen.

Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
---
 drivers/gpu/drm/i915/intel_pm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index d0ce2a5..eba882a 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -2432,7 +2432,7 @@ void gen6_enable_rps(struct drm_i915_private *dev_priv)
 		   dev_priv->max_delay << 24 |
 		   dev_priv->min_delay << 16);
 	I915_WRITE(GEN6_RP_UP_THRESHOLD, 10000);
-	I915_WRITE(GEN6_RP_DOWN_THRESHOLD, 1000000);
+	I915_WRITE(GEN6_RP_DOWN_THRESHOLD, 100000);
 	I915_WRITE(GEN6_RP_UP_EI, 100000);
 	I915_WRITE(GEN6_RP_DOWN_EI, 5000000);
 	I915_WRITE(GEN6_RP_IDLE_HYSTERSIS, 10);
-- 
1.7.5.3.367.ga9930

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/i915: Ajdust down threshold in intel_pm.
  2012-07-03 21:16 [PATCH] drm/i915: Ajdust down threshold in intel_pm Stéphane Marchesin
@ 2012-07-04  7:52 ` Daniel Vetter
  2012-07-16 19:50   ` Daniel Vetter
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Vetter @ 2012-07-04  7:52 UTC (permalink / raw)
  To: Stéphane Marchesin; +Cc: intel-gfx

On Tue, Jul 03, 2012 at 02:16:42PM -0700, Stéphane Marchesin wrote:
> The up and down thresholds are very asymetric, so it is possible
> to have a case where a spike of rendering increases the GPU clock to
> the max (because the up threshold is low) and then a simple blinking
> cursor is enough to keep the clock at the maximum speed forever
> (because the down threshold is high).
> 
> Lowering the down threshold allows the GPU clock to go back down even
> when there is a blinking cursor on the screen.
> 
> Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>

I've just merged Eugeni's hsw rc6 patches - those contain newly tuning
variables. Can you maybe try out whether these would have the same effect?
I'd prefer to simple enable these, presuming that the hw guys we've got
them from did some decent tuning ...
-Daniel
-- 
Daniel Vetter
Mail: daniel@ffwll.ch
Mobile: +41 (0)79 365 57 48

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/i915: Ajdust down threshold in intel_pm.
  2012-07-04  7:52 ` Daniel Vetter
@ 2012-07-16 19:50   ` Daniel Vetter
  2012-08-15 21:46     ` Stéphane Marchesin
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Vetter @ 2012-07-16 19:50 UTC (permalink / raw)
  To: Stéphane Marchesin; +Cc: intel-gfx

On Wed, Jul 04, 2012 at 09:52:11AM +0200, Daniel Vetter wrote:
> On Tue, Jul 03, 2012 at 02:16:42PM -0700, Stéphane Marchesin wrote:
> > The up and down thresholds are very asymetric, so it is possible
> > to have a case where a spike of rendering increases the GPU clock to
> > the max (because the up threshold is low) and then a simple blinking
> > cursor is enough to keep the clock at the maximum speed forever
> > (because the down threshold is high).
> > 
> > Lowering the down threshold allows the GPU clock to go back down even
> > when there is a blinking cursor on the screen.
> > 
> > Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
> 
> I've just merged Eugeni's hsw rc6 patches - those contain newly tuning
> variables. Can you maybe try out whether these would have the same effect?
> I'd prefer to simple enable these, presuming that the hw guys we've got
> them from did some decent tuning ...

Ping.

3.6 merge window is approach fast and I think I'd be good to get this in
... Or something similar, based on the hsw ratio between downclock and
upclock limit, but with the slightly bigger thresholds used by ivb/snb for
upclocks maybe?
-Daniel
-- 
Daniel Vetter
Mail: daniel@ffwll.ch
Mobile: +41 (0)79 365 57 48

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/i915: Ajdust down threshold in intel_pm.
  2012-07-16 19:50   ` Daniel Vetter
@ 2012-08-15 21:46     ` Stéphane Marchesin
  0 siblings, 0 replies; 4+ messages in thread
From: Stéphane Marchesin @ 2012-08-15 21:46 UTC (permalink / raw)
  To: Daniel Vetter; +Cc: intel-gfx


[-- Attachment #1.1: Type: text/plain, Size: 1850 bytes --]

On Mon, Jul 16, 2012 at 12:50 PM, Daniel Vetter <daniel@ffwll.ch> wrote:

> On Wed, Jul 04, 2012 at 09:52:11AM +0200, Daniel Vetter wrote:
> > On Tue, Jul 03, 2012 at 02:16:42PM -0700, Stéphane Marchesin wrote:
> > > The up and down thresholds are very asymetric, so it is possible
> > > to have a case where a spike of rendering increases the GPU clock to
> > > the max (because the up threshold is low) and then a simple blinking
> > > cursor is enough to keep the clock at the maximum speed forever
> > > (because the down threshold is high).
> > >
> > > Lowering the down threshold allows the GPU clock to go back down even
> > > when there is a blinking cursor on the screen.
> > >
> > > Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
> >
> > I've just merged Eugeni's hsw rc6 patches - those contain newly tuning
> > variables. Can you maybe try out whether these would have the same
> effect?
> > I'd prefer to simple enable these, presuming that the hw guys we've got
> > them from did some decent tuning ...
>
> Ping.
>
> 3.6 merge window is approach fast and I think I'd be good to get this in
> ... Or something similar, based on the hsw ratio between downclock and
> upclock limit, but with the slightly bigger thresholds used by ivb/snb for
> upclocks maybe?
>

So now that the dust settled, and that we better understand what's going
on, I am sure that those values are not adequate for us (neither the
default SNB/IVB, nor the Haswell ones).

For the record, here is what we set differently for Chrome OS to solve our
issues (we didn't see a performance regression, but we do get a major power
consumption reduction for lighter GPU loads like playing a video and that
blinking cursor):

GEN6_RP_DOWN_TIMEOUT 10000
GEN6_RP_UP_THRESHOLD 0x4000
GEN6_RP_DOWN_THRESHOLD 0x4000

Stéphane

[-- Attachment #1.2: Type: text/html, Size: 2471 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-08-15 21:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-03 21:16 [PATCH] drm/i915: Ajdust down threshold in intel_pm Stéphane Marchesin
2012-07-04  7:52 ` Daniel Vetter
2012-07-16 19:50   ` Daniel Vetter
2012-08-15 21:46     ` Stéphane Marchesin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).