-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspberry Pi 5 | "initial_turbo" keeps max CPU frequency forever #1864
Comments
I have verified this also on another Pi 5 with Raspberry Pi OS 64-bit; the power consumption in idle is stuck at 3.4 W. Not sure if it's related but the idle power consumption of the Pi 5, after the latest updates. jumped from 2.20 W to 2.70 W |
initial_turbo support has not been implemented yet for Pi5 so current behaviour would be equivalent to arm_freq_min=2400 |
Thanks for the feedback, good to know. BTW do you know or heard anything about the increase in idle power consumption? |
I don't see any reason for an increase in idle power consumption and it's nothing that I've seen |
Thanks. Have one 4GB and one 8GB and they both are consuming more. |
Idle power is something that is worked on but there are many things that can influence it so you have to be careful that nothing else has changed in the software / system configuration. I think this is off topic now though |
Indeed it's off-topic, thanks for the feedback |
As long as However, it is probably not much harder to fully implement the feature instead of actively ignoring the setting on RPi 5. Thanks for the info and it would be great to have a ping here once it works. I like the feature, especially on older RPi models, being significantly slower with |
Yes - I'll look into this - supporting it is probably quite straightforward. It does open a wider question of whether we get any benefit from the current scheme of booting at the lower frequency and only switching later in boot if the shift key is not pressed (allowing a bypass of an unreliable overclock). I suspect few take advantage of that scheme (or have even heard of it), and just booting at the higher clock would benefit more users. But that is a separate questions from "make initial_turbo so something sensible". |
Sounds good. I would indeed vote for not booting with minimal frequency by default. I guess a scaling governor is not possible, but even just max frequency should be fine:
But from a vendor POV, I understand a conservative approach as well. Another approach for distributions is of course to change the kernel's default governor: https://github.com/raspberrypi/linux/blob/stable_20240124/arch/arm64/configs/bcm2712_defconfig#L58 |
* Adjust the SDRAM refresh interval based on the temperature. This addresses the gap in performance between the 8GB and 4GB variants. See raspberrypi/firmware#1864 * Preliminary support for signed boot.
This should be fixed with latest testing bootload (installable from rpi-update). |
Just tested it, and the CPU now clocks down as expected, many thanks 👍. It does so as well before the timeout, so the setting is currently ignored, or this since CPUFreq takes over (stopping turbo mode according to docs)? EDIT: Tested without CPUFreq, and it works perfectly, 2.4 GHz for 1 minute, 1.5 GHz after 1 minute, when using |
Is this the right place for my bug report?
This repository contains the GPU firmware used on the Raspberry Pi. This software is the closed source part of the Raspberry Pi system, it includes booting (including network booting and USB booting), low-level power and clock control, FKMS and legacy HDMI control (not full KMS that is in the linux kernel), hardware legacy codecs (MPEG2, H264 and VC1), encode hardware including the ISP (image sensor pipeline) and camera control, audio output (analogue and HDMI audio).
If you believe that the issue you are seeing is within this area, this is the right place. If not, we have other repositories for the linux kernel at github.com/raspberrypi/linux and Raspberry Pi userland applications at github.com/raspberrypi/userland. If you have problems with the Raspbian distribution packages, report them in the github.com/RPi-Distro/repo. If you simply have a question, then the Raspberry Pi forums are the best place to ask it.
Describe the bug
When applying
initial_turbo
with any non-zero value toconfig.txt
, the CPU frequency is not only maxed for the defined amount of seconds, but forever. This is only true on Raspberry Pi 5, while on other models, CPUFreq takes over as expected.To reproduce
Expected behaviour
After 20 seconds uptime, the CPU frequency is intended to be scaled by CPUFreq.
Actual behaviour
CPU frequency remains at 2400 MHz.
System
Copy and paste the results of the raspinfo command in to this section. Alternatively, copy and paste a pastebin link, or add answers to the following questions:
cat /etc/rpi-issue
)? Debian/Raspbian Bookwormvcgencmd version
)?uname -a
)?Logs
If applicable, add the relevant output from
dmesg
or similar.Additional context
A pretty similar issue appeared some years ago before RPi 4 release: #1005
One difference: That time
/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq
showed the max frequency as well, but now it reports 1500 MHz while onlyvcgencmd measure_clock arm
reveals the 2400 MHz. This is probably a minor (kernel) bug on its own, regarding the sysfs node.The text was updated successfully, but these errors were encountered: