Bug 210685 - k10temp reports wrong values for Vcore, Icore and Isoc (?)
Summary: k10temp reports wrong values for Vcore, Icore and Isoc (?)
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Hardware Monitoring (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: Jean Delvare
URL:
Keywords:
Depends on: 210121
Blocks:
  Show dependency tree
 
Reported: 2020-12-14 13:12 UTC by Artem S. Tashkinov
Modified: 2021-10-23 10:22 UTC (History)
2 users (show)

See Also:
Kernel Version: 5.10
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Artem S. Tashkinov 2020-12-14 13:12:44 UTC
CPU: Ryzen 7 3700X.
MB: ASUS TUF GAMING X570-PLUS (WI-FI) 


Idle PC:

k10temp-pci-00c3
Adapter: PCI adapter
Vcore:         1.55 V  
Vsoc:        925.00 mV 
Tctl:         +31.5°C  
Tdie:         +31.5°C  
Tccd1:        +31.8°C  
Icore:         0.00 A  
Isoc:        930.00 mA


1 core 100% load:

Vcore:         1.55 V  
Vsoc:        975.00 mV 
Tctl:         +34.5°C  
Tdie:         +34.5°C  
Tccd1:        +34.8°C  
Icore:         0.00 A  
Isoc:          1.86 A 


All cores 100% load:

Vcore:         1.55 V  
Vsoc:        988.00 mV 
Tctl:         +43.4°C  
Tdie:         +43.4°C  
Tccd1:        +43.5°C  
Icore:         0.00 A  
Isoc:          7.75 A
Comment 1 Artem S. Tashkinov 2020-12-14 13:20:10 UTC
I've tried to patch the driver as shown in https://bugzilla.kernel.org/show_bug.cgi?id=210121#c9 - no luck.
Comment 2 Artem S. Tashkinov 2020-12-14 13:28:23 UTC
ZenPower works better: https://github.com/ocerman/zenpower

Idle:

zenpower-pci-00c3
Adapter: PCI adapter
SVI2_Core:   925.00 mV 
SVI2_SoC:      1.09 V  
Tdie:         +32.5°C  (high = +95.0°C)
Tctl:         +32.5°C  
Tccd1:        +31.8°C  
SVI2_P_Core:   3.03 W  
SVI2_P_SoC:    8.32 W  
SVI2_C_Core:   3.29 A  
SVI2_C_SoC:    7.65 A 

All cores 100% load:

SVI2_Core:     1.34 V  
SVI2_SoC:      1.09 V  
Tdie:         +59.1°C  (high = +95.0°C)
Tctl:         +59.1°C  
Tccd1:        +57.8°C  
SVI2_P_Core:  18.68 W  
SVI2_P_SoC:    8.32 W  
SVI2_C_Core:  14.49 A  
SVI2_C_SoC:    7.65 A

Amperage doesn't seem correct though.
Comment 3 Guenter Roeck 2020-12-14 18:21:13 UTC
Unfortunately the maintainer of ZenPower doesn't seem to be interested in contributing to the upstream kernel. Given that, and because there is effecitely no support from AMD, it is all but impossible to maintain the kernel driver. I'll probably just remove Zen CPU support from the kernel for anything but the CPU temperature.
Comment 4 Wei Huang 2020-12-14 18:54:38 UTC
Please wait few more days. I submitted the questions to client team and they haven't got back to me. I will ping them again today.

Thanks,
-Wei
Comment 5 Guenter Roeck 2020-12-14 21:43:38 UTC
I don't think waiting will make a difference.

It isn't just that wrong values are reported; problem is also the varying slope (conversion factor from register value to voltage/current) between processors. Initially I thought that fixing this with the configuration file would be sufficient. As it turns out, it is not: Users expect the driver to report correct values without adjustment. The "slack" that used to be given to Super-IO chips does not apply, or does not apply anymore. Consequently, the only appropriate action is to remove voltage/current support entirely from this driver.
Comment 6 Artem S. Tashkinov 2021-10-23 10:22:06 UTC
Let's say it's "fixed" however the feature has simply been dropped :-(

Note You need to log in before you can comment on or make changes to this bug.