View Issue Details

IDProjectCategoryView StatusLast Update
0008615Kali LinuxGeneral Bugpublic2024-02-11 20:14
Reporterpkreuzt Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Summary0008615: Missing CPU frequency governors on kernel 6.6.9 / Ryzen 7 platform
Description

On kernel 6.5.0 I have these governors available (as shown with "cpupower frequency-info"):

available cpufreq governors: conservative powersave userspace ondemand performance schedutil

But after upgrading to kernel version 6.6.9 I only have these:

available cpufreq governors: performance schedutil

Didn't find any reference to this issue on linux-image-6.6.9 changelog.

Activities

steev

steev

2024-02-03 08:37

manager   ~0018884

Last edited: 2024-02-03 08:37

That is because the other modules aren't loaded. The only ones listed are the ones that are built in.

You can see this if you grep CPU_FREQ /boot/config-6.6.9-amd64

CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_USERSPACE=m
CONFIG_CPU_FREQ_GOV_ONDEMAND=m
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
pkreuzt

pkreuzt

2024-02-03 12:04

reporter   ~0018885

Last edited: 2024-02-03 12:06

Correct, but the point is the same config exists on kernel 6.5.0 and governor modules get loaded automatically anyway:

└─# grep CPU_FREQ /boot/config-6.5.0-kali3-amd64
CONFIG_ACPI_CPU_FREQ_PSS=y
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_GOV_COMMON=y
CONFIG_CPU_FREQ_STAT=y
redacted
CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_USERSPACE=m
CONFIG_CPU_FREQ_GOV_ONDEMAND=m
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y

I'm currently using a cpufrequtils profile on boot to apply frequency scaling, it works on 6.5.0 but fails on 6.6.9 as the governors are not present. Don't know if its relevant, but I haven't enabled amd_pstate yet for any of those kernels.

pkreuzt

pkreuzt

2024-02-06 16:17

reporter   ~0018888

Investigating the issue a bit by myself, found this message on Debian's bugtrack:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=877016#49

So this is actually composed of two parts: cpufrequtils being deprecated, and kernel config changed on 6.6. I'd gladly move to cpupower, but there's still missing functionality on it. We still require modprobing governors (what I'm doing now, because of this issue) and cpupower doesn't provide systemd service and a documented example config as cpufrequtils does (and I actually sent a bug to them years ago on that one, understanding it's on their side: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894906 )

I don't know what Kali developers think about this. Cpupower probably is the easy part.

arnaudr

arnaudr

2024-02-07 07:51

manager   ~0018893

Seems like you can get the systemd service and everything you need from Arch: https://gitlab.archlinux.org/archlinux/packaging/packages/linux-tools

Other than that, I really have no opinion on what should be done here, if anything.

pkreuzt

pkreuzt

2024-02-07 20:10

reporter   ~0018895

Last edited: 2024-02-07 20:13

As for now, CPU freq scaling at boot is broken without those files since cpufrequtils is not in repos anymore and doesn't work on 6.6 either. Still think this is on Debian side (maybe someone else could go pester them). But if there's not a solution already for next kernel release, could Kali provide this as a workaround? Cpupower alone seems capable of autoloading cpufreq governors itself.

X0RW3LL

X0RW3LL

2024-02-11 20:14

reporter   ~0018907

Have you tried installing linux-cpupower?

Issue History

Date Modified Username Field Change
2024-01-29 21:08 pkreuzt New Issue
2024-02-03 08:37 steev Note Added: 0018884
2024-02-03 08:37 steev Note Edited: 0018884
2024-02-03 12:04 pkreuzt Note Added: 0018885
2024-02-03 12:05 pkreuzt Note Edited: 0018885
2024-02-03 12:06 pkreuzt Note Edited: 0018885
2024-02-06 16:17 pkreuzt Note Added: 0018888
2024-02-07 07:51 arnaudr Note Added: 0018893
2024-02-07 20:10 pkreuzt Note Added: 0018895
2024-02-07 20:11 pkreuzt Note Edited: 0018895
2024-02-07 20:13 pkreuzt Note Edited: 0018895
2024-02-11 20:14 X0RW3LL Note Added: 0018907