From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932436AbcCHLFO (ORCPT ); Tue, 8 Mar 2016 06:05:14 -0500 Received: from mail.skyhub.de ([78.46.96.112]:37127 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750791AbcCHLFH (ORCPT ); Tue, 8 Mar 2016 06:05:07 -0500 Date: Tue, 8 Mar 2016 12:04:50 +0100 From: Borislav Petkov To: Huang Rui Cc: Borislav Petkov , Thomas Gleixner , Peter Zijlstra , Ingo Molnar , Andy Lutomirski , Robert Richter , Jacob Shin , Arnaldo Carvalho de Melo , Kan Liang , linux-kernel@vger.kernel.org, spg_linux_kernel@amd.com, x86@kernel.org, Suravee Suthikulpanit , Aravind Gopalakrishnan , Guenter Roeck , Fengguang Wu Subject: Re: [PATCH v7 2/2] perf/x86/amd/power: Add AMD accumulated power reporting mechanism Message-ID: <20160308110450.GD16568@pd.tnic> References: <1457317602-2903-1-git-send-email-ray.huang@amd.com> <1457317602-2903-3-git-send-email-ray.huang@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1457317602-2903-3-git-send-email-ray.huang@amd.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Suggested-by: Ingo Molnar > Suggested-by: Borislav Petkov > Signed-off-by: Huang Rui > Cc: Guenter Roeck > --- > 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.