Re: [PATCH v7 3/4] perf,x86: add Intel RAPL PMU support

From: Vince Weaver
Date: Sat Nov 30 2013 - 11:37:25 EST


On Sat, 30 Nov 2013, Stephane Eranian wrote:

> Ok, I have added PP1 now and it works fine on my HSW desktop.
> What I want to know now is what is this map to on servers?
> And on clients, it is always mapped to the GFX. If so, then
> we can use a more specific name: power/energy-gfx/

I don't know if it is documented well, but I get the impression that PP1
is always graphics.

The turbostat code included with the kernel certainly thinks it is always
graphics, it maps PP1 to "GFX"

The turbostat code also has a map of which chips have which features,
although it seems to use internal Intel abbreviations that I don't
necessarily follow (BYT? AVN?):


switch (model) {
case 0x2A:
case 0x3A:
case 0x3C: /* HSW */
case 0x3F: /* HSW */
case 0x45: /* HSW */
case 0x46: /* HSW */
do_rapl = RAPL_PKG | RAPL_CORES | RAPL_CORE_POLICY |
RAPL_GFX | RAPL_PKG_POWER_INFO;
break;
case 0x2D:
case 0x3E:
do_rapl = RAPL_PKG | RAPL_CORES | RAPL_CORE_POLICY |
RAPL_DRAM | RAPL_PKG_PERF_STATUS | RAPL_DRAM_PERF_STATUS |
RAPL_PKG_POWER_INFO;
break;
case 0x37: /* BYT */
case 0x4D: /* AVN */
do_rapl = RAPL_PKG | RAPL_CORES ;
break;
default:
return;
}

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/