Re: [patch] events/amd/power add support for fam16h model30h

From: Vince Weaver
Date: Fri Jun 17 2016 - 15:06:01 EST


On Fri, 17 Jun 2016, Borislav Petkov wrote:

> On Fri, Jun 17, 2016 at 01:38:44PM -0400, Vince Weaver wrote:
> > F15hM02h
> >
> > fam15h_power-pci-00c4
> > Adapter: PCI adapter
> > power1: 105.64 W (crit = 115.17 W)
> >
> > fam15h_power-pci-00d4
> > Adapter: PCI adapter
> > power1: 105.59 W (crit = 115.17 W)
>
> Is that a dual-socket machine?
>
> Because I have only the fam15h_power-pci-00c4 adapter. And mine goes
> between 20W and 40W in idle.

It's a dual-socket server machine.
AMD Opteron(tm) Processor 6376
2 packages, 16 cores each.


> That's Trinity. That PCI device ID is not even in the kernel - I'm
> guessing no one has even thought of enabling fam15_power on it. I don't
> know even whether it supports the different PCI interfaces like TDP, TDP
> limit, etc.
>
> IOW, something like that might not really help.

I'll try applying the patch. My code that probes the msrs/pci directly
from userspace seems to think it has support.

Vince