From: bugzilla-daemon@kernel.org
To: linux-pm@vger.kernel.org
Subject: [Bug 216189] New: amd-pstate stops working after S3 suspend
Date: Wed, 29 Jun 2022 15:21:36 +0000 [thread overview]
Message-ID: <bug-216189-137361@https.bugzilla.kernel.org/> (raw)
https://bugzilla.kernel.org/show_bug.cgi?id=216189
Bug ID: 216189
Summary: amd-pstate stops working after S3 suspend
Product: Power Management
Version: 2.5
Kernel Version: 5.18.8
Hardware: AMD
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: cpufreq
Assignee: linux-pm@vger.kernel.org
Reporter: a@annel.in
Regression: No
Hardware: Lenovo Thinkpad T14 Gen2 AMD
CPU: AMD Ryzen 7 PRO 5850U
Kernel: 5.18.8 (tried linux-next too)
I've managed to get new `amd-pstate` driver working on my system, but after
suspend (S3) it stops working and CPU frequency and Boost state control is not
working.
Falling back to `acpi-cpufreq` driver solves the issue — suspend no longer
breaks CPU frequency and Boost controls.
```
~ sudo cpupower frequency-info
analyzing CPU 0:
driver: amd-pstate
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 131 us
hardware limits: 400 MHz - 1.90 GHz
available cpufreq governors: ondemand performance schedutil
current policy: frequency should be within 800 MHz and 1.50 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 3.41 GHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: no
AMD PSTATE Highest Performance: 166. Maximum Frequency: 4.51 GHz.
AMD PSTATE Nominal Performance: 70. Nominal Frequency: 1.90 GHz.
AMD PSTATE Lowest Non-linear Performance: 41. Lowest Non-linear
Frequency: 1.11 GHz.
AMD PSTATE Lowest Performance: 15. Lowest Frequency: 400 MHz.
```
As we see here, frequency limits are set to 800 MHz - 1.50 GHz and boost stats
is inactive, but actual CPU frequency 3.41 GHz (that means boost is on and
limits are ignored)
The things starts working again only after reboot.
Any commands such as
```
echo 1 > /sys/devices/system/cpu/cpufreq/boost
echo 0 > /sys/devices/system/cpu/cpufreq/boost
cpupower frequency-set -g ondemand -d 400MHz -u 800MHz
cpupower frequency-set -g performance -d 1.9GHz -u 1.9GHz
```
just does nothing. (after reboot they start working again of course)
There are no mentions of pstate module in dmesg, but maybe I have to enable
some debug (how to do it?)
Simillar bug for intel_pstate:
https://bugzilla.kernel.org/show_bug.cgi?id=90421
Maybe it is related some way.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are the assignee for the bug.
next reply other threads:[~2022-06-29 15:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-29 15:21 bugzilla-daemon [this message]
2022-06-29 15:34 ` [Bug 216189] amd-pstate stops working after S3 suspend bugzilla-daemon
2022-06-29 15:35 ` bugzilla-daemon
2022-06-30 8:26 ` bugzilla-daemon
2022-06-30 8:33 ` bugzilla-daemon
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=bug-216189-137361@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@kernel.org \
--cc=linux-pm@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