Closed coolbho3k closed 1 year ago
though, i'm not sure if it's good.. Neither MT32 nor GM won't work reliably even with this overclock. MT32pi should be used for good MIDI.
also, HPS has no power management. It means CPU uses only one frequency WHOLE time. So if you set 1.2GHz, then it will be always 1.2GHz regardless if CPU is busy or idle. Actually there is no such thing as "idle" in this CPU.
The underclock to 400MHz option being tied to the menu video_off
feature in MiSTer.ini would be nice to save power, if possible.
there is no point for that. Power consumption difference is meaningless. Slower CPU speed may affect some processes as well. It won't be official feature. You can use it in scripts but there is no plans to change the freq from Main.
This PR adds a cpufreq driver for the Cyclone V SOC FPGA as configured in the DE10 Nano/MiSTer, including the optional ability to overclock or underclock the HPS MPU, or optionally even enable CPU frequency scaling on the MPU clock.
The driver has been tested by some folks on the MiSTer forums for quite some time, and I feel confident enough to create a PR for it.
Why would we need this?
Features
Technical notes
Testing
cat "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq"
echo "1000000" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
echo "1200000" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
echo "400000" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
echo "800000" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
I've put the driver through many hours of transition testing - randomly transitioning between frequencies - with good luck.
Power Consumption
With a few USB devices and a fan plugged in, on the main MiSTer menu, I measured the total system power consumption: