[Bug 1199661] New: amd-pstate CPU Performance Scaling Driver
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661 Bug ID: 1199661 Summary: amd-pstate CPU Performance Scaling Driver Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Tumbleweed Status: NEW Severity: Enhancement Priority: P5 - None Component: Kernel Assignee: kernel-bugs@opensuse.org Reporter: reiokorn@tutanota.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Hello, is there an easy way to activate the new amd-pstate driver on Tumbleweed? I've tried: kernel-parameters: amd_pstate.replace=1 and amd_pstate.shared_mem=1 additionally I created a file named /etc/modules-load.d/amd-pstate.conf inside: # Load amd pstate at boot amd_pstate However it still defaults to: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver acpi-cpufreq Anything I'm missing here? Thanks for your help -- You are receiving this mail because: You are the assignee for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661#c1
--- Comment #1 from B
Hello,
is there an easy way to activate the new amd-pstate driver on Tumbleweed?
I've tried: kernel-parameters: amd_pstate.replace=1 and amd_pstate.shared_mem=1
additionally I created a file named /etc/modules-load.d/amd-pstate.conf
inside: # Load amd pstate at boot amd_pstate
However it still defaults to: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver acpi-cpufreq
Anything I'm missing here?
Thanks for your help
My CPU: AMD Ryzen 7 5800X (Zen3) -- You are receiving this mail because: You are the assignee for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661#c5
--- Comment #5 from B
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661#c12
--- Comment #12 from B
The options can't be set in /etc/modules-load.d/*.conf files but rather in /etc/modprobe.d/*.conf file. The former can contain only the module file names to be loaded.
That is, you'll have to create two files, /etc/modules-load.d/amd-pstate.conf containing amd_pstate and /etc/modprobe.d/amd-pstate.conf containing options amd-pstate shared_mem=1
The latter file may contain the blacklist, too. blacklist acpi_cpufreq
If those modules are to be included in initrd, rebuild initrd.
Kernel 5.18.11 has broken the amd_pstate driver, or the method described here no longer applies, and it no longer works. -- You are receiving this mail because: You are the assignee for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661#c14
--- Comment #14 from B
(In reply to B from comment #12)
Kernel 5.18.11 has broken the amd_pstate driver, or the method described here no longer applies, and it no longer works.
How exactly broken? Please give more details and logs.
It doesn't load the module anymore with your method described above. when running cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver as of kernel 5.18.11 it is no longer answering with "amd_pstate" it says: "no such file or directory" -- You are receiving this mail because: You are the assignee for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661#c15
--- Comment #15 from B
(In reply to Takashi Iwai from comment #13)
(In reply to B from comment #12)
Kernel 5.18.11 has broken the amd_pstate driver, or the method described here no longer applies, and it no longer works.
How exactly broken? Please give more details and logs.
It doesn't load the module anymore with your method described above.
when running cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver as of kernel 5.18.11 it is no longer answering with "amd_pstate" it says: "no such file or directory"
sudo modprobe amd-pstate shared_mem=1 modprobe: ERROR: could not insert 'amd_pstate': No such device I've found this discussion about the topic https://bugzilla.kernel.org/show_bug.cgi?id=216248 -- You are receiving this mail because: You are the assignee for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661#c16
Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661#c17
--- Comment #17 from B
OK, then could you check the latest kernel in OBS Kernel:stable? The fix should be included there since 5.18.13.
installed 5.18.14-1.g847b26a-default that fixed it for me. -- You are receiving this mail because: You are the assignee for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661#c19
B
Closing as per comment 17.
Thanks Takashi and Boris for helping the user out.
The commit fixing this problem is fbd74d16890b9f5d08ea69b5282b123c894f8860 (" ACPI: CPPC: Fix enabling CPPC on AMD systems with shared memory") from Linux v5.19, which has now been available on Tumbleweed for a while.
reopened still waiting for the 'replace' module parameter that should go into the kernel at some point?? see comment 11 and starting post -- You are receiving this mail because: You are the assignee for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661
http://bugzilla.opensuse.org/show_bug.cgi?id=1199661#c20
B
(In reply to Giovanni Gherdovich from comment #18)
Closing as per comment 17.
Thanks Takashi and Boris for helping the user out.
The commit fixing this problem is fbd74d16890b9f5d08ea69b5282b123c894f8860 (" ACPI: CPPC: Fix enabling CPPC on AMD systems with shared memory") from Linux v5.19, which has now been available on Tumbleweed for a while.
reopened still waiting for the 'replace' module parameter that should go into the kernel at some point?? see comment 11 and starting post
It looks like I was too hasty. It's now possible to load the amd-pstate driver via kernel-parameter... (since when?) I've just added amd_pstate.shared_mem=1 and that does the trick. And it seems my CPU only accepts the option with shared-memory, even though it's Zen3. ���kernel: amd_pstate: This processor supports shared memory solution, you can enable it with amd_pstate.shared_mem=1��� but it looks like this is not the end of the development yet? P-State EPP https://www.phoronix.com/news/AMD-P-State-EPP-Linux -- You are receiving this mail because: You are the assignee for the bug.
participants (1)
-
bugzilla_noreply@suse.com