Frogging-Family / linux-tkg

linux-tkg custom kernels
GNU General Public License v2.0
1.25k stars 157 forks source link

Kernel cannot reach maximum turbo boost frequency of AMD Ryzen 7 CPU #962

Open Everest10 opened 4 days ago

Everest10 commented 4 days ago

After successfully completing the CPU settings in the BIOS for Turbo Boost on the Windows 11 operating system the CPU works normally reaching the maximum Turbo Boost clock of 4.6Ghz but Linux with the 6.9.7-tkg kernel or the standard 6.9.6 kernel cannot reach the maximum Turbo Boost clock. The maximum verified by terminal and with CPU-X was 4.4Ghz.

$ cpupower frequency-info Return: Turbo boost off.

Trying to fix with:

sh -c "echo '1' > /sys/devices/system/cpu/cpufreq/boost"

Return: Turbo boost on but when checking in the terminal or CPU-X the maximum clock remains 4.4ghz besides not remaining persistent after logout.

Same problem happen with default kernel 6.9.6 with fsync modules installed.

btw on Windows the CPU Multiplier show 46x, on Fedora Linux with tkg kernel show 44x and sometimes 42x.

Is there a workaround to fix it ?

image

Operating System: Fedora Linux 40 KDE Plasma Version: 6.1.1 KDE Frameworks Version: 6.3.0 Qt Version: 6.7.1 Kernel Version: 6.9.7_tkg_pds (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor Manufacturer: ASUS

King regards,

ptr1337 commented 4 days ago

How about if you set amd-pstate=active to your kernel cmdline?

Also, you could try to apply following patches, which improves the frequency calculation, when amd-pstate is used https://github.com/CachyOS/kernel-patches/blob/master/6.9/0002-amd-pstate.patch

Everest10 commented 3 days ago

How about if you set amd-pstate=active to your kernel cmdline?

Also, you could try to apply following patches, which improves the frequency calculation, when amd-pstate is used https://github.com/CachyOS/kernel-patches/blob/master/6.9/0002-amd-pstate.patch

OK, I did it but after generating grub again and reboot the computer nothing different happens.

Screenshot_20240629_194905

I can't to try add this patch because I'm not a programmer.

Best regards,

Everest10 commented 3 days ago

How about if you set amd-pstate=active to your kernel cmdline?

Also, you could try to apply following patches, which improves the frequency calculation, when amd-pstate is used https://github.com/CachyOS/kernel-patches/blob/master/6.9/0002-amd-pstate.patch

Around 42~44x cpu multiplier with scaling governor Performance. The expected is 46x 4600Mhz or 4.6ghz+ the turbo boost.

Now with amd-pstate in the grub kernel cmdline and patched using https://github.com/CachyOS/kernel-patches/blob/master/6.9/0002-amd-pstate.patch

Screenshot_20240630_030431

Windows 11 Pro 24H2 ...

Captura de tela 2024-06-30 031547