public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] events/amd/power add support for fam16h model30h
@ 2016-06-16 21:00 Vince Weaver
  2016-06-16 21:12 ` Borislav Petkov
  0 siblings, 1 reply; 12+ messages in thread
From: Vince Weaver @ 2016-06-16 21:00 UTC (permalink / raw)
  To: Huang Rui
  Cc: linux-kernel, Peter Zijlstra, Ingo Molnar,
	Arnaldo Carvalho de Melo, Alexander Shishkin, Borislav Petkov


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 <vincent.weaver@maine.edu>

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 },
 	{},
 };
 

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-06-17 19:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-16 21:00 [patch] events/amd/power add support for fam16h model30h Vince Weaver
2016-06-16 21:12 ` Borislav Petkov
2016-06-17 10:07   ` Huang Rui
2016-06-17 10:31     ` Borislav Petkov
2016-06-17 15:56       ` Vince Weaver
2016-06-17 16:27         ` Borislav Petkov
2016-06-17 17:38           ` Vince Weaver
2016-06-17 18:19             ` Borislav Petkov
2016-06-17 18:58               ` Vince Weaver
2016-06-17 19:41                 ` Vince Weaver
2016-06-17 19:57                   ` Borislav Petkov
2016-06-17 19:51                 ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox