View previous topic :: View next topic |
Author |
Message |
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3810 Location: Rasi, Finland
|
Posted: Sun Dec 29, 2024 3:38 pm Post subject: amd-pstate not loading/activating [NOTSUPPORTED] |
|
|
This topic is splitted from "Daemon to set scaling_max_freq according to CPU temperature". --Zucca
EDIT: The following will help new readers to catch up: Zucca wrote: | Does intel CPUs generally benefit more of this daemon?
I haven't dug much info, but looking at htop and other sysmons on my boxes, it looks like most intel CPU can change cpu frequency very gradually, instead of rough steps.
My Ryzen based laptop has the following: Code: | available frequency steps: 2.10 GHz, 1.70 GHz, 1.40 GHz | , only three stages of CPU frequency.
I've been toying with an idea of building some µATX or even miniITX workstation. I'll probably place some high TDP CPU there, and would like to use cputemp2maxfreq to limit the performance when on "silent-mode".
So would choosing Intel be a better choice compared to AMD? |
logrusx wrote: | It looks like you're using ACPI-cpufreq. Afair it provides only 3 states.
Best Regards,
Georgi | Indeed I am.
I did a little investigation, and I have amd p-state driver compiled in, but: Code: | zucca@NBLK-WAX9X ~ $ dmesg | fgrep amd_pstate:
[ 0.670770] amd_pstate: the _CPC object is not present in SBIOS or ACPI disabled | ... and there aren't any setting in the BIOS to control this. In fact almost everything in BIOS is enabled.
Next step would be to update BIOS. _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
Last edited by Zucca on Sun Dec 29, 2024 7:48 pm; edited 5 times in total |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2544
|
Posted: Sun Dec 29, 2024 3:43 pm Post subject: |
|
|
Zucca wrote: | logrusx wrote: | It looks like you're using ACPI-cpufreq. Afair it provides only 3 states.
Best Regards,
Georgi | Indeed I am.
I did a little investigation, and I have amd p-state driver compiled in, but: Code: | zucca@NBLK-WAX9X ~ $ dmesg | fgrep amd_pstate:
[ 0.670770] amd_pstate: the _CPC object is not present in SBIOS or ACPI disabled | ... and there aren't any setting in the BIOS to control this. In fact almost everything in BIOS is enabled.
Next step would be to update BIOS. |
Which kernel? Which CPU?
Try
on the kernel command line.
Best Regards,
Georgi
p.s. maybe split that part of the thread |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3810 Location: Rasi, Finland
|
Posted: Sun Dec 29, 2024 6:34 pm Post subject: |
|
|
logrusx wrote: | Which kernel? Which CPU? |
Code: | zucca@NBLK-WAX9X ~ $ uname -a
Linux NBLK-WAX9X 6.1.118-NBLK-WAX9X #1 SMP PREEMPT_DYNAMIC Tue Dec 3 00:14:33 EET 2024 x86_64 AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx AuthenticAMD GNU/Linux | ... gentoo-kernel with slight modifications to the config, like dropping nvidia and intel cpu stuff.
logrusx wrote: | Try
on the kernel command line. | I've tried that already. Nothing changes. I even blacklisted acpi_cpufreq, but no result.
logrusx wrote: | p.s. maybe split that part of the thread | Done. ;) _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3941 Location: Hamburg
|
Posted: Sun Dec 29, 2024 6:53 pm Post subject: |
|
|
If it helps, here are the relevant kernel configs of 2 different AMD systems were scaling works well here: Code: | $ sudo zgrep -e FREQ -e GOV /proc/config.gz | grep -v ^#
CONFIG_ACPI_CPU_FREQ_PSS=y
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
CONFIG_CPU_IDLE_GOV_MENU=y
CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
CONFIG_THERMAL_GOV_FAIR_SHARE=y
CONFIG_THERMAL_GOV_STEP_WISE=y
CONFIG_THERMAL_GOV_BANG_BANG=y
CONFIG_THERMAL_GOV_USER_SPACE=y
$ uname -a
Linux p14s 6.6.68 #30 SMP Fri Dec 27 14:19:23 CET 2024 x86_64 AMD Ryzen 7 PRO 6850U with Radeon Graphics AuthenticAMD GNU/Linux
| and Code: | $ sudo zgrep -e FREQ -e GOV /proc/config.gz | grep -v ^#
CONFIG_ACPI_CPU_FREQ_PSS=y
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
CONFIG_X86_PCC_CPUFREQ=y
CONFIG_CPU_IDLE_GOV_MENU=y
CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
CONFIG_THERMAL_GOV_STEP_WISE=y
CONFIG_THERMAL_GOV_USER_SPACE=y
$ uname -a
Linux mr-fox 6.12.7 #6 SMP Fri Dec 27 13:19:56 UTC 2024 x86_64 AMD Ryzen 9 5950X 16-Core Processor AuthenticAMD GNU/Linux
|
|
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3810 Location: Rasi, Finland
|
Posted: Sun Dec 29, 2024 7:08 pm Post subject: |
|
|
Thanks @toralf.
I'll start comparing my configs... _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2544
|
Posted: Sun Dec 29, 2024 7:16 pm Post subject: |
|
|
Zucca wrote: | logrusx wrote: | Which kernel? Which CPU? |
Code: | zucca@NBLK-WAX9X ~ $ uname -a
Linux NBLK-WAX9X 6.1.118-NBLK-WAX9X #1 SMP PREEMPT_DYNAMIC Tue Dec 3 00:14:33 EET 2024 x86_64 AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx AuthenticAMD GNU/Linux | ... gentoo-kernel with slight modifications to the config, like dropping nvidia and intel cpu stuff.
logrusx wrote: | Try
on the kernel command line. |
I've tried that already. Nothing changes. I even blacklisted acpi_cpufreq, but no result.
|
I thought that CPU is Zen2, but unfortunately it's Zen+, so only acpi-cpufreq for it.
Best Regards,
Georgi |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3810 Location: Rasi, Finland
|
Posted: Sun Dec 29, 2024 7:51 pm Post subject: |
|
|
logrusx wrote: | I thought that CPU is Zen2, but unfortunately it's Zen+, so only acpi-cpufreq for it.
Best Regards,
Georgi | Ok. Thanks. I wasn't aware of Zen or Zen+ lacking p-state support. I might as well drop all the related settings from the kernel.
Maked as [NOTSUPPOTED]. ;) _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
|