Comments (8)
Yes, it is possible to export cpu package power to the hwmon kernel driver. I will try to do it soon, however I won't put it into this kernel module and instead I will make a new one.
from zenpower.
Core power (SVI2_P_Core) = Core current (SVI2_C_Core) * Core voltage (SVI2_Core)
However the Core current is not accurate on some systems so reported wattage/amperage may not be accurate (I have updated the readme about this issue).
from zenpower.
Hello, I have released the new version, can you try it? The old version had soc/core values swapped and the formulas for wattage/amperage were not accurate. This should be fixed.
from zenpower.
@birdie-github can you please try to update zenpower to new version and post debug data to #12 ?
from zenpower.
Ryzen 7 3700X on a X570 motherboard.
0005a008 = 00000002
0005a00c = 014a001b
0005a010 = 01660003
000598bc = 0fff0fff
0005994c = 00000000
00059954 = 00000a90
00059958 = 00000000
0005995c = 00000000
Linux 5.2 with the two patches which allow the k10temp driver to recognize my CPU.
from zenpower.
I've compiled the master. The values are still not correct (relatively idle):
zenpower-pci-00c3
Adapter: PCI adapter
SVI2_Core: +0.91 V
SVI2_SoC: +1.09 V
Tdie: +38.4°C (high = +70.0°C)
Tctl: +38.4°C
SVI2_P_Core: 1.80 W
SVI2_P_SoC: 8.65 W
SVI2_C_Core: +1.98 A
SVI2_C_SoC: +7.95 A
turbostat shows around 25W.
Under load
zenpower-pci-00c3
Adapter: PCI adapter
SVI2_Core: +1.33 V
SVI2_SoC: +1.09 V
Tdie: +55.6°C (high = +70.0°C)
Tctl: +55.6°C
SVI2_P_Core: 15.87 W
SVI2_P_SoC: 9.28 W
SVI2_C_Core: +11.86 A
SVI2_C_SoC: +8.53 A
turbostat shows around 65W.
from zenpower.
So I have done some testing today with my 3700x. With 7z b
SVI2 Core power is ~42W and turbostat shows ~90W.
Because AMD did not publish documentation about SVI2 stuff, my goal is to show same values as HWiNFO. And on my system it seems all right (screenshots below).
According to HWiNFO developer (source) there is a difference between SVI2 Power(SVI2_P_Core+SVI2_P_SoC) and CPU Package Power (smu/rapl/turbostat):
AMD Zen CPUs have multiple voltage rails: VDDCR_CPU and VDDCR_SOC
CPU Core Power (SVI2 TFN) is measured via SVI2 telemetry and it reflects only the core (VDDCR_CPU) rail. SoC Power reflects the VDDCR_SOC rail. So VDDCR_CPU + VDDCR_SOC + (additional rest-of-chip power that can't be measured) should equal the total CPU Package Power.
I suggest to watch the CPU Package Power (SMU) value only as this is the total telemetry provided internally by the CPU.
@birdie-github 16W under load seems wrong. The debug data that you have posted were under load?
from zenpower.
After compiling the master:
7z b
zenpower-pci-00c3
Adapter: PCI adapter
SVI2_Core: +1.29 V
SVI2_SoC: +1.09 V
Tdie: +54.5°C (high = +70.0°C)
Tctl: +54.5°C
Tccd1: +58.8°C
SVI2_P_Core: 35.64 W
SVI2_P_SoC: 9.61 W
SVI2_C_Core: +27.01 A
SVI2_C_SoC: +8.83 A
So, the question remains, could you export Package Power in the zenpower kernel module, so that running the GUI utility is not necessary to see the real/overall/net CPU power consumption?
from zenpower.
Related Issues (20)
- Per Core Current and Voltage for AMD Threadripper 1950x
- Doesn't build against kernel 5.7-rc2 HOT 9
- Merged 5.7-rc Patch Doesn't (or at least no longer) works HOT 6
- Zenpower not showing frequencies HOT 2
- Add support for Ryzen 4000 APUs HOT 32
- How to enable on Manjaro/Arch HOT 9
- Interferes with NBFC module on ASUS ROG GL702ZC HOT 3
- Have to reinstall to see voltages, etc. after reboot in zenmonitor
- Does Zenpower support the PCI ids for Rome Epyc Zen 2 cpus? HOT 7
- Support for kernel 5.9.1 HOT 1
- TLP + auto-cpufreq HOT 1
- Support for 19h family HOT 119
- SMUSVI0_TFN and SMUSVI1_TFN not checked
- Curious about Ryzen 7 4750U sensors capabilities HOT 1
- 5950x do not appear with zenpower HOT 5
- cpu power HOT 2
- When I installed this DKMS my Amdgpu was downclocked
- Doesn't work on MSI B650i
- Is this project dead? HOT 5
- Ryzen 7000?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zenpower.