From: Paul Menzel Subject: Re: [PATCH] drm/i915: use hsw rps tuning values everywhere on gen6+ Date: Wed, 15 Aug 2012 16:05:00 +0200 Message-ID: <1345039500.4264.6.camel@mattotaupa> References: <1345020105-5933-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0578075778==" Return-path: Received: from mail.gw90.de (mail.gw90.de [188.40.100.199]) by gabe.freedesktop.org (Postfix) with ESMTP id 50EC79F380 for ; Wed, 15 Aug 2012 07:05:18 -0700 (PDT) In-Reply-To: <1345020105-5933-1-git-send-email-daniel.vetter@ffwll.ch> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Daniel Vetter Cc: James.Bottomley@HansenPartnership.com, intel-gfx@lists.freedesktop.org, stable@vger.kernel.org List-Id: intel-gfx@lists.freedesktop.org --===============0578075778== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-yRSwUwY6fUYCChoqfyoU" --=-yRSwUwY6fUYCChoqfyoU Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Am Mittwoch, den 15.08.2012, 10:41 +0200 schrieb Daniel Vetter: > James Bottomley reported [1] a massive power regression, due to the > enabling of semaphores by default in 3.5. A workaround for him is to > again disable semaphores. And indeed, his system has a very hard time > to entre rc6 with semaphores enabled. s,entre,enter, > Ben Widawsky run around with a kill-a-watt a lot and noticed: > - There are indeed a few rare systems that seem to have a hard time > entering rc6 when desktop-idle. > - One machine, The Indestructible Toshiba regressed in this behaviour Never heard that Toshiba name. > between 3.5 and 3.6 in a merge commit! So rc6 behaviour with the > current setting seems to be highly timing dependent and not robust > at all. > - The behaviour James reported wrt semaphores seems to be a freak > timing thing that only happens on his specific machine, confirming > that enabling semaphores shouldn't reduce rc6 residency. >=20 > Now furthermore the Google ChromeOS guys reported [2] a while ago that > at least on some machines a simply a blinking cursor can keep the gpu > turbo at the highest frequency. This is because the current rps limits > used on snb/ivb are highly asymmetric. >=20 > On the theory that gpu turbo and rc6 tuning values are related, we've > tried whether the much saner looking (since much less asymmetric) rps > tuning values used for hsw would also help entering rc6 more robustly. >=20 > And it seems to work. >=20 > Reference[1]: http://lists.freedesktop.org/archives/dri-devel/2012-July/0= 25675.html > Reference[2]: http://lists.freedesktop.org/archives/intel-gfx/2012-July/0= 18692.html > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=3D53393 > Tested-by: Ben Widawsky Did James already confirm, that this fixes his problem? > Cc: stable@vger.kernel.org > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/i915/intel_pm.c | 15 ++++----------- > 1 file changed, 4 insertions(+), 11 deletions(-) >=20 > diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel= _pm.c > index d64dffb..cf10a1d 100644 > --- a/drivers/gpu/drm/i915/intel_pm.c > +++ b/drivers/gpu/drm/i915/intel_pm.c > @@ -2482,17 +2482,10 @@ static void gen6_enable_rps(struct drm_device *de= v) > dev_priv->rps.max_delay << 24 | > dev_priv->rps.min_delay << 16); > =20 > - if (IS_HASWELL(dev)) { > - I915_WRITE(GEN6_RP_UP_THRESHOLD, 59400); > - I915_WRITE(GEN6_RP_DOWN_THRESHOLD, 245000); > - I915_WRITE(GEN6_RP_UP_EI, 66000); > - I915_WRITE(GEN6_RP_DOWN_EI, 350000); > - } else { > - I915_WRITE(GEN6_RP_UP_THRESHOLD, 10000); > - I915_WRITE(GEN6_RP_DOWN_THRESHOLD, 1000000); > - I915_WRITE(GEN6_RP_UP_EI, 100000); > - I915_WRITE(GEN6_RP_DOWN_EI, 5000000); > - } > + I915_WRITE(GEN6_RP_UP_THRESHOLD, 59400); > + I915_WRITE(GEN6_RP_DOWN_THRESHOLD, 245000); > + I915_WRITE(GEN6_RP_UP_EI, 66000); > + I915_WRITE(GEN6_RP_DOWN_EI, 350000); > =20 > I915_WRITE(GEN6_RP_IDLE_HYSTERSIS, 10); > I915_WRITE(GEN6_RP_CONTROL, Acked-by: Paul Menzel Thanks, Paul --=-yRSwUwY6fUYCChoqfyoU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEABECAAYFAlArrIwACgkQPX1aK2wOHVgLVwCfe06Hc3Q0ntCMyLanfk5UyQt5 9GIAnif3zn0PeD4J+/cfiPkWPbpT+r3I =fBJN -----END PGP SIGNATURE----- --=-yRSwUwY6fUYCChoqfyoU-- --===============0578075778== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============0578075778==--