Closed keeno1982 closed 1 year ago
Many thanks for your question.
The GPU governor has no effect on the maximum frequency, it only decides if/when to change it in the set min/max borders. I remember for the RK3399 SoCs there was a device tree overlay available on newest kernel to change the max frequency. Can you check:
ls -l /boot/dtb/rockchip/overlay
@MichaIng Thanks for your reply, info print below, and then what should I do next?
-rwxr-xr-x 1 root root 2921 3月 8 09:05 README.rockchip-overlays
-rwxr-xr-x 1 root root 272 3月 8 09:05 rockchip-dwc3-0-host.dtbo
-rwxr-xr-x 1 root root 2698 3月 8 09:05 rockchip-fixup.scr
-rwxr-xr-x 1 root root 218 3月 8 09:05 rockchip-i2c7.dtbo
-rwxr-xr-x 1 root root 218 3月 8 09:05 rockchip-i2c8.dtbo
-rwxr-xr-x 1 root root 267 3月 8 09:05 rockchip-pcie-gen2.dtbo
-rwxr-xr-x 1 root root 301 3月 8 09:05 rockchip-rk3328-opp-1.4ghz.dtbo
-rwxr-xr-x 1 root root 301 3月 8 09:05 rockchip-rk3328-opp-1.5ghz.dtbo
-rwxr-xr-x 1 root root 376 3月 8 09:05 rockchip-rk3399-opp-2ghz.dtbo
-rwxr-xr-x 1 root root 1314 3月 8 09:05 rockchip-spi-jedec-nor.dtbo
-rwxr-xr-x 1 root root 1266 3月 8 09:05 rockchip-spi-spidev.dtbo
-rwxr-xr-x 1 root root 384 3月 8 09:05 rockchip-uart4.dtbo
-rwxr-xr-x 1 root root 491 3月 8 09:05 rockchip-w1-gpio.dtbo
Please try the following:
if grep -q '^overlays=' /boot/armbianEnv.txt
then
sed -i '/^overlays=/s/$/ rk3399-opp-2ghz/' /boot/armbianEnv.txt
else
echo 'overlays=rk3399-opp-2ghz' >> /boot/armbianEnv.txt
fi
reboot
This adds the RK3399 2 GHz overclocking device tree overlay. Switch the governor back to ondemand or better schedutil, so that it does not run at 2 GHz even on idle (performance governor).
Thanks very much, it's worked on schedutil stable !
Great 🙂, I'll mark the issue as closed then. Feel free to reopen if required.
In the same way, overclocking not work on Bullseye : (
Accurate to say, the Dietpi Bullseye is update from Armbian by dietpi-installer script, not original Dietpi Bullseye.
root@DietPi:~# ls -l /boot/dtb/rockchip/overlay total 52 -rwxr-xr-x 1 root root 2928 May 9 02:00 README.rockchip-overlays -rwxr-xr-x 1 root root 272 May 9 02:00 rockchip-dwc3-0-host.dtbo -rwxr-xr-x 1 root root 2698 May 9 02:00 rockchip-fixup.scr -rwxr-xr-x 1 root root 218 May 9 02:00 rockchip-i2c7.dtbo -rwxr-xr-x 1 root root 218 May 9 02:00 rockchip-i2c8.dtbo -rwxr-xr-x 1 root root 267 May 9 02:00 rockchip-pcie-gen2.dtbo -rwxr-xr-x 1 root root 301 May 9 02:00 rockchip-rk3328-opp-1.4ghz.dtbo -rwxr-xr-x 1 root root 301 May 9 02:00 rockchip-rk3328-opp-1.5ghz.dtbo -rwxr-xr-x 1 root root 376 May 9 02:00 rockchip-rk3399-opp-2ghz.dtbo -rwxr-xr-x 1 root root 1314 May 9 02:00 rockchip-spi-jedec-nor.dtbo -rwxr-xr-x 1 root root 1266 May 9 02:00 rockchip-spi-spidev.dtbo -rwxr-xr-x 1 root root 384 May 9 02:00 rockchip-uart4.dtbo -rwxr-xr-x 1 root root 491 May 9 02:00 rockchip-w1-gpio.dtbo
armbianEnv.txt: rootfstype=ext4 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u extraargs=net.ifnames=0 bootlogo=false verbosity=4 docker_optimizations=off overlays=rk3399-opp-2ghz
Current Freq Min Freq Max Freq
CPU0 | 1416 MHz 408 MHz 1416 MHz CPU1 | 1416 MHz 408 MHz 1416 MHz CPU2 | 1416 MHz 408 MHz 1416 MHz CPU3 | 1416 MHz 408 MHz 1416 MHz CPU4 | 1800 MHz 408 MHz 1800 MHz CPU5 | 1800 MHz 408 MHz 1800 MHz
Oh, that is nasty, I'll try to replicate on NanoPi R4S.
I verified that overclocking doesn't work on NanoPi R4S either, so it seems to affect all RK3399 SBCs with recent kernel v5.15 😞.
Basically reported here: https://forum.armbian.com/topic/20584-armbian-config-it-does-not-work/ And: https://forum.armbian.com/topic/18153-rk3399-ram-overclocking-rockpro64/
Solved with the Linux 6.1 upgrade applied with DietPi v8.21. At least on NanoPi R4S, overclocking works now well with these overlays 🙂.
DietPi v7.4.2 Device model : NanoPi M4/T4/NEO4 (aarch64)
I set governor=performance, but cpu still only 1.8g max, how can I do ?