ocerman / zenpower

Zenpower is Linux kernel driver for reading temperature, voltage(SVI2), current(SVI2) and power(SVI2) for AMD Zen family CPUs.
GNU General Public License v2.0
448 stars 45 forks source link

cpu power #44

Open Dany-Wilde opened 1 year ago

Dany-Wilde commented 1 year ago

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)

Dany-Wilde commented 1 year ago

alain@sid:~$ sensors jc42-i2c-0-1b Adapter: SMBus PIIX4 adapter port 0 at 0b00 temp1: +41.0°C (low = +0.0°C) ALARM (HIGH, CRIT) (high = +0.0°C, hyst = +0.0°C) (crit = +0.0°C, hyst = +0.0°C)

amdgpu-pci-0b00 Adapter: PCI adapter vddgfx: 775.00 mV fan1: 1471 RPM (min = 0 RPM, max = 3400 RPM) edge: +36.0°C (crit = +100.0°C, hyst = -273.1°C) (emerg = +105.0°C) junction: +37.0°C (crit = +110.0°C, hyst = -273.1°C) (emerg = +115.0°C) mem: +38.0°C (crit = +100.0°C, hyst = -273.1°C) (emerg = +105.0°C) PPT: 33.00 W (cap = 289.00 W)

nvme-pci-0100 Adapter: PCI adapter Composite: +37.9°C (low = -60.1°C, high = +89.8°C) (crit = +94.8°C)

asusec-isa-0000 Adapter: ISA adapter Chipset: 1438 RPM Chipset: +58.0°C
CPU: +40.0°C
Motherboard: +29.0°C
T_Sensor: -40.0°C
VRM: +0.0°C

jc42-i2c-0-1a Adapter: SMBus PIIX4 adapter port 0 at 0b00 temp1: +39.8°C (low = +0.0°C) ALARM (HIGH, CRIT) (high = +0.0°C, hyst = +0.0°C) (crit = +0.0°C, hyst = +0.0°C)

nvme-pci-0400 Adapter: PCI adapter Composite: +36.9°C (low = -0.1°C, high = +84.8°C) (crit = +94.8°C) Sensor 1: +36.9°C (low = -273.1°C, high = +65261.8°C) Sensor 2: +35.9°C (low = -273.1°C, high = +65261.8°C) Sensor 8: +36.9°C (low = -273.1°C, high = +65261.8°C)

alain@sid:~$ uname -a Linux sid 6.0.0-6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.12-1 (2022-12-09) x86_64 GNU/Linux

alain@sid:~$ lscpu | grep "modèle" Nom de modèle : AMD Ryzen 9 3900X 12-Core Processor

alain@sid:~$ sudo dmesg | grep DMI: [ 0.000000] DMI: System manufacturer System Product Name/PRIME X570-PRO, BIOS 4204 02/24/2022

alain@sid:~$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux bookworm/sid Release: n/a Codename: bookworm

alain@sid:~$ strace mangohud vkcube   2>&1 >/dev/null  | grep -i sensor
write(2, "[2022-12-30 22:15:07.784] [MANGO"..., 99[2022-12-30 22:15:07.784] [MANGOHUD] [error] [cpu.cpp:450] Could not find cpu temp sensor location   
 
alain@sid:~$ strace mangohud glxgears 2>&1 >/dev/null  | grep -i sensor
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/mangohud/libsensors.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libsensors.so.5", O_RDONLY|O_CLOEXEC) = 5
write(2, "[2022-12-30 22:15:34.596] [MANGO"..., 99[2022-12-30 22:15:34.596] [MANGOHUD] [error] [cpu.cpp:450] Could not find cpu temp sensor location

in french (my thread on debian-facile) : https://debian-facile.org/viewtopic.php?id=32809

EUA commented 1 year ago

You need to load "zenpower" kernel module to track watts... Unfortunately, you look like don't loaded zenpower module, probably due dkms issue... try to rebuild zenpower kernel module and load it with modprobe zenpower command

  zenpower-pci-00c3
  Adapter: PCI adapter
  SVI2_Core:     1.30 V  
  SVI2_SoC:      1.09 V  
  Tdie:         +71.6°C  (high = +95.0°C)
  Tctl:         +71.6°C  
  SVI2_P_Core:  68.34 W  
  SVI2_P_SoC:    4.80 W  
  SVI2_C_Core:  52.70 A  
  SVI2_C_SoC:    4.41 A  

  amdgpu-pci-0a00
  Adapter: PCI adapter
  vddgfx:        1.31 V  
  vddnb:         1.09 V  
  edge:         +53.0°C  
  PPT:          76.00 W