View previous topic :: View next topic |
Author |
Message |
Linubie Guru


Joined: 11 Jun 2004 Posts: 395
|
Posted: Mon Feb 24, 2025 12:07 pm Post subject: After kernel update cpupower failes to start |
|
|
Linux gentupe 6.12.16-gentoo #1 SMP Mon Feb 24 11:09:15 CET 2025 x86_64 AMD Ryzen 7 3700X 8-Core Processor AuthenticAMD GNU/Linux
Code: | journalctl -xeu cpupower-frequency-set.service
Feb 24 12:23:18 gentupe cpupower[14099]: oder weil der userspace-Regler nicht geladen ist?
Feb 24 12:23:18 gentupe systemd[1]: cpupower-frequency-set.service: Main process exited, code=exited, status=237/KEYRING
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://gentoo.org/support/
░░
░░ An ExecStart= process belonging to unit cpupower-frequency-set.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 237.
Feb 24 12:23:18 gentupe systemd[1]: cpupower-frequency-set.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://gentoo.org/support/
░░
░░ The unit cpupower-frequency-set.service has entered the 'failed' state with result 'exit-code'.
Feb 24 12:23:18 gentupe systemd[1]: Failed to start CPU Frequency Scaling.
░░ Subject: A start job for unit cpupower-frequency-set.service has failed
░░ Defined-By: systemd
░░ Support: https://gentoo.org/support/
░░
░░ A start job for unit cpupower-frequency-set.service has finished with a failure.
░░
░░ The job identifier is 4759 and the job result is failed.
Feb 24 12:23:50 gentupe systemd[1]: Starting CPU Frequency Scaling...
░░ Subject: A start job for unit cpupower-frequency-set.service has begun execution
░░ Defined-By: systemd
░░ Support: https://gentoo.org/support/
░░
░░ A start job for unit cpupower-frequency-set.service has begun execution.
░░
░░ The job identifier is 4978.
Feb 24 12:23:50 gentupe cpupower[14248]: CPU einstellen: 0
Feb 24 12:23:50 gentupe cpupower[14248]: Fehler beim Festlegen neuer Werte. Häufige Fehler:
Feb 24 12:23:50 gentupe cpupower[14248]: - Verfügen Sie über die erforderlichen Administrationsrechte? (Superuser?)
Feb 24 12:23:50 gentupe cpupower[14248]: - Ist der von Ihnen gewünschte Regler verfügbar und mittels modprobe geladen?
Feb 24 12:23:50 gentupe cpupower[14248]: - Versuchen Sie eine ungültige Richtlinie festzulegen?
Feb 24 12:23:50 gentupe cpupower[14248]: - Versuchen Sie eine bestimmte Frequenz festzulegen, aber der userspace-Regler ist nicht verfügbar,
Feb 24 12:23:50 gentupe cpupower[14248]: z.B. wegen Hardware, die nicht auf eine bestimmte Frequenz eingestellt werden kann
Feb 24 12:23:50 gentupe cpupower[14248]: oder weil der userspace-Regler nicht geladen ist?
Feb 24 12:23:50 gentupe systemd[1]: cpupower-frequency-set.service: Main process exited, code=exited, status=237/KEYRING
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://gentoo.org/support/
░░
░░ An ExecStart= process belonging to unit cpupower-frequency-set.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 237.
Feb 24 12:23:50 gentupe systemd[1]: cpupower-frequency-set.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://gentoo.org/support/
░░
░░ The unit cpupower-frequency-set.service has entered the 'failed' state with result 'exit-code'.
Feb 24 12:23:50 gentupe systemd[1]: Failed to start CPU Frequency Scaling.
░░ Subject: A start job for unit cpupower-frequency-set.service has failed
░░ Defined-By: systemd
░░ Support: https://gentoo.org/support/
░░
░░ A start job for unit cpupower-frequency-set.service has finished with a failure.
░░
░░ The job identifier is 4978 and the job result is failed. |
Code: | grep CPU_FREQ_GOV /usr/src/linux/.config
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_GOV_COMMON=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
# CONFIG_CPU_FREQ_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y |
Code: | grep SCHEDUTIL /usr/src/linux/.config
CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y |
Code: |
grep PSTATE /usr/src/linux/.config
# CONFIG_X86_INTEL_PSTATE is not set
CONFIG_X86_AMD_PSTATE=y
CONFIG_X86_AMD_PSTATE_DEFAULT_MODE=3
CONFIG_X86_AMD_PSTATE_UT=y |
Code: |
cat /etc/systemd/system/cpupower-frequency-set.service.d/00gentoo.conf
[Service]
Environment="OPTS=-g schedutil"
|
Code: | cpupower frequency-info
analyzing CPU 6:
driver: amd-pstate-epp
CPUs which run at the same hardware frequency: 6
CPUs which need to have their frequency coordinated by software: 6
maximum transition latency: Cannot determine or is not supported.
hardware limits: 550 MHz - 4.43 GHz
available cpufreq governors: performance powersave
current policy: frequency should be within 1.76 GHz and 4.43 GHz.
The governor "powersave" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 3.97 GHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: yes
Boost States: 0
Total States: 3
Pstate-P0: 3600MHz
Pstate-P1: 2800MHz
Pstate-P2: 2200MHz
|
Pls help! thy! _________________ Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something... |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 5472 Location: Bavaria
|
Posted: Mon Feb 24, 2025 12:55 pm Post subject: Re: After kernel update cpupower failes to start |
|
|
Linubie wrote: | Code: | # CONFIG_CPU_FREQ_GOV_USERSPACE is not set |
|
Yes, you will need this one. _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
 |
Linubie Guru


Joined: 11 Jun 2004 Posts: 395
|
Posted: Mon Feb 24, 2025 1:22 pm Post subject: |
|
|
Thank you for your answer but it's unfortunately still the same after changing to
Code: | # CONFIG_CPU_FREQ_GOV_POWERSAVE=y |
Code: | grep CPU_FREQ_GOV /usr/src/linux/.config
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_GOV_COMMON=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y |
Code: | Feb 24 14:12:44 gentupe systemd[1]: Starting CPU Frequency Scaling...
░░ Subject: A start job for unit cpupower-frequency-set.service has begun execution
░░ Defined-By: systemd
░░ Support: https://gentoo.org/support/
░░
░░ A start job for unit cpupower-frequency-set.service has begun execution.
░░
░░ The job identifier is 131.
Feb 24 14:12:44 gentupe cpupower[556]: CPU einstellen: 0
Feb 24 14:12:44 gentupe cpupower[556]: Fehler beim Festlegen neuer Werte. Häufige Fehler:
Feb 24 14:12:44 gentupe cpupower[556]: - Verfügen Sie über die erforderlichen Administrationsrechte? (Superuser?)
Feb 24 14:12:44 gentupe cpupower[556]: - Ist der von Ihnen gewünschte Regler verfügbar und mittels modprobe geladen?
Feb 24 14:12:44 gentupe cpupower[556]: - Versuchen Sie eine ungültige Richtlinie festzulegen?
Feb 24 14:12:44 gentupe cpupower[556]: - Versuchen Sie eine bestimmte Frequenz festzulegen, aber der userspace-Regler ist nicht verfügbar,
Feb 24 14:12:44 gentupe cpupower[556]: z.B. wegen Hardware, die nicht auf eine bestimmte Frequenz eingestellt werden kann
Feb 24 14:12:44 gentupe cpupower[556]: oder weil der userspace-Regler nicht geladen ist?
Feb 24 14:12:44 gentupe systemd[1]: cpupower-frequency-set.service: Main process exited, code=exited, status=237/KEYRING
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://gentoo.org/support/
░░
░░ An ExecStart= process belonging to unit cpupower-frequency-set.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 237.
Feb 24 14:12:44 gentupe systemd[1]: cpupower-frequency-set.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://gentoo.org/support/
░░
░░ The unit cpupower-frequency-set.service has entered the 'failed' state with result 'exit-code'.
Feb 24 14:12:44 gentupe systemd[1]: Failed to start CPU Frequency Scaling.
░░ Subject: A start job for unit cpupower-frequency-set.service has failed
░░ Defined-By: systemd
░░ Support: https://gentoo.org/support/
░░
░░ A start job for unit cpupower-frequency-set.service has finished with a failure.
░░
░░ The job identifier is 131 and the job result is failed.
|
Code: | cpupower frequency-info
CPU 4 wird analysiert:
driver: amd-pstate-epp
CPUs, die mit der gleichen Hardwarefrequenz laufen: 4
CPUs, die ihre Frequenz mit Software koordinieren müssen: 4
Maximale Dauer eines Taktfrequenzwechsels: Cannot determine or is not supported.
Hardwarebegrenzungen: 550 MHz - 4.43 GHz
verfügbare cpufreq-Regler: performance powersave
momentane Richtlinie: Frequenz sollte innerhalb 1.76 GHz und 4.43 GHz.
sein. Der Regler "powersave" kann frei entscheiden,
welche Geschwindigkeit er in diesem Bereich verwendet.
current CPU frequency: Unable to call hardware
current CPU frequency: 3.63 GHz (asserted by call to kernel)
boost state support:
Unterstützt: ja
Aktiv: ja
Boost-Zustände: 0
Gesamtzustände: 3
Pstate-P0: 3600MHz
Pstate-P1: 2800MHz
Pstate-P2: 2200MHz
|
Edit:
There seem to be 2 settings file:
Code: | cat /etc/systemd/system/cpupower-frequency-set.service.d/00gentoo.conf
[Service]
Environment="OPTS=-g schedutil" |
Code: | cat /etc/conf.d/cpupower
# /etc/conf.d/cpupower: config file for /etc/init.d/cpupower
# Options when starting cpufreq (given to the `cpupower` program)
# Possible options are:
# -g --governor <GOV> (ie: ondemand, performance, or powersave)
# -d --min <FREQ> (ie: 1000MHz)
# -u --max <FREQ> (ie: 2000MHz)
# -f --freq <FREQ> (requires userspace governor, this *can not* be combined with
# with any other parameters).
# Frequencies can be passed in Hz, kHz (default), MHz, GHz, or THz by postfixing the
# value with the wanted unit name, without any space.
# (frequency in kHz =^ Hz * 0.001 =^ MHz * 1000 =^ GHz * 1000000).
START_OPTS="--governor schedutil"
# Options when stopping cpufreq (given to the `cpupower` program)
# This option can be used to change governer on stop. Leaving it empty will ensure
# the governer remains on the one provided above.
STOP_OPTS=""
# Extra settings to write to sysfs cpufreq values.
#
# up_threshold: threshold for stepping up frequency, where the value represents
# the percentage of cpu load.
#
# down_threshold: threshold for stepping down frequency, where the value
# represents the percentage of cpu load.
#
# sampling_down_factor: determines how frequently the governor polls the cpu, a
# value greater than 1 improves performance by reducing the polling when the
# load is high. This tunable has no effect on behavior at lower CPU frequencies.
#
# ignore_nice_load: when set to '1' the processes that are run with a 'nice'
# value will not count in the usage calculation.
#SYSFS_EXTRA="ondemand/ignore_nice_load=1 ondemand/up_threshold=75 ondemand/sampling_down_factor=10" |
I am a bit confused which one to edit. In case I edited both. _________________ Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something... |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 5472 Location: Bavaria
|
|
Back to top |
|
 |
Linubie Guru


Joined: 11 Jun 2004 Posts: 395
|
Posted: Mon Feb 24, 2025 2:40 pm Post subject: |
|
|
Yes rebuidling and rebooting is a necessary task which I am aware of.
I am using make menuconfig to edit my kernel.
Saved my .config file
To be on the save side I did a Code: | make clean && make mrproper | .
Copied the file back
Did
and compiled the kernel again.
Rebooted
But the issue is still the same.
Code: | systemctl status cpupower-frequency-set.service
× cpupower-frequency-set.service - CPU Frequency Scaling
Loaded: loaded (/usr/lib/systemd/system/cpupower-frequency-set.service; enabled; preset: disabled)
Drop-In: /etc/systemd/system/cpupower-frequency-set.service.d
└─00gentoo.conf
Active: failed (Result: exit-code) since Mon 2025-02-24 15:33:30 CET; 2min 50s ago
Invocation: e59ec711435f49bcb13436cf6dd20d0e
Process: 560 ExecStart=/usr/bin/cpupower frequency-set $OPTS (code=exited, status=237/KEYRING)
Main PID: 560 (code=exited, status=237/KEYRING)
CPU: 3ms
Feb 24 15:33:30 gentupe cpupower[560]: Fehler beim Festlegen neuer Werte. Häufige Fehler:
Feb 24 15:33:30 gentupe cpupower[560]: - Verfügen Sie über die erforderlichen Administrationsrechte? (Superuser?)
Feb 24 15:33:30 gentupe cpupower[560]: - Ist der von Ihnen gewünschte Regler verfügbar und mittels modprobe geladen?
Feb 24 15:33:30 gentupe cpupower[560]: - Versuchen Sie eine ungültige Richtlinie festzulegen?
Feb 24 15:33:30 gentupe cpupower[560]: - Versuchen Sie eine bestimmte Frequenz festzulegen, aber der userspace-Regler ist nicht verfügbar,
Feb 24 15:33:30 gentupe cpupower[560]: z.B. wegen Hardware, die nicht auf eine bestimmte Frequenz eingestellt werden kann
Feb 24 15:33:30 gentupe cpupower[560]: oder weil der userspace-Regler nicht geladen ist?
Feb 24 15:33:30 gentupe systemd[1]: cpupower-frequency-set.service: Main process exited, code=exited, status=237/KEYRING
Feb 24 15:33:30 gentupe systemd[1]: cpupower-frequency-set.service: Failed with result 'exit-code'.
Feb 24 15:33:30 gentupe systemd[1]: Failed to start CPU Frequency Scaling. |
_________________ Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something... |
|
Back to top |
|
 |
Linubie Guru


Joined: 11 Jun 2004 Posts: 395
|
Posted: Mon Mar 03, 2025 6:54 pm Post subject: |
|
|
Sorry for bumping but I can't make it run
I changed some options to modules but with no success
Code: | -*- CPU Frequency scaling
[*] CPU frequency transition statistics
Default CPUFreq governor (schedutil) --->
-*- 'performance' governor
<*> 'powersave' governor
<*> 'userspace' governor for userspace frequency scaling
<*> 'ondemand' cpufreq policy governor
<*> 'conservative' cpufreq governor
-*- 'schedutil' cpufreq policy governor
*** CPU frequency scaling drivers ***
[ ] Intel P state control
< > Processor Clocking Control interface driver
-*- AMD Processor P-State driver
(3) AMD Processor P-State default mode
<M> selftest for AMD Processor P-State driver
<M> ACPI Processor P-States driver
[*] Legacy cpb sysfs knob support for AMD CPUs
< > AMD Opteron/Athlon64 PowerNow!
<M> AMD frequency sensitivity feedback powersave bias
< > Intel Enhanced SpeedStep (deprecated)
< > Intel Pentium 4 clock modulation
*** shared options ***│ |
Code: | systemctl status cpupower-frequency-set.service
× cpupower-frequency-set.service - CPU Frequency Scaling
Loaded: loaded (/usr/lib/systemd/system/cpupower-frequency-set.service; enabled; preset: disabled)
Drop-In: /etc/systemd/system/cpupower-frequency-set.service.d
└─00gentoo.conf
Active: failed (Result: exit-code) since Mon 2025-03-03 11:20:41 CET; 8h ago
Invocation: a85a575e558f4419a9e495121674b492
Main PID: 480 (code=exited, status=237/KEYRING)
CPU: 3ms
Mär 03 11:20:41 gentupe cpupower[480]: Fehler beim Festlegen neuer Werte. Häufige Fehler:
Mär 03 11:20:41 gentupe cpupower[480]: - Verfügen Sie über die erforderlichen Administrationsrechte? (Superuser?)
Mär 03 11:20:41 gentupe cpupower[480]: - Ist der von Ihnen gewünschte Regler verfügbar und mittels modprobe geladen?
Mär 03 11:20:41 gentupe cpupower[480]: - Versuchen Sie eine ungültige Richtlinie festzulegen?
Mär 03 11:20:41 gentupe cpupower[480]: - Versuchen Sie eine bestimmte Frequenz festzulegen, aber der userspace-Regler ist nicht verfügbar,
Mär 03 11:20:41 gentupe cpupower[480]: z.B. wegen Hardware, die nicht auf eine bestimmte Frequenz eingestellt werden kann
Mär 03 11:20:41 gentupe cpupower[480]: oder weil der userspace-Regler nicht geladen ist?
Mär 03 11:20:41 gentupe systemd[1]: cpupower-frequency-set.service: Main process exited, code=exited, status=237/KEYRING
Mär 03 11:20:41 gentupe systemd[1]: cpupower-frequency-set.service: Failed with result 'exit-code'.
Mär 03 11:20:41 gentupe systemd[1]: Failed to start CPU Frequency Scaling. |
Does anybody has a Ryzon with a working cpupower?
Thank you! _________________ Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something... |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 5472 Location: Bavaria
|
Posted: Mon Mar 03, 2025 7:39 pm Post subject: |
|
|
TBH I am very unsure if it is a kernel problem (futhermore) or a problem with systemd service(s) ... I hoped that a systemd expert jumps in ...  _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
 |
sam_ Developer


Joined: 14 Aug 2020 Posts: 2196
|
Posted: Mon Mar 03, 2025 7:49 pm Post subject: |
|
|
Could you give logs in English? |
|
Back to top |
|
 |
sMueggli Guru

Joined: 03 Sep 2022 Posts: 554
|
Posted: Tue Mar 04, 2025 5:39 pm Post subject: |
|
|
What is the value of CONFIG_KEYS in your kernel config? |
|
Back to top |
|
 |
Linubie Guru


Joined: 11 Jun 2004 Posts: 395
|
Posted: Wed Mar 05, 2025 7:20 am Post subject: |
|
|
Ok here we go:
Code: | journalctl -xeu cpupower-frequency-set.service
Mar 05 08:16:50 gentupe cpupower[119054]: - Do you have proper administration rights? (super-user?)
Mar 05 08:16:50 gentupe cpupower[119054]: - Is the governor you requested available and modprobed?
Mar 05 08:16:50 gentupe cpupower[119054]: - Trying to set an invalid policy?
Mar 05 08:16:50 gentupe cpupower[119054]: - Trying to set a specific frequency, but userspace governor is not available,
Mar 05 08:16:50 gentupe cpupower[119054]: for example because of hardware which cannot be set to a specific frequency
Mar 05 08:16:50 gentupe cpupower[119054]: or because the userspace governor isn't loaded?
Mar 05 08:16:50 gentupe systemd[1]: cpupower-frequency-set.service: Main process exited, code=exited, status=237/KEYRING
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://gentoo.org/support/
--
-- An ExecStart= process belonging to unit cpupower-frequency-set.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 237.
Mar 05 08:16:50 gentupe systemd[1]: cpupower-frequency-set.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://gentoo.org/support/
--
-- The unit cpupower-frequency-set.service has entered the 'failed' state with result 'exit-code'.
Mar 05 08:16:50 gentupe systemd[1]: Failed to start CPU Frequency Scaling.
-- Subject: A start job for unit cpupower-frequency-set.service has failed
-- Defined-By: systemd
-- Support: https://gentoo.org/support/
--
-- A start job for unit cpupower-frequency-set.service has finished with a failure.
--
-- The job identifier is 5202 and the job result is failed.
|
Code: |
grep CONFIG_KEYS /usr/src/linux/.config
CONFIG_KEYS=y
# CONFIG_KEYS_REQUEST_CACHE is not set |
_________________ Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something... |
|
Back to top |
|
 |
|