[Intel-gfx] [PATCH 7/7] drm/i915: expose energy counter on SNB and IVB

Chris Wilson chris at chris-wilson.co.uk
Wed Apr 10 16:27:05 CEST 2013


On Fri, Sep 07, 2012 at 10:51:44AM -0700, Ben Widawsky wrote:
> On Fri, 7 Sep 2012 12:03:37 +0200
> Daniel Vetter <daniel at ffwll.ch> wrote:
> 
> > On Thu, Sep 06, 2012 at 01:54:10PM -0700, Ben Widawsky wrote:
> > > From: Jesse Barnes <jbarnes at virtuousgeek.org>
> > > 
> > > 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 <jbarnes at virtuousgeek.org>
> > > 
> > > 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 <ben at bwidawsk.net>

A reminder that we never finished this patch.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list