From: Ben Widawsky Subject: Re: Massive power regression going 3.4->3.5 Date: Thu, 02 Aug 2012 05:07:21 -0700 Message-ID: <1c5684ba1d15483c110f61f6402ca84d@bwidawsk.net> References: <1343477958.2891.6.camel@dabdike.int.hansenpartnership.com> <1343557599.2745.1.camel@dabdike.int.hansenpartnership.com> <201207291544.26334.rjw@sisk.pl> <201207292125.21376.rjw@sisk.pl> <1343641574.2905.2.camel@dabdike.int.hansenpartnership.com> <1343660041.2966.2.camel@dabdike.int.hansenpartnership.com> <86a9yh2oqe.fsf@sumi.keithp.com> <1343667940.5640.1.camel@dabdike.int.hansenpartnership.com> <864nop2jma.fsf@sumi.keithp.com> <1343719914.5640.8.camel@dabdike.int.hansenpartnership.com> <1343722002.3516.1.camel@dabdike.int.hansenpartnership.com> <1343723344_20808@CP5-2952> <1343727455.2930.0.camel@dabdike.int.hansenpartnership.com> <1343728466_21110@CP5-2952> <1343728630.12484.0.camel@dabdike.int.hansenpartnership.com> <1343729665_21195@CP5-2952> <1343762668_23120@CP5-2952> <1343808372.3047.1.camel@dabdike.int.hansenpartnership.com> <1343808986_25082@CP5-2952> <1343810704.2960.2.camel@dabdike.int.hansenpartnership.com> <1343811538_25213@CP5-2952> <1343813916.2960.23.camel@dabdike.int.hansenpartnership.com> <1343815571_25502@CP5-2952> <1343892001.2874.0.camel@dabdike.int.hansenpartnership.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from shiva.chad-versace.us (209-20-75-48.static.cloud-ips.com [209.20.75.48]) by gabe.freedesktop.org (Postfix) with ESMTP id C2A52A0AC5 for ; Thu, 2 Aug 2012 05:13:18 -0700 (PDT) In-Reply-To: <1343892001.2874.0.camel@dabdike.int.hansenpartnership.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: James Bottomley Cc: "Rafael J. Wysocki" , Greg Kroah-Hartman , linux-pm@vger.kernel.org, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On 2012-08-02 00:20, James Bottomley wrote: > On Wed, 2012-08-01 at 22:08 -0700, bwidawsk wrote: >> On 2012-08-01 03:06, Chris Wilson wrote: >> > On Wed, 01 Aug 2012 10:38:36 +0100, James Bottomley >> > wrote: >> >> On Wed, 2012-08-01 at 09:58 +0100, Chris Wilson wrote: >> >> > On Wed, 01 Aug 2012 09:45:04 +0100, James Bottomley >> >> wrote: >> >> > > On Wed, 2012-08-01 at 09:16 +0100, Chris Wilson wrote: >> >> > > > On Wed, 01 Aug 2012 09:06:12 +0100, James Bottomley >> >> wrote: >> >> > > > > I got the attached to apply and it doesn't really improve >> >> the idle power >> >> > > > > much (12.5W). >> >> > > > >> >> > > > That's good to know. Next step is to try overriding >> >> i915.semaphores. >> >> > > > Can you please test with i915.semaphores=0 and >> >> i915.semaphores=1? >> >> > > >> >> > > There's not much point doing i915_semaphores=1 since that's >> the >> >> default >> >> > > on gen 6 hardware, but i915_semaphores=0 recovers and idle >> power >> >> of >> >> > > ~6.5W >> >> > >> >> > It is only the default if iommu is off, and changing the >> default >> >> > was one of the side-effects of the patch you bisected. >> >> > >> >> > Can you please login to the desktop, let it idle, record >> >> > /sys/kernel/debug/dri/0/i915_cur_delayinfo and >> .../i915_drpc_info. >> >> > Then trace-cmd record -e i915 sleep 10s, >> >> >> >> OK, what is trace-cmd? It looks similar to perf tools ... is >> that >> >> it? >> > >> > Yes, it is roughly equivalent and you should be able to achieve >> the >> > same >> > with perf trace - except I haven't done it before so I don't have >> > quick >> > advice on how to drive it. :) >> > -Chris >> >> Should be something like: >> perf record -f -g -e i915:* -a > > I already sent the output of trace-cmd ... is that enough? > > James Yes, should do. Have we already eliminated the obvious? GPU semaphores will give time back to the GPU clients normally waiting on such things, X, XFCE, whatever else. It'd probably be handy to begin investigating what those guys are doing with their new extra time. Chris, this is what I was getting at on IRC the other day. What do you think?