* [Bug 213115] New: Unable to set the lowest frequency of AMD CPUs via cpupower - while kernel 5.12.4 (or 5.3.18) is booted with "nosmt"
@ 2021-05-17 20:48 bugzilla-daemon
2021-05-17 20:52 ` [Bug 213115] " bugzilla-daemon
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: bugzilla-daemon @ 2021-05-17 20:48 UTC (permalink / raw)
To: linux-pm
https://bugzilla.kernel.org/show_bug.cgi?id=213115
Bug ID: 213115
Summary: Unable to set the lowest frequency of AMD CPUs via
cpupower - while kernel 5.12.4 (or 5.3.18) is booted
with "nosmt"
Product: Power Management
Version: 2.5
Kernel Version: 5.12.4
Hardware: x86-64
OS: Linux
Tree: Mainline
Status: NEW
Severity: low
Priority: P1
Component: cpufreq
Assignee: linux-pm@vger.kernel.org
Reporter: yan.huang@suse.com
Regression: No
(Opening this bug as a junior team member of the SUSE Customer Support)
A SUSE customer wasn't able to set the lowest possible CPU frequency value via
cpupower on SUSE Linux Enterprise Desktop 15 SP2 (with the kernel 5.3.18) on
machines with AMD A12-9720P and AMD Ryzen 5 3550H - while they were booted with
"nosmt".
The customer said that this was working on the previous SUSE Linux Enterprise
Desktop 15 SP1 (with the kernel 4.12.14).
Just for this purpose, I purchased a laptop Lenovo IdeaPad 3-15ADA05 with AMD
Ryzen 3 3250U and was able to replicate the issue - with the kernel 5.3.18 (the
default one for SUSE Linux Enterprise Desktop 15 SP2) and the newest stable
kernel 5.12.4.
AMD Ryzen 3 3250U
- https://www.amd.com/en/products/apu/amd-ryzen-3-3250u
- 1st gen Zen
- 2 cores, 4 threads
- base frequency: 2.60 GHz
- boost frequency: 3.50 GHz
- cpupower frequency-info
-- hardware limits: 1.40 GHz - 2.60 GHz
-- available frequency steps: 2.60 GHz, 1.70 GHz, 1.40 GHz
Each time, I ran this command and expected the CPU core/thread frequencies to
be =< 1400 MHz:
modprobe cpufreq_userspace && cpupower frequency-set -g userspace && cpupower
frequency-set -f 1.40GHz && echo 0 > /sys/devices/system/cpu/cpufreq/boost
Default kernel 5.3.18
I. without "nosmt" (ok)
1) initially:
> localhost:~ # grep MHz /proc/cpuinfo
> cpu MHz : 1308.436
> cpu MHz : 1218.734
> cpu MHz : 1301.057
> cpu MHz : 1377.824
2) after running the command:
> localhost:~ # grep MHz /proc/cpuinfo
> cpu MHz : 1394.225
> cpu MHz : 1391.125
> cpu MHz : 1352.398
> cpu MHz : 1356.574
II. with "nosmt" (fail)
1) initially:
> localhost:~ # grep MHz /proc/cpuinfo
> cpu MHz : 1434.860
> cpu MHz : 1557.750
2) after running the command:
> localhost:~ # grep MHz /proc/cpuinfo
> cpu MHz : 2068.443
> cpu MHz : 1921.816
Kernel 4.12.14 - obtained from
https://download.opensuse.org/repositories/Kernel:/SLE15-SP1/standard/x86_64/
(no longer available)
I. without "nosmt" (ok)
1) initially:
> localhost:~ # grep MHz /proc/cpuinfo
> cpu MHz : 1700.000
> cpu MHz : 1400.000
> cpu MHz : 1400.000
> cpu MHz : 1400.000
2) after running the command:
> localhost:~ # grep MHz /proc/cpuinfo
> cpu MHz : 1400.000
> cpu MHz : 1400.000
> cpu MHz : 1400.000
> cpu MHz : 1400.000
II. with "nosmt" (ok)
1) initially:
> localhost:~ # grep MHz /proc/cpuinfo
> cpu MHz : 1400.000
> cpu MHz : 1400.000
2) after running the command:
> localhost:~ # grep MHz /proc/cpuinfo
> cpu MHz : 1400.000
> cpu MHz : 1400.000
Kernel 5.12.4 - obtained from
https://download.opensuse.org/repositories/Kernel:/stable/standard/x86_64/
I. without "nosmt" (ok)
1) initially:
> localhost:~ # grep MHz /proc/cpuinfo
> cpu MHz : 1400.000
> cpu MHz : 1400.000
> cpu MHz : 2263.054
> cpu MHz : 1269.757
2) after running the command:
> localhost:~ # grep MHz /proc/cpuinfo
> cpu MHz : 1400.000
> cpu MHz : 1340.634
> cpu MHz : 1400.000
> cpu MHz : 1400.000
II. with "nosmt" (fail)
1) initially:
> localhost:~ # grep MHz /proc/cpuinfo
> cpu MHz : 1494.915
> cpu MHz : 2600.000
2) after running the command:
> localhost:~ # grep MHz /proc/cpuinfo
> cpu MHz : 1731.255
> cpu MHz : 1400.000
I also tested various kernel versions from
http://download.opensuse.org/repositories/home:/tiwai:/kernel:/ - it seems that
the issue started in 5.1.x or earlier (I wasn't able to boot every kernel
version).
I opened a SUSE Bugzilla bug bsc#1175231, but it was decided to not pursue a
fix for this corner-case issue at SUSE's level (the solution is to just avoid
"nosmt").
The issue should be replicable even on openSUSE Leap 15.2 with the above
mentioned kernels.
It is possible that the issue is limited to the 1st generation of AMD Ryzen
CPUs (and AMD's pre-Ryzen CPUs).
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread* [Bug 213115] Unable to set the lowest frequency of AMD CPUs via cpupower - while kernel 5.12.4 (or 5.3.18) is booted with "nosmt" 2021-05-17 20:48 [Bug 213115] New: Unable to set the lowest frequency of AMD CPUs via cpupower - while kernel 5.12.4 (or 5.3.18) is booted with "nosmt" bugzilla-daemon @ 2021-05-17 20:52 ` bugzilla-daemon 2021-05-17 20:59 ` bugzilla-daemon ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: bugzilla-daemon @ 2021-05-17 20:52 UTC (permalink / raw) To: linux-pm https://bugzilla.kernel.org/show_bug.cgi?id=213115 Yan Huang (Johnny) (yan.huang@suse.com) changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yan.huang@suse.com Regression|No |Yes -- You may reply to this email to add a comment. You are receiving this mail because: You are the assignee for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 213115] Unable to set the lowest frequency of AMD CPUs via cpupower - while kernel 5.12.4 (or 5.3.18) is booted with "nosmt" 2021-05-17 20:48 [Bug 213115] New: Unable to set the lowest frequency of AMD CPUs via cpupower - while kernel 5.12.4 (or 5.3.18) is booted with "nosmt" bugzilla-daemon 2021-05-17 20:52 ` [Bug 213115] " bugzilla-daemon @ 2021-05-17 20:59 ` bugzilla-daemon 2021-05-17 21:01 ` bugzilla-daemon ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: bugzilla-daemon @ 2021-05-17 20:59 UTC (permalink / raw) To: linux-pm https://bugzilla.kernel.org/show_bug.cgi?id=213115 --- Comment #1 from Yan Huang (Johnny) (yan.huang@suse.com) --- Created attachment 296817 --> https://bugzilla.kernel.org/attachment.cgi?id=296817&action=edit /proc/cpuinfo Attaching /proc/cpuinfo from my own laptop Lenovo IdeaPad 3-15ADA05 with AMD Ryzen 3 3250U (while "nosmt" wasn't set) -- You may reply to this email to add a comment. You are receiving this mail because: You are the assignee for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 213115] Unable to set the lowest frequency of AMD CPUs via cpupower - while kernel 5.12.4 (or 5.3.18) is booted with "nosmt" 2021-05-17 20:48 [Bug 213115] New: Unable to set the lowest frequency of AMD CPUs via cpupower - while kernel 5.12.4 (or 5.3.18) is booted with "nosmt" bugzilla-daemon 2021-05-17 20:52 ` [Bug 213115] " bugzilla-daemon 2021-05-17 20:59 ` bugzilla-daemon @ 2021-05-17 21:01 ` bugzilla-daemon 2023-11-23 8:30 ` bugzilla-daemon 2023-11-24 6:47 ` bugzilla-daemon 4 siblings, 0 replies; 6+ messages in thread From: bugzilla-daemon @ 2021-05-17 21:01 UTC (permalink / raw) To: linux-pm https://bugzilla.kernel.org/show_bug.cgi?id=213115 --- Comment #2 from Yan Huang (Johnny) (yan.huang@suse.com) --- Created attachment 296821 --> https://bugzilla.kernel.org/attachment.cgi?id=296821&action=edit cpupower frequency-info Attaching the "cpupower frequency-info" output from my own laptop Lenovo IdeaPad 3-15ADA05 with AMD Ryzen 3 3250U (while "nosmt" wasn't set and before running the command mentioned in the comment #0) -- You may reply to this email to add a comment. You are receiving this mail because: You are the assignee for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 213115] Unable to set the lowest frequency of AMD CPUs via cpupower - while kernel 5.12.4 (or 5.3.18) is booted with "nosmt" 2021-05-17 20:48 [Bug 213115] New: Unable to set the lowest frequency of AMD CPUs via cpupower - while kernel 5.12.4 (or 5.3.18) is booted with "nosmt" bugzilla-daemon ` (2 preceding siblings ...) 2021-05-17 21:01 ` bugzilla-daemon @ 2023-11-23 8:30 ` bugzilla-daemon 2023-11-24 6:47 ` bugzilla-daemon 4 siblings, 0 replies; 6+ messages in thread From: bugzilla-daemon @ 2023-11-23 8:30 UTC (permalink / raw) To: linux-pm https://bugzilla.kernel.org/show_bug.cgi?id=213115 --- Comment #3 from Perry Yuan(AMD) (Perry.Yuan@amd.com) --- Hi Johnny looks like you are using acpi_cpufreq driver instead of amd_pstate or amd_pstate_epp. localhost:~ # cpupower frequency-info analyzing CPU 0: driver: acpi-cpufreq Could you provide the output of "lscpu -ae" ? It will show the frequency for min/max Perry. -- You may reply to this email to add a comment. You are receiving this mail because: You are the assignee for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 213115] Unable to set the lowest frequency of AMD CPUs via cpupower - while kernel 5.12.4 (or 5.3.18) is booted with "nosmt" 2021-05-17 20:48 [Bug 213115] New: Unable to set the lowest frequency of AMD CPUs via cpupower - while kernel 5.12.4 (or 5.3.18) is booted with "nosmt" bugzilla-daemon ` (3 preceding siblings ...) 2023-11-23 8:30 ` bugzilla-daemon @ 2023-11-24 6:47 ` bugzilla-daemon 4 siblings, 0 replies; 6+ messages in thread From: bugzilla-daemon @ 2023-11-24 6:47 UTC (permalink / raw) To: linux-pm https://bugzilla.kernel.org/show_bug.cgi?id=213115 xiaojian.du@amd.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xiaojian.du@amd.com --- Comment #4 from xiaojian.du@amd.com --- I think it is expected that 2 threads will get higher average loading than 4 threads, then it makes the cpu freq stay at one higher level. -- You may reply to this email to add a comment. You are receiving this mail because: You are the assignee for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-11-24 6:47 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2021-05-17 20:48 [Bug 213115] New: Unable to set the lowest frequency of AMD CPUs via cpupower - while kernel 5.12.4 (or 5.3.18) is booted with "nosmt" bugzilla-daemon 2021-05-17 20:52 ` [Bug 213115] " bugzilla-daemon 2021-05-17 20:59 ` bugzilla-daemon 2021-05-17 21:01 ` bugzilla-daemon 2023-11-23 8:30 ` bugzilla-daemon 2023-11-24 6:47 ` bugzilla-daemon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).