From: James Bottomley Subject: Re: Massive power regression going 3.4->3.5 Date: Tue, 31 Jul 2012 10:57:10 +0100 Message-ID: <1343728630.12484.0.camel@dabdike.int.hansenpartnership.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from bedivere.hansenpartnership.com (bedivere.hansenpartnership.com [66.63.167.143]) by gabe.freedesktop.org (Postfix) with ESMTP id 21D7E9F3B4 for ; Tue, 31 Jul 2012 02:57:15 -0700 (PDT) In-Reply-To: <1343728466_21110@CP5-2952> 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: Chris Wilson Cc: "Rafael J. Wysocki" , Greg Kroah-Hartman , dri-devel@lists.freedesktop.org, linux-pm@vger.kernel.org List-Id: dri-devel@lists.freedesktop.org On Tue, 2012-07-31 at 10:54 +0100, Chris Wilson wrote: > On Tue, 31 Jul 2012 10:37:35 +0100, James Bottomley wrote: > > On Tue, 2012-07-31 at 09:28 +0100, Chris Wilson wrote: > > > On Tue, 31 Jul 2012 09:06:42 +0100, James Bottomley wrote: > > > > Actually, bad news: it looks like the problem is drm: > > > > > > > > on 3.5 killing X causes idle power to go 14W -> 5.9W > > > > on 3.4.6 killing X causes idle power to go 6.8W -> 5.7W > > > > > > The files that will be the most interesting to compare at first are: > > > > > > /sys/kernel/debug/dri/0/i915_drpc_info > > > /sys/kernel/debug/dri/0/i915_cur_delayinfo > > > /sys/kernel/debug/dri/0/i915_fbc_status > > > > This is for the good kernel 3.4.6 > > > > jejb@dabdike> cat /sys/kernel/debug/dri/0/i915_drpc_info > > RC information accurate: yes > > Video Turbo Mode: yes > > HW control enabled: yes > > SW control enabled: no > > RC1e Enabled: no > > RC6 Enabled: yes > > Deep RC6 Enabled: no > > Deepest RC6 Enabled: no > > Current RC state: RC6 > > Core Power Down: no > > jejb@dabdike> cat /sys/kernel/debug/dri/0/i915_cur_delayinfo > > GT_PERF_STATUS: 0x00000d29 > > RPSTAT1: 0x00040d00 > > Render p-state ratio: 13 > > Render p-state VID: 41 > > Render p-state limit: 255 > > CAGF: 650MHz > > RP CUR UP EI: 20459us > > RP CUR UP: 172us > > RP PREV UP: 0us > > RP CUR DOWN EI: 0us > > RP CUR DOWN: 0us > > RP PREV DOWN: 0us > > Lowest (RPN) frequency: 650MHz > > Nominal (RP1) frequency: 650MHz > > Max non-overclocked (RP0) frequency: 1100MHz > > jejb@dabdike> cat /sys/kernel/debug/dri/0/i915_fbc_status > > FBC disabled: disabled per module param (default off) > > > > And the bad kernel 3.5 > > > > jejb@dabdike> cat /sys/kernel/debug/dri/0/i915_drpc_info > > RC information accurate: yes > > Video Turbo Mode: yes > > HW control enabled: yes > > SW control enabled: no > > RC1e Enabled: no > > RC6 Enabled: yes > > Deep RC6 Enabled: no > > Deepest RC6 Enabled: no > > Current RC state: RC6 > > Core Power Down: no > > RC6 "Locked to RPn" residency since boot: 0 > > RC6 residency since boot: 97671911 > > RC6+ residency since boot: 0 > > RC6++ residency since boot: 0 > > jejb@dabdike> cat /sys/kernel/debug/dri/0/i915_cur_delayinfo > > GT_PERF_STATUS: 0x00000d29 > > RPSTAT1: 0x00048d00 > > Render p-state ratio: 13 > > Render p-state VID: 41 > > Render p-state limit: 255 > > CAGF: 650MHz > > RP CUR UP EI: 63719us > > RP CUR UP: 26us > > RP PREV UP: 0us > > RP CUR DOWN EI: 0us > > RP CUR DOWN: 0us > > RP PREV DOWN: 0us > > Lowest (RPN) frequency: 650MHz > > Nominal (RP1) frequency: 650MHz > > Max non-overclocked (RP0) frequency: 1100MHz > > jejb@dabdike> cat /sys/kernel/debug/dri/0/i915_fbc_status > > FBC disabled: disabled per module param (default off) > > Ok, that rules out the the easy case of rc6 being disabled or not > functioning at all, which could easily account for 6W. > > When did you inspect the debug files? One effect I can imagine is that > if your system was previously stuck at RPn and never upclocking the GPU > when X starts. The question would then be what is preventing the GPU > from reaching its lowest power state again. After I logged into an xfce4 session and powertop showed idle had been reached. James