OPNsense Forum

English Forums => Hardware and Performance => Topic started by: nocloud on April 13, 2025, 05:14:55 PM

Title: Ryzen 9 7945HX (795S7) - CPU frequency stuck
Post by: nocloud on April 13, 2025, 05:14:55 PM
Hi everyone,

I'm running OPNsense 25.1.5_4-amd64 on a Minisforum 795S7 with an AMD Ryzen 9 7945HX (16C/32T, Zen 4 mobile). Everything works well overall, but i have noticed that the CPU is stuck at 2.5GHz, even under high load.

From sysctl :
dev.cpu.0.freq_levels: 2500/3125 1500/1275
dev.cpu.0.freq: 2500
dev.cpufreq.0.freq_driver: hwpstate0


Even with PowerD enabled (in hiadaptive or maximum mode), it doesn't go above 2500 MHz. When running with `powerd -v`, i can see that the system is requesting higher frequencies like 5.0GHz, but it stays capped at 2.5GHz:

load 231%, current freq 2500 MHz, wanted freq 5000 MHz

I believe this is due to the `hwpstate` driver not exposing turbo/boost states for this CPU family. Under Linux (Ubuntu Live), the CPU boosts properly up to 5.4GHz, so this doesn't seem to be a hardware limitation.

Is there any known work in progress to support Ryzen 7000 mobile (HX) CPUs more fully in FreeBSD or OPNsense?

Happy to provide logs or test if needed.

Thanks in advance,