From: Daniel Vetter Subject: Re: [PATCH 2/2] drm/i915: tune the RC6 threshold for stability Date: Tue, 13 Aug 2013 22:29:59 +0200 Message-ID: <20130813202959.GG9296@phenom.ffwll.local> References: <1376420117-3073-1-git-send-email-marcheu@chromium.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by gabe.freedesktop.org (Postfix) with ESMTP id 3E4FCE680E for ; Tue, 13 Aug 2013 13:29:52 -0700 (PDT) Received: by mail-ee0-f41.google.com with SMTP id d17so4426441eek.14 for ; Tue, 13 Aug 2013 13:29:51 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1376420117-3073-1-git-send-email-marcheu@chromium.org> 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: =?iso-8859-1?Q?St=E9phane?= Marchesin Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Tue, Aug 13, 2013 at 11:55:17AM -0700, St=E9phane Marchesin wrote: > It's basically the same deal as the RC6+ issues on ivy bridge > except this time with RC6 on sandy bridge. Like last time the > core of the issue is that the timings don't work 100% with our > voltage regulator. So from time to time, the kernel will print > a warning message about the GPU not getting out of RC6. In > particular, I found this fairly easy to reproduce during > suspend/resume. > = > Changing the threshold to 125000 instead of 50000 seems to fix > the issue. The previous patch used 150000 but as it turns out > this doesn't work everywhere. After getting such a machine, I > bisected the highest value which works, which is 125000, so here > it is. > = > I also measured the idle power usage before/after this patch and > didn't see a difference on a sandy bridge laptop. On haswell and > up, it makes a big difference, so we want to keep it at 50k > there. It also seems like haswell doesn't have the RC6 issues > that sandy bridge has so the 50k value is fine. > = > Signed-off-by: St=E9phane Marchesin Queued for -next, thanks for the patch. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch