From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754668AbcFPVAS (ORCPT ); Thu, 16 Jun 2016 17:00:18 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:33278 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754220AbcFPVAQ (ORCPT ); Thu, 16 Jun 2016 17:00:16 -0400 From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Thu, 16 Jun 2016 17:00:04 -0400 (EDT) X-X-Sender: vince@macbook-air To: Huang Rui cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Borislav Petkov Subject: [patch] events/amd/power add support for fam16h model30h Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to the BKDG the AMD Family16h Model30h "Jaguar Mullins" also supports the accumulated power interface. I've tested on hardware I have and with this patch I indeed get power readings using perf. Signed-off-by: Vince Weaver diff --git a/arch/x86/events/amd/power.c b/arch/x86/events/amd/power.c index 55a3529..778b77d 100644 --- a/arch/x86/events/amd/power.c +++ b/arch/x86/events/amd/power.c @@ -292,6 +292,7 @@ static struct notifier_block power_cpu_notifier_nb = { static const struct x86_cpu_id cpu_match[] = { { .vendor = X86_VENDOR_AMD, .family = 0x15 }, + { .vendor = X86_VENDOR_AMD, .family = 0x16 }, {}, };