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

Eugeni Dodonov eugeni.dodonov at linux.intel.com
Mon Jun 25 01:06:31 CEST 2012


On 06/20/2012 06:48 PM, Jesse Barnes wrote:
> 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>

(Assuming I haven't checked all the magic register values but I trust
that they work):

Reviewed-by: Eugeni Dodonov <eugeni.dodonov at intel.com>

Eugeni



More information about the Intel-gfx mailing list