engnfrc
Posts: 24
Joined: Mon Nov 04, 2019 4:12 pm

RPi 4 B Not Switching to 600 MHz GPU

Tue Nov 05, 2019 6:25 pm

Hello,

I'd like to bump the GPU up to 600 from 500 MHz on my RPi 4 B. I've edited /boot/config.txt to include:
gpu_freq=600
but when I run vcgencmd I get the following results and gstreamer is no longer able to record video to a file:
[email protected]:~ $ vcgencmd measure_clock core
frequency(1)=499987808
[email protected]:~ $ vcgencmd measure_clock h264
frequency(28)=500000992
[email protected]:~ $ vcgencmd measure_clock isp
frequency(45)=500000992
[email protected]:~ $ vcgencmd measure_clock v3d
frequency(46)=599998528
I am running the latest Raspbian Buster image, though I'm having issues upgrading the firmware, which is being dealt with in another post. I am running a custom kernel at this point. I've added drivers & overlays, switched to low-latency preemption, set default CPU governor to ondemand, and upped the kernel from 100 Hz to 1000 Hz.
Linux hel-udas 4.19.73-v7l+ #33 SMP PREEMPT Tue Nov 5 11:40:26 EST 2019 armv7l GNU/Linux

engnfrc
Posts: 24
Joined: Mon Nov 04, 2019 4:12 pm

Re: RPi 4 B Not Switching to 600 MHz GPU

Tue Nov 05, 2019 8:55 pm

Now that I've gotten the upgrade issue solved, I have this firmware version:
[email protected]:~ $ vcgencmd version
Sep 24 2019 17:36:31
Copyright (c) 2012 Broadcom
version cd3add54955f8fa065b414d8fc07c525e7ddffc8 (clean) (release) (start_x)
and I now see the following values after a reboot:
[email protected]:~ $ vcgencmd measure_clock core
frequency(1)=599998528
[email protected]:~ $ vcgencmd measure_clock h264
frequency(28)=0
[email protected]:~ $ vcgencmd measure_clock isp
frequency(45)=0
[email protected]:~ $ vcgencmd measure_clock v3d
frequency(46)=31258300
I'll try setting them each individually in /boot/config.txt.

engnfrc
Posts: 24
Joined: Mon Nov 04, 2019 4:12 pm

Re: RPi 4 B Not Switching to 600 MHz GPU

Tue Nov 05, 2019 9:06 pm

Same results when I set them individually:
core_freq=600
h264_freq=600
isp_freq=600
v3d_freq=600
and the results of measure_clock:
[email protected]:~ $ vcgencmd measure_clock core
frequency(1)=599998528
[email protected]:~ $ vcgencmd measure_clock h264
frequency(28)=0
[email protected]:~ $ vcgencmd measure_clock isp
frequency(45)=0
[email protected]:~ $ vcgencmd measure_clock v3d
frequency(46)=31258300

mkirk
Posts: 47
Joined: Tue Mar 06, 2018 4:21 pm

Re: RPi 4 B Not Switching to 600 MHz GPU

Tue Nov 05, 2019 9:33 pm

I am seeing similar issues with Buster on Pi 4 and 3B+. vcgencmd measure_clock arm gives 600 MHz clock even when running stress -c 4 on all 4 cores. Trying the Pi 3B+ with Stretch gives expected result - 1400 MHz clock is reported.

engnfrc
Posts: 24
Joined: Mon Nov 04, 2019 4:12 pm

Re: RPi 4 B Not Switching to 600 MHz GPU

Tue Nov 05, 2019 9:39 pm

@mkirk I found last week that the ARM has the powersave mode set on the governors by default, these commands put it into ondemand for me, after which the processor jumped up to 1.5 GHz. You'll have to rebuild the kernel to change the default governor.
cd /sys/devices/system/cpu
sudo sh -c "echo ondemand> cpu0/cpufreq/scaling_governor"
sudo sh -c "echo ondemand> cpu1/cpufreq/scaling_governor"
sudo sh -c "echo ondemand> cpu2/cpufreq/scaling_governor"
sudo sh -c "echo ondemand> cpu3/cpufreq/scaling_governor"

engnfrc
Posts: 24
Joined: Mon Nov 04, 2019 4:12 pm

Re: RPi 4 B Not Switching to 600 MHz GPU

Fri Nov 08, 2019 6:10 pm

Has anyone else experience these issues? Or know of a fix?

engnfrc
Posts: 24
Joined: Mon Nov 04, 2019 4:12 pm

Re: RPi 4 B Not Switching to 600 MHz GPU

Sat Nov 16, 2019 2:03 am

Is there anyone that can help me with this?

gordieee
Posts: 5
Joined: Wed Nov 20, 2019 8:44 am

Re: RPi 4 B Not Switching to 600 MHz GPU

Wed Nov 20, 2019 11:57 am

I am also unable to over clock the GPU, I recently got 2x 4Gb Rpi 4 boards, both cpu's can overclock to 2.147 GHz and are stable, but the moment I try to increase the GPU clock setting past the default, the device starts crashing. Even a slight overclock of 520MHz doesn't work.

Based on this article:
https://www.tomshardware.com/news/raspb ... 40559.html

They were able to get
over_voltage=6
arm_freq=2147
gpu_freq=750

I am unable to overclock the gpu at all.
If anyone has any idea, please post your solution here :D

gordieee
Posts: 5
Joined: Wed Nov 20, 2019 8:44 am

Re: RPi 4 B Not Switching to 600 MHz GPU

Thu Nov 21, 2019 12:07 am

gordieee wrote:
Wed Nov 20, 2019 11:57 am
I am also unable to over clock the GPU, I recently got 2x 4Gb Rpi 4 boards, both cpu's can overclock to 2.147 GHz and are stable, but the moment I try to increase the GPU clock setting past the default, the device starts crashing. Even a slight overclock of 520MHz doesn't work.

Based on this article:
https://www.tomshardware.com/news/raspb ... 40559.html

They were able to get
over_voltage=6
arm_freq=2147
gpu_freq=750

I am unable to overclock the gpu at all.
If anyone has any idea, please post your solution here :D
Just a little update, I recently found that if I commend out the line (in config.txt):

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
#dtoverlay=vc4-fkms-v3d

I can overclock the GPU to 600 MHz,
The only problem is that videos (youtube etc) can no longer play, and the pi just crashes as soon as you try and play them.
Any ideas?

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24979
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPi 4 B Not Switching to 600 MHz GPU

Thu Nov 21, 2019 8:32 am

The obvious solution is don't overclock the GPU!!

You've tried it, it doesn't work. Exactly as the official documentation says.

The fact others claim to be able to do it does not make it true.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7906
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: RPi 4 B Not Switching to 600 MHz GPU

Thu Nov 21, 2019 9:16 am

gordieee wrote:
Thu Nov 21, 2019 12:07 am
Just a little update, I recently found that if I commend out the line (in config.txt):

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
#dtoverlay=vc4-fkms-v3d

I can overclock the GPU to 600 MHz,
But have disabled all 3D acceleration in the process. I'm not sure that counts as a gain.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

gordieee
Posts: 5
Joined: Wed Nov 20, 2019 8:44 am

Re: RPi 4 B Not Switching to 600 MHz GPU

Thu Nov 21, 2019 10:10 am

jamesh wrote:
Thu Nov 21, 2019 8:32 am
The obvious solution is don't overclock the GPU!!

You've tried it, it doesn't work. Exactly as the official documentation says.

The fact others claim to be able to do it does not make it true.
My deepest apologies, I was under the impression that you could overclock the GPU and I am new here. The articles floating about are very convincing.

If it isn't too much to ask, could you post a link to where the documentation says this? so that I can have a read.
6by9 wrote:
Thu Nov 21, 2019 9:16 am
gordieee wrote:
Thu Nov 21, 2019 12:07 am
Just a little update, I recently found that if I commend out the line (in config.txt):

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
#dtoverlay=vc4-fkms-v3d

I can overclock the GPU to 600 MHz,
But have disabled all 3D acceleration in the process. I'm not sure that counts as a gain.
Haha, oh is that what it does? I was just playing around with it like a silly monkey, since I read somewhere on the forums that it deals with something related to the GPU. Just out of curiosity, does affect all 3D acceleration (3D graphics/all types of video playback), or only that found in video playback?

Go easy on me, I am new to the forum :D

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24979
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPi 4 B Not Switching to 600 MHz GPU

Thu Nov 21, 2019 10:22 am

gordieee wrote:
Thu Nov 21, 2019 10:10 am
jamesh wrote:
Thu Nov 21, 2019 8:32 am
The obvious solution is don't overclock the GPU!!

You've tried it, it doesn't work. Exactly as the official documentation says.

The fact others claim to be able to do it does not make it true.
My deepest apologies, I was under the impression that you could overclock the GPU and I am new here. The articles floating about are very convincing.

If it isn't too much to ask, could you post a link to where the documentation says this? so that I can have a read.
6by9 wrote:
Thu Nov 21, 2019 9:16 am
gordieee wrote:
Thu Nov 21, 2019 12:07 am
Just a little update, I recently found that if I commend out the line (in config.txt):

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
#dtoverlay=vc4-fkms-v3d

I can overclock the GPU to 600 MHz,
But have disabled all 3D acceleration in the process. I'm not sure that counts as a gain.
Haha, oh is that what it does? I was just playing around with it like a silly monkey, since I read somewhere on the forums that it deals with something related to the GPU. Just out of curiosity, does affect all 3D acceleration (3D graphics/all types of video playback), or only that found in video playback?

Go easy on me, I am new to the forum :D
https://www.raspberrypi.org/documentati ... locking.md

The FKMS driver is a userland 3D acceleration driver, so if you disable it you get older legacy mode graphics with no 3D acceleration. Since the desktop uses this driver, turning it off means software rendering for everything, so the desktop will be much slower. Other GPU functions like compositing, camera and codecs would still work, although there is little point in overclocking those.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

gordieee
Posts: 5
Joined: Wed Nov 20, 2019 8:44 am

Re: RPi 4 B Not Switching to 600 MHz GPU

Thu Nov 21, 2019 11:03 am

Thanks for explaining that jamesh,
I have read that page you linked before posting actually and it is part of my confusion. I thought there was other documentation, hence me asking.
Regardless the documentation you linked says:

gpu_freq
"default to 500, 600 is the only other accepted value"

Am I correct in saying that 600 MHz is accepted but not fully compatible with the The FKMS driver?
Sorry for all the hassle this is causing, I am a bit of an overclocking nutter, and trying to squeeze every bit of performance out. :lol:

User avatar
rpdom
Posts: 16110
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: RPi 4 B Not Switching to 600 MHz GPU

Thu Nov 21, 2019 11:43 am

gordieee wrote:
Thu Nov 21, 2019 11:03 am
Sorry for all the hassle this is causing, I am a bit of an overclocking nutter, and trying to squeeze every bit of performance out.
The thing is that the Pi machines are already pushed close to the maximum stable speed they can handle safely.

Some individual chips can go higher, which is why the faster option is there. There is no guarantee that it will work at all. Additional cooling will almost certainly be required.

gordieee
Posts: 5
Joined: Wed Nov 20, 2019 8:44 am

Re: RPi 4 B Not Switching to 600 MHz GPU

Thu Nov 21, 2019 11:57 am

rpdom wrote:
Thu Nov 21, 2019 11:43 am
gordieee wrote:
Thu Nov 21, 2019 11:03 am
Sorry for all the hassle this is causing, I am a bit of an overclocking nutter, and trying to squeeze every bit of performance out.
The thing is that the Pi machines are already pushed close to the maximum stable speed they can handle safely.

Some individual chips can go higher, which is why the faster option is there. There is no guarantee that it will work at all. Additional cooling will almost certainly be required.
My chips are pretty decent, I have managed to get both boards CPU's overclocked to 2.147 GHz and stable. I use this type of cooler:

Image

At idle with that overclock I get 30 DegC at idle and at 100% CPU stress (for about 10 min), it never goes above 55 DegC on both boards.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24979
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPi 4 B Not Switching to 600 MHz GPU

Thu Nov 21, 2019 12:27 pm

gordieee wrote:
Thu Nov 21, 2019 11:57 am
rpdom wrote:
Thu Nov 21, 2019 11:43 am
gordieee wrote:
Thu Nov 21, 2019 11:03 am
Sorry for all the hassle this is causing, I am a bit of an overclocking nutter, and trying to squeeze every bit of performance out.
The thing is that the Pi machines are already pushed close to the maximum stable speed they can handle safely.

Some individual chips can go higher, which is why the faster option is there. There is no guarantee that it will work at all. Additional cooling will almost certainly be required.
My chips are pretty decent, I have managed to get both boards CPU's overclocked to 2.147 GHz and stable. I use this type of cooler:

Image

At idle with that overclock I get 30 DegC at idle and at 100% CPU stress (for about 10 min), it never goes above 55 DegC on both boards.
Even with cooling there is no guarantee of being able to overclock the GPU. In your case, it simply doesn't work. Since the performance gain is minimal it's no great loss. Much greater gains from overclocking the ARM's
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

engnfrc
Posts: 24
Joined: Mon Nov 04, 2019 4:12 pm

Re: RPi 4 B Not Switching to 600 MHz GPU

Thu Nov 21, 2019 12:49 pm

Agreed that it’s confusing for the docs to say 600 MHz GPU is supported, but it really isn’t? Please update the docs to relay to users what you all think is acceptable. I don’t consider supported modes to be overclocking.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24979
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPi 4 B Not Switching to 600 MHz GPU

Thu Nov 21, 2019 12:59 pm

engnfrc wrote:
Thu Nov 21, 2019 12:49 pm
Agreed that it’s confusing for the docs to say 600 MHz GPU is supported, but it really isn’t? Please update the docs to relay to users what you all think is acceptable. I don’t consider supported modes to be overclocking.
I thought that would be implicit in that the page is about overclocking, and it's set by default to 500....
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

engnfrc
Posts: 24
Joined: Mon Nov 04, 2019 4:12 pm

Re: RPi 4 B Not Switching to 600 MHz GPU

Thu Nov 21, 2019 1:13 pm

The processor is also set to 600 MHz by default in a power save mode, getting to the 1.5 GHz marketed for the RPi4 is not straight forward, is that considered overclocking?

User avatar
rpdom
Posts: 16110
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: RPi 4 B Not Switching to 600 MHz GPU

Thu Nov 21, 2019 1:17 pm

engnfrc wrote:
Thu Nov 21, 2019 1:13 pm
The processor is also set to 600 MHz by default in a power save mode, getting to the 1.5 GHz marketed for the RPi4 is not straight forward, is that considered overclocking?
No, that's considered power management. If the CPUs aren't doing anything much there is no point in them idling at top speed. So they throttle back. They only go to full speed when it is needed.

Do you drive your car with your foot on the floor even when in traffic?

engnfrc
Posts: 24
Joined: Mon Nov 04, 2019 4:12 pm

Re: RPi 4 B Not Switching to 600 MHz GPU

Thu Nov 21, 2019 1:27 pm

So it’s also logical to think that a GPU running at 500 MHz with a setting to go to 600 MHz isn’t overclocking, rather it’s just throttled back from what it’s designed for to conserve energy and heat. Until I start poking at voltage levels and other stuff a normal user shouldn’t be messing with I don’t consider it overclocking.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24979
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPi 4 B Not Switching to 600 MHz GPU

Thu Nov 21, 2019 1:31 pm

engnfrc wrote:
Thu Nov 21, 2019 1:27 pm
So it’s also logical to think that a GPU running at 500 MHz with a setting to go to 600 MHz isn’t overclocking, rather it’s just throttled back from what it’s designed for to conserve energy and heat. Until I start poking at voltage levels and other stuff a normal user shouldn’t be messing with I don’t consider it overclocking.
Nope, you are simply getting your definition of overclocking wrong. The Pi is set, by default to the standard settings (ARM, min 600, max 1500, GPU max 500), anything over those numbers is overclocking. Fact. It's even implied by the word "Overclocking" - that's clocking the chip over its standard frequency settings. Nothing to do with voltage levels, changes to those are required to support higher frequencies.

We make 600 available to those who wish to try it, that's support for overclocking, not support for standard. We also support setting a ARM frequency of 2000 but we would never set it to that as standard.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

Return to “General discussion”