Giter Site home page Giter Site logo

ocerman / zenpower Goto Github PK

View Code? Open in Web Editor NEW
432.0 21.0 44.0 84 KB

Zenpower is Linux kernel driver for reading temperature, voltage(SVI2), current(SVI2) and power(SVI2) for AMD Zen family CPUs.

License: GNU General Public License v2.0

Makefile 6.68% C 93.32%
sensor-monitor ryzen amd linux linux-kernel linux-drivers amd-driver amd-cpu

zenpower's People

Contributors

jiblime avatar nickbuerger avatar ocerman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zenpower's Issues

Different Output of SV12_Core from Zenmonitor

Hello, I'm using Ryzen 5 3600 with Gigabyte B450 AORUS PRO motherboard. I have a conky script displaying the output on my desktop and my SV12_Core stays at 1.4 V constantly (not going down even on 2.5GHz idle). And I installed zenmonitor and I've got different result. In zenmonitor, the CPU Core Voltage (SV12) goes up and down depending on the CPU frequency (1.1 V on idle and 1.4 V on boost). So why is the core voltage displaying differently? Here's a screenshot showing it.
screenshot-2020-01-19_13-46-12
screenshot-2020-01-19_13-53-39

Here's a screencast showing it with watch 0.5 sensors command compared to zenmonitor:

ezgif com-video-to-gif (1)

Support for 19h family

Would it be a lot of work to add support for the Zen3 family?
I love zenpower on my 2700x, would be cool if my 5600x would also be supported.

Thanks,
t

[Help needed] Please provide debug data from zenpower

Hello everyone,
It would be very helpful for me for further development of Zenpower if you can share debug data from zenpower. Zenpower debug data contains raw data from SMN.

If you have latest zenpower driver installed, you can get debug data from file /sys/class/hwmon/hwmon[num]/debug_data or via this bash script

Please also state your CPU, Motherboard and Linux kernel version. Also, please state if you think that Core/SOC values are swapped or incorrect.

Thank you.

//EDIT:
If possible, please post also sensors output sensors zenpower-*

How to enable on Manjaro/Arch

Hi, I've installed this via the AUR on Manjaro, but running
sudo modprobe zenpower as per the README
I get
modprobe: FATAL: Module zenpower not found in directory /lib/modules/5.6.16-1-MANJARO

Speaking of SVI2_P_Core

What does this sensor mean exactly?

It surely doesn't report the correct power consumption because it remains fairly constant (~31W) despite any load, while e.g.

turbostat --quiet --num_iterations 1 --interval 1 --show PkgWatt --Summary

reports the correct values (from 15W to 91W for my Ryzen 7 3700X CPU).

R5 2600

Hello, I have a R5 2600, but it seems that zenpower doesn't recognize it ?
Config :
CPU : Ryzen 5 2600
MotherBoard : Asrock B450m PRO4
Distribution : ArchLinux
Kernel : 5.5.8-zen1-1-zen (Zen Kernel)

[G4E@G4E-pc ~]$ lsmod | grep zenpower
zenpower               16384  0
[G4E@G4E-pc ~]$ sudo zp_read_debug.sh 
Zenpower not found
[G4E@G4E-pc ~]$ sensors zenpower-*
Specified sensor(s) not found!

Edit :

[G4E@G4E-pc ~]$ lscpu
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   43 bits physical, 48 bits virtual
CPU(s):                          12
On-line CPU(s) list:             0-11
Thread(s) per core:              2
Core(s) per socket:              6
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       AuthenticAMD
CPU family:                      23
Model:                           8
Model name:                      AMD Ryzen 5 2600 Six-Core Processor
Stepping:                        2
Frequency boost:                 enabled
CPU MHz:                         2796.196
CPU max MHz:                     3400,0000
CPU min MHz:                     1550,0000
BogoMIPS:                        6799.19
Virtualization:                  AMD-V
L1d cache:                       192 KiB
L1i cache:                       384 KiB
L2 cache:                        3 MiB
L3 cache:                        16 MiB
NUMA node0 CPU(s):               0-11
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Full AMD retpoline, IBPB conditional, STIBP disabled, RSB filling
Vulnerability Tsx async abort:   Not affected
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_ts
                                 c rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cm
                                 p_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb hw_pstat
                                 e sme ssbd sev ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves clzero irperf xsaveerptr arat npt l
                                 brv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov succor smca

Curious about Ryzen 7 4750U sensors capabilities

Hi,

This is a bit off-topic. I've just installed zenpower and I get it working showing temperatures:

amdgpu-pci-0700
Adapter: PCI adapter
vddgfx:        1.02 V  
vddnb:       774.00 mV 
edge:         +52.0°C  
power1:      1000.00 uW 

thinkpad-isa-0000
Adapter: ISA adapter
fan1:        4000 RPM
temp1:        +52.0°C  
temp2:         +0.0°C  
temp3:         +0.0°C  
temp4:         +0.0°C  
temp5:         +0.0°C  
temp6:         +0.0°C  
temp7:         +0.0°C  
temp8:            N/A  

nvme-pci-0100
Adapter: PCI adapter
Composite:    +46.9°C  (low  =  -0.1°C, high = +84.8°C)
                       (crit = +85.8°C)
Sensor 1:     +46.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 2:     +50.9°C  (low  = -273.1°C, high = +65261.8°C)

iwlwifi_1-virtual-0
Adapter: Virtual device
temp1:        +55.0°C  

zenpower-pci-00c3
Adapter: PCI adapter
Tdie:         +52.6°C  (high = +95.0°C)
Tctl:         +52.6°C  

BAT0-acpi-0
Adapter: ACPI interface
in0:          12.25 V

I was wondering if this is all the data I can expect with current kernel and zenpower. For example, temperature and fan readings are not per individual core.

Merged 5.7-rc Patch Doesn't (or at least no longer) works

So, zenpower as a whole is completely broken now on GCC 10.1.0, which was released the other day. It won't even install on LTS kernels. But I downgraded GCC to get this installed, and turns out, it doesn't work for 5.7-rc5, the current rc for 5.7. I noticed someone else had mentioned a patch, which you seem to have merged, but it doesn't work:

cat /var/lib/dkms/zenpower/44.ee05fcf/build/make.log
DKMS make.log for zenpower-44.ee05fcf for kernel 5.7.0-rc5-1-tkg-pds (x86_64)
Thu 14 May 2020 12:09:20 PM EDT
make: Entering directory '/usr/lib/modules/5.7.0-rc5-1-tkg-pds/build'
  CC [M]  /var/lib/dkms/zenpower/44.ee05fcf/build/zenpower.o
/var/lib/dkms/zenpower/44.ee05fcf/build/zenpower.c: In function ‘zenpower_probe’:
/var/lib/dkms/zenpower/44.ee05fcf/build/zenpower.c:543:12: error: ‘amd_nb_misc_ids’ undeclared (first use in this function)
  543 |  for (id = amd_nb_misc_ids; id->vendor; id++) {
      |            ^~~~~~~~~~~~~~~
/var/lib/dkms/zenpower/44.ee05fcf/build/zenpower.c:543:12: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [scripts/Makefile.build:267: /var/lib/dkms/zenpower/44.ee05fcf/build/zenpower.o] Error 1
make: *** [Makefile:1729: /var/lib/dkms/zenpower/44.ee05fcf/build] Error 2
make: Leaving directory '/usr/lib/modules/5.7.0-rc5-1-tkg-pds/build'

That's an error in zenpower.c, and it seems specifically to do with the new patch.

So, in summation, zenpower is completely broken with GCC 10.1, and with 9.3 it works for other kernels, but not 5.7-rc5 because of something wrong in the patch.

EDIT: Here again is the GCC-caused breakage output:

 cat /var/lib/dkms/zenpower/0.1.10/build/make.log
DKMS make.log for zenpower-0.1.10 for kernel 5.4.40-1-MANJARO (x86_64)
Thu 14 May 2020 11:45:10 AM EDT
make[1]: Entering directory '/usr/lib/modules/5.4.40-1-MANJARO/build'
  CC [M]  /var/lib/dkms/zenpower/0.1.10/build/zenpower.o
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:266: /var/lib/dkms/zenpower/0.1.10/build/zenpower.o] Error 1
make[1]: *** [Makefile:1691: /var/lib/dkms/zenpower/0.1.10/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.4.40-1-MANJARO/build'
make: *** [Makefile:27: modules] Error 2

Investigating Accuracy of Vcore: Comparison with groeck it87

System Specifications

I've been trying to gauge accuracy of Vcore readings compared to groeck's it87 out of tree module, & I've logged my results of Vcore at idle versus load with both. Simulated load was done using mprime -t. My system is set to 1.275V Vcore in the BIOS.

Here are my findings:

Idle           Load      Measure
--------------------------------
1.257V       |  1.25V   |  zenpower
1.243-1.254V |  1.243V  |  it87

I've been wondering now which method is more accurate. I understand it87 uses a variety of I/O chips which vary depending on motherboard manufacturer. After perusing your code, I noticed no reliance on such dodgy I/O chips. In your opinion, which do you think is more accurate & how would one devise which method of measurement is the most accurate. it87 seems dead in terms of development.

Anyone elses' comparisons would be a welcome addition here.

License

What is the license of the code for this kernel module?

[Question] Are you looking to get this mainlined?

Thanks for providing this! Zen sensor support has been quite bad in Linux and this driver is certainly appreciated.

But seems to me that this driver should probably land in the kernel itself I wonder if you are trying to get it mainlined. Are you?

Ryzen 7000?

Does anyone support or plan to support the Ryzen 7000 series? If so, let me know! I'm interested in that.

Errors compiling on kernel 5.4 on ubuntu 18.04

hello

I am trying to build zenpower on ubuntu 18.04 with kernel 5.4 (installed via ukuu)

make output

$ sudo make dkms-install
mkdir /usr/src/zenpower-0.1.8
cp /home/gasper/git/zenpower/dkms.conf /usr/src/zenpower-0.1.8
cp /home/gasper/git/zenpower/Makefile /usr/src/zenpower-0.1.8
cp /home/gasper/git/zenpower/zenpower.c /usr/src/zenpower-0.1.8
sed -e "s/@CFLGS@//" \
    -e "s/@VERSION@/0.1.8/" \
    -i /usr/src/zenpower-0.1.8/dkms.conf
dkms add zenpower/0.1.8

Creating symlink /var/lib/dkms/zenpower/0.1.8/source ->
                 /usr/src/zenpower-0.1.8

DKMS: add completed.
dkms build zenpower/0.1.8

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j16 KERNELRELEASE=5.4.18-050418-generic TARGET=5.4.18-050418-generic CFLAGS_MODULE+=...(bad exit status: 2)
ERROR (dkms apport): binary package for zenpower: 0.1.8 not found
Error! Bad return status for module build on kernel: 5.4.18-050418-generic (x86_64)
Consult /var/lib/dkms/zenpower/0.1.8/build/make.log for more information.
Makefile:33: recipe for target 'dkms-install' failed
make: *** [dkms-install] Error 10

the log says

././include/linux/compiler_types.h:210:24: error: expected ‘(’ before ‘__inline’
./arch/x86/include/asm/alternative.h:128:2: error: expected identifier or ‘(’ before string constant
etc..

full log make.log

Is this project dead?

Considering the issues, commits, Zen 4 support and overall activity on the project is seems abandoned.
Is the anyone maintaining this repository or any plans to get it updated?

Zen power can't report each core's temperature on R9 3950X.

My mainboard is ASUS PRO WS X570 ACE, CPU is R9 3950X. I have compiled zenpower (on Linux kernel v5.5.7). But it only shows Tccd, Tdie, Tctl. Each core's temperature doesn't show up in sensors application.

hikari@kanau:~$ sensors
nct6798-isa-0290
Adapter: ISA adapter
in0: +1.24 V (min = +0.00 V, max = +1.74 V)
in1: +1.02 V (min = +0.00 V, max = +0.00 V) ALARM
in2: +3.42 V (min = +0.00 V, max = +0.00 V) ALARM
in3: +3.34 V (min = +0.00 V, max = +0.00 V) ALARM
in4: +1.74 V (min = +0.00 V, max = +0.00 V) ALARM
in5: +0.59 V (min = +0.00 V, max = +0.00 V) ALARM
in6: +1.09 V (min = +0.00 V, max = +0.00 V) ALARM
in7: +3.42 V (min = +0.00 V, max = +0.00 V) ALARM
in8: +3.26 V (min = +0.00 V, max = +0.00 V) ALARM
in9: +0.90 V (min = +0.00 V, max = +0.00 V) ALARM
in10: +0.03 V (min = +0.00 V, max = +0.00 V) ALARM
in11: +0.05 V (min = +0.00 V, max = +0.00 V) ALARM
in12: +1.02 V (min = +0.00 V, max = +0.00 V) ALARM
in13: +1.20 V (min = +0.00 V, max = +0.00 V) ALARM
in14: +0.90 V (min = +0.00 V, max = +0.00 V) ALARM
fan1: 2368 RPM (min = 0 RPM)
fan2: 1790 RPM (min = 0 RPM)
fan3: 1744 RPM (min = 0 RPM)
fan4: 0 RPM (min = 0 RPM)
fan7: 0 RPM (min = 0 RPM)
SYSTIN: +18.0°C (high = +80.0°C, hyst = +75.0°C) sensor = thermistor
CPUTIN: +23.5°C (high = +80.0°C, hyst = +75.0°C) sensor = thermistor
AUXTIN0: +21.5°C sensor = thermistor
AUXTIN1: +127.0°C sensor = thermistor
AUXTIN2: +123.0°C sensor = thermistor
AUXTIN3: +31.0°C sensor = thermistor
PCH_CHIP_CPU_MAX_TEMP: +0.0°C
PCH_CHIP_TEMP: +0.0°C
PCH_CPU_TEMP: +0.0°C
PCH_MCH_TEMP: +0.0°C
intrusion0: ALARM
intrusion1: OK
beep_enable: disabled

nouveau-pci-0800
Adapter: PCI adapter
fan1: 0 RPM
temp1: +28.0°C (high = +95.0°C, hyst = +3.0°C)
(crit = +105.0°C, hyst = +5.0°C)
(emerg = +135.0°C, hyst = +5.0°C)

zenpower-pci-00c3
Adapter: PCI adapter
SVI2_Core: +1.25 V
SVI2_SoC: +1.09 V
Tdie: +23.5°C (high = +95.0°C)
Tctl: +23.5°C
Tccd1: +22.8°C
Tccd2: +23.2°C
SVI2_P_Core: 13.18 W
SVI2_P_SoC: 10.25 W
SVI2_C_Core: +11.20 A
SVI2_C_SoC: +9.42 A

hikari@kanau:~$

Compilation errors on 0.1.6

This is on Arch Linux with GCC 9.2:

/var/lib/dkms/zenpower/30.c4e7e6c/build/make.log                                                                                          
DKMS make.log for zenpower-30.c4e7e6c for kernel 5.4.14-arch1-1 (x86_64)
ven. janv. 24 12:59:32 CET 2020
make: Entering directory '/usr/lib/modules/5.4.14-arch1-1/build'
  CC [M]  /var/lib/dkms/zenpower/30.c4e7e6c/build/zenpower.o
/var/lib/dkms/zenpower/30.c4e7e6c/build/zenpower.c: In function ‘zenpower_read’:
/var/lib/dkms/zenpower/30.c4e7e6c/build/zenpower.c:232:20: error: expected ‘)’ before ‘__attribute__’
  232 |    __attribute__ ((fallthrough)); // see note at zenpower_info
      |                    ^
      |                    )
/var/lib/dkms/zenpower/30.c4e7e6c/build/zenpower.c:232:32: error: expected identifier or ‘(’ before ‘)’ token
  232 |    __attribute__ ((fallthrough)); // see note at zenpower_info
      |                                ^
/var/lib/dkms/zenpower/30.c4e7e6c/build/zenpower.c:232:4: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  232 |    __attribute__ ((fallthrough)); // see note at zenpower_info
      |    ^~~~~~~~~~~~~
/var/lib/dkms/zenpower/30.c4e7e6c/build/zenpower.c:231:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
  231 |    channel -= 1;     // hwmon_in have different indexing,
      |    ~~~~~~~~^~~~
/var/lib/dkms/zenpower/30.c4e7e6c/build/zenpower.c:234:3: note: here
  234 |   case hwmon_curr:
      |   ^~~~
make[1]: *** [scripts/Makefile.build:266: /var/lib/dkms/zenpower/30.c4e7e6c/build/zenpower.o] Error 1
make: *** [Makefile:1652: /var/lib/dkms/zenpower/30.c4e7e6c/build] Error 2
make: Leaving directory '/usr/lib/modules/5.4.14-arch1-1/build'

Missing license.

Hey,

I'm adding zenpower to my Gentoo overlay (repository) and there is no license. As kernel module I think this should be under GPL license terms.

Please consider adding license in near future.

Support for kernel 5.9.1

Hi,
Ran into this issue before a few kernels back but it did get fixed.
All the cores are not displaying the frequency. The rest of the info is there (temp voltages etc)

Running on kernel 5.9.1, AMD Ryzen Threadripper 2970WX

i did go through the update instructions for zenpower but still no luck

AMD EPYC 7351P not working

System: HPE ProLiant DL325 Gen10
Kernel: 5.0.15-1-pve x86_64
Processor: AMD EPYC 7351P 16-Core Processor (23/1/2)
Distro : Proxmox 6.0 (Debian Buster)

if you need more info, just toss a message into my direction.

dmesg error :

[341189.548252] ACPI Error: No handler for Region [POWR] (000000008241729d) [IPMI] (20181213/evregion-132)
[341189.549001] ACPI Error: Region IPMI (ID=7) has no handler (20181213/exfldio-265)
[341189.549680] No Local Variables are initialized for Method [_PMM]
[341189.549680] No Arguments are initialized for method [_PMM]
[341189.549682] ACPI Error: Method parse/execution failed \_SB.PMI0._PMM, AE_NOT_EXIST (20181213/psparse-531)
[341189.550404] ACPI Error: AE_NOT_EXIST, Evaluating _PMM (20181213/power_meter-338)

sensors with k10temp :

k10temp-pci-00d3
Adapter: PCI adapter
Tdie:         +39.8°C  (high = +70.0°C)
Tctl:         +39.8°C  

k10temp-pci-00c3
Adapter: PCI adapter
Tdie:         +44.2°C  (high = +70.0°C)
Tctl:         +44.2°C  

ixgbe-pci-c401
Adapter: PCI adapter
loc2:         +34.0°C  (high = +105.0°C, crit = +95.0°C)

k10temp-pci-00db
Adapter: PCI adapter
Tdie:         +44.2°C  (high = +70.0°C)
Tctl:         +44.2°C  

k10temp-pci-00cb
Adapter: PCI adapter
Tdie:         +40.4°C  (high = +70.0°C)
Tctl:         +40.4°C  

power_meter-acpi-0
Adapter: ACPI interface
power1:        0.00 W  (interval = 300.00 s)

sensors with zenpower :

ixgbe-pci-c401
Adapter: PCI adapter
loc2:         +32.0°C  (high = +105.0°C, crit = +95.0°C)

power_meter-acpi-0
Adapter: ACPI interface
power1:        0.00 W  (interval = 300.00 s)

TLP + auto-cpufreq

Just bought my new Thinkpad T14 AMD and immediately started to tune it.

There are a lot of manuals on internet how to improve battery life. I ended up with tlp+auto-cpufreq
But... Kernel 5.9 released, where many power management improvements were done.

I don't have so much experience with hw tuning, so I would like to ask: is it worth to use tlp+auto-cpufreq or system power management is more effective?

Maybe add answer to this question to README/WIKI?

Can't compile latest version

Hi,

I can not compile the latest version of zenpower on my system.
0.1.5 works, but 0.1.6 & 0.1.7 failed.

My environment:
Debian 10 with GCC 8.3 / CentOS 7 with GCC 7

The error log:
  CC [M]  /root/zenpower/zenpower.o
/root/zenpower/zenpower.c:379:2: error: implicit declaration of function ‘HWMON_CHANNEL_INFO’; did you mean ‘HWMON_C_LABEL’? [-Werror=implicit-function-declaration]
  HWMON_CHANNEL_INFO(temp,
  ^~~~~~~~~~~~~~~~~~
  HWMON_C_LABEL
/root/zenpower/zenpower.c:379:21: error: ‘temp’ undeclared here (not in a function); did you mean ‘sem’?
  HWMON_CHANNEL_INFO(temp,
                     ^~~~
                     sem
/root/zenpower/zenpower.c:385:21: error: ‘in’ undeclared here (not in a function); did you mean ‘inl’?
  HWMON_CHANNEL_INFO(in,
                     ^~
                     inl
/root/zenpower/zenpower.c:393:21: error: ‘curr’ undeclared here (not in a function); did you mean ‘char’?
  HWMON_CHANNEL_INFO(curr,
                     ^~~~
                     char
/root/zenpower/zenpower.c:397:21: error: ‘power’ undeclared here (not in a function)
  HWMON_CHANNEL_INFO(power,
                     ^~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:310: /root/zenpower/zenpower.o] Error 1
make[1]: *** [Makefile:1526: _module_/root/zenpower] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.19.94-300.el7.x86_64'
make: *** [Makefile:27: modules] Error 2

cpu power

Hello to all.

happy new year to come .

here it is : I am under debian sid kernel 6.0.0-6-amd64

i noticed (at least, it seems to me) that the display of the cpu power (ryzen 9 3900x, asus prime x570 pro) in lm-sensors does not work anymore.
the voltages have also disappeared.
only the temperatures and the speed of the cpu fan remain.

Do you have any explanation for this phenomenon?
and solutions ?

in my games, with mangohud, I would have liked to display also the cpu power.
but this data is constantly displayed at zero.

waiting to read you ...
friendly, dany .

p.s.: on request, I can give you more information, of course.

Translated with www.DeepL.com/Translator (free version)

Wrong info shows on Ryzen 3000

First, thank you for creating this. Looking forward to new updates

Now for the issue:
I'm using Ryzen 3900x on top of Ubuntu 19.04 (Pop OS) and the numbers the sensor is showing are not correct.

This is what I'm getting from "sensors" command

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +16.8°C  (crit = +20.8°C)
temp2:        +16.8°C  (crit = +20.8°C)

zenpower-pci-00c3
Adapter: PCI adapter
SVI2_Core:    -0.04 V  
SVI2_SoC:     -0.04 V  
Tdie:        +206.9°C  (high = +70.0°C)
Tctl:        +206.9°C  
SVI2_P_Core: -11.39 W  
SVI2_P_SoC:   -3.96 W  
SVI2_C_Core: +265.00 A  
SVI2_C_SoC:  +92.00 A 

SVI2_Core & SVI2_SoC mixed up on ASRock X470 Taichi

My Core and SoC seem to be the wrong way around; this is on a 3700x and ASRock X470 Taichi. It was correct when the CPU was in my old Asus X370 Prime board but on ASRock X470 Taichi it appears swapped. I have re-run sensors-detect etc. Unsure if I simply need to just rename some labels? If that's the case close the issue.

zenpower-pci-00c3
Adapter: PCI adapter
SVI2_Core:    +1.02 V  
SVI2_SoC:     +1.45 V  
Tdie:         +33.5°C  (high = +70.0°C)
Tctl:         +33.5°C  
SVI2_P_Core:  26.63 W  
SVI2_P_SoC:    6.28 W  
SVI2_C_Core: +25.98 A  
SVI2_C_SoC:   +4.33 A 

Shots of HWINFO:

hwinfo-1
hwinfo-2

and attached the debug info from it.
HWiNFO64.DBG.zip

Ryzen 3000 series not working

I get the following output from lm_sensors on my Ryzen 7 3700x:

zenpower-pci-00c3

Adapter: PCI adapter
SVI2_Core:    +1.55 V  
SVI2_SoC:     +1.55 V  
Tdie:          +0.0°C  (high = +70.0°C)
Tctl:          +0.0°C  
SVI2_P_Core:   0.00 W  
SVI2_P_SoC:    0.00 W  
SVI2_C_Core:  +0.00 A  
SVI2_C_SoC:   +0.00 A  

Do you have any documentation to help me test/code to get this working?

Doesn't build against kernel 5.7-rc2

Hi, the module does not build against linux 5.7-rcX

towo@Ideapad:~/source/zenpower/zenpower$ cat /var/lib/dkms/zenpower/0.1.10/build/make.log
DKMS make.log for zenpower-0.1.10 for kernel 5.7.0-rc2-siduction-amd64 (x86_64)
Sa 25. Apr 15:36:50 CEST 2020
make[1]: Entering directory '/usr/src/linux-headers-5.7.0-rc2-siduction-amd64'
  CC [M]  /var/lib/dkms/zenpower/0.1.10/build/zenpower.o
/var/lib/dkms/zenpower/0.1.10/build/zenpower.c: In function 'zenpower_probe':
/var/lib/dkms/zenpower/0.1.10/build/zenpower.c:543:12: error: 'amd_nb_misc_ids' undeclared (first use in this function)
  543 |  for (id = amd_nb_misc_ids; id->vendor; id++) {
      |            ^~~~~~~~~~~~~~~
/var/lib/dkms/zenpower/0.1.10/build/zenpower.c:543:12: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:272: /var/lib/dkms/zenpower/0.1.10/build/zenpower.o] Error 1
make[1]: *** [Makefile:1735: /var/lib/dkms/zenpower/0.1.10/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.7.0-rc2-siduction-amd64'
make: *** [Makefile:27: modules] Error 2

SVI2_C_SoC Current is 0 on threadripper 2920x

zenpower reports current is 0. The SoC voltage also seems very low as well.

output from sensors;

`zenpower-pci-00c3
Adapter: PCI adapter
SVI2_Core: +1.00 V
SVI2_SoC: +0.01 V
Tdie: +35.6°C (high = +70.0°C)
Tctl: +62.6°C
SVI2_P_Core: 60.27 W
SVI2_P_SoC: 0.00 W
SVI2_C_Core: +60.27 A
SVI2_C_SoC: +0.00 A

zenpower-pci-00cb
Adapter: PCI adapter
SVI2_Core: +1.36 V
SVI2_SoC: +0.01 V
Tdie: +33.9°C (high = +70.0°C)
Tctl: +60.9°C
SVI2_P_Core: 14.10 W
SVI2_P_SoC: 0.00 W
SVI2_C_Core: +11.43 A
SVI2_C_SoC: +0.00 A`

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.