Gabigol
Posts: 2
Joined: Sat Nov 23, 2019 11:07 am

Re: DVFS Firmware

Sat Nov 23, 2019 11:09 am

Hey everyone just wanted to say that my RPi4 doesn’t boot anymore with over_voltage=6 arm_freq=2147 gpu_freq=750 whereas it was totally stable before the last firmware update. Should I disable DVFS manually or something ?

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

Re: DVFS Firmware

Sat Nov 23, 2019 4:56 pm

This is a known side effect. I'm not going to say it's an issue, because overclocks are non-standard anyway.

If you have time go back to standard clock settings, and work your way back up again to see where the overclocks breaks. Would be a useful datapoint.
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

Gabigol
Posts: 2
Joined: Sat Nov 23, 2019 11:07 am

Re: DVFS Firmware

Sat Nov 23, 2019 6:23 pm

Well gpu_freq is definitely the issue here but changing it to core_freq and v3d_freq avoids to boot as well...

graphicw
Posts: 91
Joined: Mon Sep 09, 2019 5:04 pm

Re: DVFS Firmware

Sat Nov 23, 2019 6:53 pm

I get the same symptoms as well with the update. You can run an overclock on the ARM but not on GPU or it fails to boot.

pica200
Posts: 294
Joined: Tue Aug 06, 2019 10:27 am

Re: DVFS Firmware

Sat Nov 23, 2019 7:44 pm

jamesh wrote:
Sat Nov 23, 2019 4:56 pm
This is a known side effect. I'm not going to say it's an issue, because overclocks are non-standard anyway.
Are they non-standard? Yes of course but this has no relevance here because this new firmware is unnecessarily limiting functionality/capabilities which were working previously. If you/the dev team don't want to fix this "issue" just include a config option to revert to old behavior for power users.

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2918
Joined: Thu Jul 11, 2013 2:37 pm

Re: DVFS Firmware

Sat Nov 23, 2019 8:23 pm

pica200 wrote:
Sat Nov 23, 2019 7:44 pm
Are they non-standard? Yes of course but this has no relevance here because this new firmware is unnecessarily limiting functionality/capabilities which were working previously. If you/the dev team don't want to fix this "issue" just include a config option to revert to old behavior for power users.
The DVFS firmware is only available via rpi-update. rpi-update prints the following warning to the console:

Code: Select all

#############################################################
WARNING: 'rpi-update' updates to pre-releases of the linux
kernel tree and Videocore firmware.

'rpi-update' should only be used if there is a specific
reason to do so - for example, a request by a Raspberry Pi
engineer.

DO NOT use 'rpi-update' as part of a regular update process.

##############################################################

Why did you ignore it?

As it stands, current rpi-update firmware breaks overclocked configurations. You can revert to firmware versions prior to the DVFS implementation by doing sudo rpi-update afbea38042fbb73149ad8c5688c011742fb3ff8a - or by using git hashes from this repo: https://github.com/Hexxeh/rpi-firmware
Rockets are loud.
https://astro-pi.org

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

Re: DVFS Firmware

Sat Nov 23, 2019 8:26 pm

pica200 wrote:
Sat Nov 23, 2019 7:44 pm
jamesh wrote:
Sat Nov 23, 2019 4:56 pm
This is a known side effect. I'm not going to say it's an issue, because overclocks are non-standard anyway.
Are they non-standard? Yes of course but this has no relevance here because this new firmware is unnecessarily limiting functionality/capabilities which were working previously. If you/the dev team don't want to fix this "issue" just include a config option to revert to old behavior for power users.
Why do you think it's unnecessarily limiting, it could be entirely necessary!

Of course overclocks are non-standard. That why they are called "Over" clocks. Over the standard clock speed.

We will of course look in to it, but more slowly than any issues that arise at standard clocks speeds. They are more important. A config option might work, depends on how pervasive this new code is through the system, might not be simple to 'comment' it out. It goes without saying that reducing temperatures for everyday users is more important than retaining overclock options for extreme users, given normal users outnumber overclocking by orders of magnitude.

Meanwhile, don't use rpi-update if you want to keep your overclocks.
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

User avatar
jahboater
Posts: 8760
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

Re: DVFS Firmware

Sat Nov 23, 2019 8:37 pm

jamesh wrote:
Sat Nov 23, 2019 8:26 pm
Meanwhile, don't use rpi-update if you want to keep your overclocks.
A mild overclock, in my case 1.6GHz is fine, completely stable after rpi-update.

pica200
Posts: 294
Joined: Tue Aug 06, 2019 10:27 am

Re: DVFS Firmware

Sat Nov 23, 2019 8:47 pm

I didn't use rpi-update because this came with a thirdparty kinda-bleeding edge distribution (namely Manjaro ARM). So i knew and accepted the risk of things breaking.

It triggers me if someone says "non-standard anyway" to justify loss/limitation. Freedom of choice and modification of software/hardware is getting rarer these days so i would appreciate if this will be added again one or another way in the future. The other points are fair.

andrum99
Posts: 1901
Joined: Fri Jul 20, 2012 2:41 pm

Re: DVFS Firmware

Sat Nov 23, 2019 8:55 pm

To me there is no possible benefit, only possible dis-benefit, to overclockers of using dynamic voltage scaling. (And dynamic frequency scaling). Overclockers are generally running with good cooling systems, so throttling should not be an issue. (If throttling was going to be an issue, then why overclock?) Given dynamic changes are liable to negatively impact stability, I believe the best solution is to simply lock the voltages if there are any overvoltages or undervoltages specified in config.txt.

There's also the issue of trying not to break setups that already work, although of course it has not yet been proven that these two failures were the result of applying dynamic voltage scaling.

jdb
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2918
Joined: Thu Jul 11, 2013 2:37 pm

Re: DVFS Firmware

Sat Nov 23, 2019 9:05 pm

pica200 wrote: I didn't use rpi-update because this came with a thirdparty kinda-bleeding edge distribution (namely Manjaro ARM). So i knew and accepted the risk of things breaking.
Welp, it's broken - so why are you requesting support on our forums for a third-party distribution?

This question is orthogonal to whether or not there is a bug in the latest firmware if you request overclocked settings - if you can take a default Raspbian image, edit your config.txt to overclock, then run rpi-update and end up with a non-functional system then that warrants investigation.
Rockets are loud.
https://astro-pi.org

User avatar
Gavinmc42
Posts: 7566
Joined: Wed Aug 28, 2013 3:31 am

Re: DVFS Firmware

Sat Nov 23, 2019 10:54 pm

Two Pi4's next to each other.
One a new copy of Buster, updated, upgraded and rpi-updated.
One is running at 41C, the other at 53C.

Well done.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

graphicw
Posts: 91
Joined: Mon Sep 09, 2019 5:04 pm

Re: DVFS Firmware

Sun Nov 24, 2019 3:26 am

Just so everyone knows, CPU overclock works fine. The only issue is with GPU overclock with the latest rpi-update. Leave out the GPU overclock until sorted and it will be fine. You can of course always revert back as well. Not very hard.

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

Re: DVFS Firmware

Sun Nov 24, 2019 7:11 am

graphicw wrote:
Sun Nov 24, 2019 3:26 am
Just so everyone knows, CPU overclock works fine. The only issue is with GPU overclock with the latest rpi-update. Leave out the GPU overclock until sorted and it will be fine. You can of course always revert back as well. Not very hard.
Not much benefit with a GPU overclock anyway.
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

User avatar
DougieLawson
Posts: 42635
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: DVFS Firmware

Sun Nov 24, 2019 7:23 am

jamesh wrote:
Sun Nov 24, 2019 7:11 am
graphicw wrote:
Sun Nov 24, 2019 3:26 am
Just so everyone knows, CPU overclock works fine. The only issue is with GPU overclock with the latest rpi-update. Leave out the GPU overclock until sorted and it will be fine. You can of course always revert back as well. Not very hard.
Not much benefit with a GPU overclock anyway.
So your "firmware" should detect the overclocking settings, disable any DVFS settings and write a debug message to note that it's done that.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

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

Re: DVFS Firmware

Sun Nov 24, 2019 7:45 am

DougieLawson wrote:
Sun Nov 24, 2019 7:23 am
jamesh wrote:
Sun Nov 24, 2019 7:11 am
graphicw wrote:
Sun Nov 24, 2019 3:26 am
Just so everyone knows, CPU overclock works fine. The only issue is with GPU overclock with the latest rpi-update. Leave out the GPU overclock until sorted and it will be fine. You can of course always revert back as well. Not very hard.
Not much benefit with a GPU overclock anyway.
So your "firmware" should detect the overclocking settings, disable any DVFS settings and write a debug message to note that it's done that.
That would be a good option, but I don't know how feasible it is. It depends how pervasive the dvfs code changes are.
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

User avatar
Gavinmc42
Posts: 7566
Joined: Wed Aug 28, 2013 3:31 am

Re: DVFS Firmware

Sun Nov 24, 2019 7:55 am

Build in auto overclock to DVFS?
If the temp is low up the overclock.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
DougieLawson
Posts: 42635
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: DVFS Firmware

Sun Nov 24, 2019 8:02 am

Gavinmc42 wrote:
Sun Nov 24, 2019 7:55 am
Build in auto overclock to DVFS?
If the temp is low up the overclock.
Down that twisty passage all alike lies function creep. You can get it to answer the phone, answer the doorbell and make tea while you're there.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

User avatar
Gavinmc42
Posts: 7566
Joined: Wed Aug 28, 2013 3:31 am

Re: DVFS Firmware

Sun Nov 24, 2019 9:28 am

You can get it to answer the phone, answer the doorbell and make tea while you're there.
And mow the lawn and pickup legos and vacuum the floor.........
Why else would I be learning Pi's?

Was thinking about OpenCV/AI/ML/NN stuff, process that data as fast as possible in bursts.
That short time it is overclocked should not drive the temp up much?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
DougieLawson
Posts: 42635
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: DVFS Firmware

Sun Nov 24, 2019 9:59 am

It's the upturned square pin plugs that I need it to detect.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

goodburner
Posts: 61
Joined: Sun Jun 16, 2019 3:20 am

Re: DVFS Firmware

Sun Nov 24, 2019 4:18 pm

I was also having issues with the Pi not booting with gpu_freq=600 with the DVFS firmware, I removed it and now it runs like a charm, had to up the voltage by 1 point but the temps have fallen considerably during medium loads, like a mix of writing forum posts and watching youtube, by as much as 6-7 C.

Thanks for another great update! You've been doing a tremendous job with the updates since the Pi 4B released.

User avatar
davidcoton
Posts: 7113
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK

Re: DVFS Firmware

Sun Nov 24, 2019 5:51 pm

DougieLawson wrote:
Sun Nov 24, 2019 8:02 am
You can get it to answer the phone, answer the doorbell and make tea ....
Will it make coffee too? Far more demand for that around here than tea. :? :shock:
Oh, and iced coffee, and hot chocolate... :roll:
Looks like another project to add to my queue. :o :lol: :geek:

(Don't some of our North American cousins go for Raspberry flavoured coffee, and similar absurdities?)
Location: 345th cell on the right of the 210th row of L2 cache

sparkyhall
Posts: 182
Joined: Mon Aug 27, 2012 9:14 am

Re: DVFS Firmware

Sun Nov 24, 2019 8:39 pm

DVFS firmware working fine here.

I normally run with a CPU overclock of 1800MHz and overvolt=2, this works fine with DVFS although I get 5 frequency steps (600, 720, 900, 1200 & 1800) I assume this is correct?

The idle power consumption at the mains plug is now 3.0W instead of 3.3W, that's a 10% reduction. It was 3.7W when I first got the Pi4, this is with the official USB-C RPi PSU.

Well done all.

pica200
Posts: 294
Joined: Tue Aug 06, 2019 10:27 am

Re: DVFS Firmware

Sun Nov 24, 2019 10:09 pm

There we go. We have a possible workaround now:
https://github.com/raspberrypi/firmware ... -557923066

sparkyhall
Posts: 182
Joined: Mon Aug 27, 2012 9:14 am

Re: DVFS Firmware

Sun Nov 24, 2019 10:34 pm

I just had a hard lock on mine after just over 2 hours of use., never done this before and I have been using this a few hours a day since July. This was with CPU overclock = 1800MHz and overvolt=2.

Will drop to default clock and overvolt and see how it goes.

Return to “Advanced users”