From: Marc SCHAEFER <schaefer@alphanet.ch>
To: linux-hwmon@vger.kernel.org
Subject: Power measurement wrong when idle
Date: Sat, 29 Oct 2022 14:33:38 +0200 [thread overview]
Message-ID: <20221029123338.GA11915@alphanet.ch> (raw)
Hello,
I am using the apu2 embedded platform, which uses an amd64 AMD GX-412TC SOC,
stepping : 1
microcode : 0x7030105
With Debian bullseye, the power measurement when idle is very big, and wrong (>
80 .. 100 W). We have observed this behaviour on multiple systems.
The problem did not occur with Debian buster, does not occur with the
temperature sensor, and the power measurement goes back to apparently correct
values when the system is no longer idle.
It does not seem to be linked to amd64 specific firmwares.
The problem lies in the /sys/class/hwmon/hwmon0/power1_average not in the
lm-sensors package (direct reading the /sys files gives the same isue).
So it appears to be within the kernel: 4.19.0-22-amd64 seems ok and
5.10.0-18-amd64 is not.
Funnily, there does not seem to be relevant changes in the specific kernel
driver (fam15h_power).
Any idea what could lead to this strange behaviour?
Thank you for any ideas or pointers.
Examples:
When bullseye is idle, it's completely wrong (' are from me):
cat /sys/class/hwmon/hwmon0/power1_average
94'019'396
When bullseye has 100% CPU used (one core):
cat /sys/class/hwmon/hwmon0/power1_average
10'917'309
The only visible change is that hwmon1 and hwmon0 are interchanged:
bullseye:
fam15h_power-pci-00c4
Adapter: PCI adapter
power1: 88.61 W (interval = 0.01 s, crit = 6.00 W)
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +54.5 C (high = +70.0 C)
(crit = +105.0 C, hyst = +104.0 C)
buster:
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +59.6°C (high = +70.0°C)
(crit = +105.0°C, hyst = +104.0°C)
fam15h_power-pci-00c4
Adapter: PCI adapter
power1: 8.00 W (interval = 0.01 s, crit = 6.00 W)
next reply other threads:[~2022-10-29 13:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-29 12:33 Marc SCHAEFER [this message]
2022-10-29 13:52 ` Power measurement wrong when idle Guenter Roeck
2022-10-30 14:15 ` Marc SCHAEFER
2022-11-04 10:52 ` Marc SCHAEFER
2022-11-05 14:31 ` Marc SCHAEFER
2022-11-07 2:41 ` Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221029123338.GA11915@alphanet.ch \
--to=schaefer@alphanet.ch \
--cc=linux-hwmon@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox