Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
amd-pstate not loading/activating [NOTSUPPORTED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3810
Location: Rasi, Finland

PostPosted: Sun Dec 29, 2024 3:38 pm    Post subject: amd-pstate not loading/activating [NOTSUPPORTED] Reply with quote

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
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2543

PostPosted: Sun Dec 29, 2024 3:43 pm    Post subject: Reply with quote

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

Code:
amd_pstate=passive


on the kernel command line.

Best Regards,
Georgi

p.s. maybe split that part of the thread
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3810
Location: Rasi, Finland

PostPosted: Sun Dec 29, 2024 6:34 pm    Post subject: Reply with quote

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

Code:
amd_pstate=passive


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
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3941
Location: Hamburg

PostPosted: Sun Dec 29, 2024 6:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3810
Location: Rasi, Finland

PostPosted: Sun Dec 29, 2024 7:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2543

PostPosted: Sun Dec 29, 2024 7:16 pm    Post subject: Reply with quote

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

Code:
amd_pstate=passive


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
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3810
Location: Rasi, Finland

PostPosted: Sun Dec 29, 2024 7:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum