-
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
hdmi_enable_4kp60 breaks when an overclock is applied to the HEVC freq. #1782
Comments
I'll look into the specifics during the week, but the real issue is the five gpu clocks (core, h264, hevc, isp, v3d) are not independent. They share a PLL, which means only one gets the exact frequency, the other's just get the closest they can from integer dividers of this PLL. The fix is to only use gpu_freq=600 (or whatever frequency you want) which will boost them all, and so won't suffer from limitations of a shared PLL. |
Thanks for getting back so quick exp over the weekend @popcornmix , It seems that
But the freqs all seem to have stayed at 550Mhz still:
The TV does connect successfully but no overclock Interestingly when I run raspinfo you can see that it thinks / decodes that the cores should be all set at 550.
|
Well I've done some more experimenting throughout the day. The gpu_freq command seems to get ignored with the It does look correct that the pll is to blame, primarily directly between that and the clock frequency seems to be exactly half if I don't set it to be the same clock frequencies. This seems to then get close enough, I'll leave this issue open but it's up to you if you want to close it. Maybe the better way to re-word it is that
|
Is this the right place for my bug report?
Relates to HEVC Frequency adjustments so I would say that this is the GPU firmware.
Describe the bug
The
hdmi_enable_4kp60
setting when enabled in the configuration file, seems to break / conflict manually specifying a frequency for the HEVC block (usinghevc_freq
).As per https://github.com/raspberrypi/documentation/blob/develop/documentation/asciidoc/computers/config_txt/overclocking.adoc#specific-to-raspberry-pi-4-raspberry-pi-400-and-cm4 when the
hdmi_enable_4kp60
function is enabled the core clock is automatically overclocked to 550Mhz for this to work.When I then adjust the
hevc_freq
frequency to anything other than 550 it seems to then cause an issue where it will not be able to initialise the connection to the TV properly.If I set the
hevc_freq
manually to 550 then it works perfectly fine, withforce_turbo
enabled we can see that the frequencies of the core, v3d and havoc are all at 550. This is the same as if there’s no frequency manually specified for this.But then even the smallest of overclocks to the hevc core (555Mhz) seems to break it.
The interesting thing is that the v3d and core frequency then seem to halved. But even setting these manually to 550 they still seem to run at the reduced frequency.
To reproduce
Expected behaviour
I would expect the other cores to stay at the same frequency, and just the HEVC core to increase (which happens with
hdmi_enable_4kp60
disabled).Actual behaviour
The other cores seem to fail to keep their frequency, and it fails to initialise a 4kp60 display.
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
) Raspberry Pi reference 2022-09-22 Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 8a42abcd1dbd8c9c1fdfca4e0c3778255b2f9cc4, stage4vcgencmd version
) Jan 5 2023 10:46:54 Copyright (c) 2012 Broadcom version 8ba17717fbcedd4c3b6d4bce7e50c7af4155cba9 (clean) (release) (start)uname -a
)? Linux moonpi1 5.15.84-v7l+ Raspistill hangs causing RPi to freeze #1613 SMP Thu Jan 5 12:01:26 GMT 2023 armv7l GNU/LinuxI’ve attached the raspinfo below, along with this I have tried 2 different Pi 4s with different HDMI cables. The only thing I’m unable to rule out is my TV as I’ve only got the 1 4K :)
Logs
If applicable, add the relevant output from
dmesg
or similar.In the logfile attached.
raspiinfo.txt
Additional context
I believe that's all the information, the reason why I'm trying to do this is that the 4K streaming I'm trying to do is a bit stuttery and I've found that overclocking the HEVC block whilst connected to a 1080p TV resolves the stuttering. However it's then a shame that I can't seem to do it when actually on my 4K TV.
The text was updated successfully, but these errors were encountered: