Giter Site home page Giter Site logo

Speaking of SVI2_P_Core about zenpower HOT 8 CLOSED

ocerman avatar ocerman commented on May 17, 2024
Speaking of SVI2_P_Core

from zenpower.

Comments (8)

ocerman avatar ocerman commented on May 17, 2024 3

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.

ocerman avatar ocerman commented on May 17, 2024 1

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.

ocerman avatar ocerman commented on May 17, 2024 1

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.

ocerman avatar ocerman commented on May 17, 2024

@birdie-github can you please try to update zenpower to new version and post debug data to #12 ?

from zenpower.

birdie-github avatar birdie-github commented on May 17, 2024

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.

birdie-github avatar birdie-github commented on May 17, 2024

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.

ocerman avatar ocerman commented on May 17, 2024

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.

zenpower

hwinfo

@birdie-github 16W under load seems wrong. The debug data that you have posted were under load?

from zenpower.

birdie-github avatar birdie-github commented on May 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.