andreiw / RaspberryPiPkg

DEPRECATED - DO NOT USE | Go here instead ->
https://github.com/tianocore/edk2-platforms/tree/master/Platform/RaspberryPi/RPi3
746 stars 143 forks source link

Full support for overclocking #110

Closed BelleNottelling closed 5 years ago

BelleNottelling commented 5 years ago

I've looked into overclocking the PI in the past, but couldn't get much results (short of 1450 on the arm freq, up from 1400) My question is, does the firmware support it properly, can we set things such as ram speed, voltage, GPU speed, ect? I'm assuming that I can't get a higher OC because it needs more voltage, but changing it seems to do nothing. Thanks!

edit: I remember having looked into the code a little, and seeing the firmware only check for the arm_freq setting, so I'm assuming it has to be added in for everything else

mariobalanica commented 5 years ago

The clock rates can be dynamically changed through the mailbox interface.

Setting the core voltage on SoCs newer than BCM2835 isn't possible due to the AVS implementation in the RPi firmware, so this has to be manually changed from the config.txt file.

I may submit a pull request that adds support for setting arbitrary clock rates this week.

BelleNottelling commented 5 years ago

I was using the config.txt file Inside the boot partition from using WOR

mariobalanica commented 5 years ago

Raspberry Pi 3 B+ is running quite close to the maximum clock rate already.

andreiw commented 5 years ago

You can basically use config.txt for all your overclocking needs, as before.

A

12 февр. 2019 г., в 22:55, Ben notifications@github.com написал(а):

I've looked into overclocking the PI in the past, but couldn't get much results (short of 1450 on the arm freq, up from 1400) My question is, does the firmware support it properly, can we set things such as ram speed, voltage, GPU speed, ect? I'm assuming that I can't get a higher OC because it needs more voltage, but changing it seems to do nothing. Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

andreiw commented 5 years ago

Sure, looking forward to your pull request. Note, for the CPU I was not able to set any intermediate freqs between 600 and max. It was always one or the other.

A

12 февр. 2019 г., в 22:02, Mario Bălănică notifications@github.com написал(а):

The clock rates can be dynamically changed through the mailbox interface.

Setting the core voltage on SoCs newer than BCM2835 isn't possible due to the AVS implementation in the RPi firmware, so this has to be manually changed from the config.txt file.

I may submit a pull request that adds support for setting arbitrary clock rates this week.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

mariobalanica commented 5 years ago

Yes, when setting the ARM clock rate to a value higher than 600 MHz the turbo mode kicks in by default. In order to avoid that, the "skip setting turbo" value should always be 1.

BelleNottelling commented 5 years ago

img_20190213_154309 @mariobalanica So are you saying that because I didn't set skip setting turbo this isn't running at 1.46Ghz?

andreiw commented 5 years ago

No, I think what he was saying is that setting it to 800Mhz or 1337Mhz would not be possible without skipping that turbo setting.

A

13 февр. 2019 г., в 15:56, Ben notifications@github.com написал(а):

@mariobalanica So are you saying that because I didn't set skip setting turbo this isn't running at 1.46Ghz?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

BelleNottelling commented 5 years ago

Gotcha

mariobalanica commented 5 years ago

I'm talking about the mailbox stuff. That behaviour is documented here: https://github.com/raspberrypi/firmware/wiki/Mailbox-property-interface#set-clock-rate

mariobalanica commented 5 years ago

https://github.com/andreiw/RaspberryPiPkg/pull/117

andreiw commented 5 years ago

Merged

On Thu, Feb 21, 2019 at 1:16 PM Mario Bălănică notifications@github.com wrote:

117 https://github.com/andreiw/RaspberryPiPkg/pull/117

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andreiw/RaspberryPiPkg/issues/110#issuecomment-466107384, or mute the thread https://github.com/notifications/unsubscribe-auth/AAstazKw-F3Deri4Yn9XPRj2Ds0xksMNks5vPuJ4gaJpZM4a4jcW .

-- A

andreiw commented 5 years ago

Merged