From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Widawsky Subject: Re: [PATCH 7/7] drm/i915: expose energy counter on SNB and IVB Date: Wed, 10 Apr 2013 12:13:49 -0700 Message-ID: <20130410191348.GA7605@bwidawsk.net> References: <1346964850-2228-1-git-send-email-ben@bwidawsk.net> <1346964850-2228-8-git-send-email-ben@bwidawsk.net> <20120907100337.GA5511@phenom.ffwll.local> <20120907105144.524ca499@bwidawsk.net> <20130410142705.GB21133@cantiga.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from shiva.localdomain (unknown [209.20.75.48]) by gabe.freedesktop.org (Postfix) with ESMTP id 22DE4E6516 for ; Wed, 10 Apr 2013 12:13:53 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130410142705.GB21133@cantiga.alporthouse.com> 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: Chris Wilson , Jesse Barnes , intel-gfx@lists.freedesktop.org Cc: Jacob Pan List-Id: intel-gfx@lists.freedesktop.org On Wed, Apr 10, 2013 at 03:27:05PM +0100, Chris Wilson wrote: > On Fri, Sep 07, 2012 at 10:51:44AM -0700, Ben Widawsky wrote: > > On Fri, 7 Sep 2012 12:03:37 +0200 > > Daniel Vetter wrote: > > > > > On Thu, Sep 06, 2012 at 01:54:10PM -0700, Ben Widawsky wrote: > > > > From: Jesse Barnes > > > > > > > > On SNB and IVB, there's an MSR (also exposed through MCHBAR) we can use > > > > to read out the amount of energy used over time. Expose this in sysfs > > > > to make it easy to do power comparisons with different configurations. > > > > > > > > If the platform supports it, the file will show up under the > > > > drm/card0/power subdirectory of the PCI device in sysfs as gt_energy_uJ. > > > > The value in the file is a running total of energy (in microjoules) > > > > consumed by the graphics device. > > > > > > > > v2: move to sysfs (Ben, Daniel) > > > > expose a simple value (Chris) > > > > drop unrelated hunk (Ben) > > > > > > > > Signed-off-by: Jesse Barnes > > > > > > > > v3: by Ben > > > > Tied it into existing rc6 sysfs entries and named that a more generic > > > > "power attrs." Fixed rebase conflicts. > > > > > > > > Signed-off-by: Ben Widawsky > > A reminder that we never finished this patch. > -Chris > > -- > Chris Wilson, Intel Open Source Technology Centre This will be supported in the RAPL driver, so I think we don't need it. The latest version of that can be found: https://lkml.org/lkml/2013/4/9/812 -- Ben Widawsky, Intel Open Source Technology Center