Re: [PATCH v7 2/2] perf/x86/amd/power: Add AMD accumulated power reporting mechanism

From: Borislav Petkov
Date: Tue Mar 08 2016 - 06:05:15 EST


On Mon, Mar 07, 2016 at 10:26:42AM +0800, Huang Rui wrote:
> Introduce an AMD accumlated power reporting mechanism for the Family
> 15h, Model 60h processor that can be used to calculate the average
> power consumed by a processor during a measurement interval. The
> feature support is indicated by CPUID Fn8000_0007_EDX[12].
>
> This feature will be implemented both in hwmon and perf. The current
> design provides one event to report per package/processor power
> consumption by counting each compute unit power value.

...

> Suggested-by: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> Suggested-by: Ingo Molnar <mingo@xxxxxxxxxx>
> Suggested-by: Borislav Petkov <bp@xxxxxxx>
> Signed-off-by: Huang Rui <ray.huang@xxxxxxx>
> Cc: Guenter Roeck <linux@xxxxxxxxxxxx>
> ---
> arch/x86/Kconfig | 9 +
> arch/x86/kernel/cpu/Makefile | 1 +
> arch/x86/kernel/cpu/perf_event_amd_power.c | 353 +++++++++++++++++++++++++++++

Please redo this patch against latest tip/master and add Thomas'
Reviewed-by.

Thanks.

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.