Swith RK3399 to default opp table, remove turbo mode as there is no gain in perf

This commit is contained in:
brooksytech 2024-02-01 20:35:41 +00:00
parent 15368e9dee
commit 9af0303732
No known key found for this signature in database
4 changed files with 35 additions and 153 deletions

View file

@ -19,10 +19,10 @@ set_dmc_gov powersave
set_gpu_gov powersave
### Set max/min freq to lowest available value
echo 600000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
echo 408000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
echo 600000 > /sys/devices/system/cpu/cpufreq/policy4/scaling_min_freq
echo 200000000 > /sys/devices/platform/ff9a0000.gpu/devfreq/ff9a0000.gpu/min_freq
echo 600000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
echo 600000 > /sys/devices/system/cpu/cpufreq/policy4/scaling_max_freq
echo 408000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
echo 408000 > /sys/devices/system/cpu/cpufreq/policy4/scaling_max_freq
echo 200000000 > /sys/devices/platform/ff9a0000.gpu/devfreq/ff9a0000.gpu/max_freq

View file

@ -1,7 +0,0 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2024 JELOS (https://github.com/JustEnoughLinuxOS)
cat <<EOF >/storage/.config/profile.d/002-turbo-mode_config
DEVICE_TURBO_MODE="true"
EOF

View file

@ -27,7 +27,7 @@ diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3399-anbernic-rg552.dts lin
+#include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/usb/pd.h>
+#include "rk3399.dtsi"
+#include "rk3399-op1-opp.dtsi"
+#include "rk3399-opp.dtsi"
+
+/ {
+ model = "Anbernic RG552";

View file

@ -1,160 +1,49 @@
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3399-op1-opp.dtsi linux/arch/arm64/boot/dts/rockchip/rk3399-op1-opp.dtsi
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3399-op1-opp.dtsi 2024-01-31 00:19:09.560493706 +0000
+++ linux/arch/arm64/boot/dts/rockchip/rk3399-op1-opp.dtsi 2024-01-31 00:23:30.222617860 +0000
@@ -9,34 +9,35 @@
opp-shared;
opp00 {
- opp-hz = /bits/ 64 <408000000>;
- opp-microvolt = <800000>;
- clock-latency-ns = <40000>;
- };
- opp01 {
opp-hz = /bits/ 64 <600000000>;
opp-microvolt = <825000>;
+ clock-latency-ns = <40000>;
};
- opp02 {
- opp-hz = /bits/ 64 <816000000>;
- opp-microvolt = <850000>;
- };
- opp03 {
+ opp01 {
opp-hz = /bits/ 64 <1008000000>;
opp-microvolt = <900000>;
};
- opp04 {
+ opp02 {
opp-hz = /bits/ 64 <1200000000>;
opp-microvolt = <975000>;
};
- opp05 {
+ opp03 {
diff -rupN linux.orig/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi linux/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi
--- linux.orig/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi 2024-02-01 18:30:30.720485939 +0000
+++ linux/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi 2024-02-01 19:36:17.927420782 +0000
@@ -33,6 +33,10 @@
opp-hz = /bits/ 64 <1416000000>;
opp-microvolt = <1100000>;
opp-microvolt = <1125000 1125000 1250000>;
};
- opp06 {
+ opp04 {
opp-hz = /bits/ 64 <1512000000>;
opp-microvolt = <1150000>;
};
+ opp05 {
+ opp06 {
+ opp-hz = /bits/ 64 <1608000000>;
+ opp-microvolt = <1200000>;
+ opp-microvolt = <1300000 1300000 1300000>;
+ };
+ opp06 {
+ opp-hz = /bits/ 64 <1704000000>;
+ opp-microvolt = <1225000>;
+ turbo-mode;
+ };
};
cluster1_opp: opp-table-1 {
@@ -44,42 +45,39 @@
opp-shared;
opp00 {
- opp-hz = /bits/ 64 <408000000>;
- opp-microvolt = <800000>;
- clock-latency-ns = <40000>;
- };
- opp01 {
opp-hz = /bits/ 64 <600000000>;
- opp-microvolt = <800000>;
- };
- opp02 {
- opp-hz = /bits/ 64 <816000000>;
opp-microvolt = <825000>;
+ clock-latency-ns = <40000>;
};
- opp03 {
+ opp01 {
opp-hz = /bits/ 64 <1008000000>;
opp-microvolt = <850000>;
};
- opp04 {
+ opp02 {
opp-hz = /bits/ 64 <1200000000>;
opp-microvolt = <900000>;
};
- opp05 {
+ opp03 {
opp-hz = /bits/ 64 <1416000000>;
opp-microvolt = <975000>;
};
- opp06 {
+ opp04 {
opp-hz = /bits/ 64 <1608000000>;
opp-microvolt = <1050000>;
};
- opp07 {
+ opp05 {
@@ -72,6 +76,10 @@
opp-hz = /bits/ 64 <1800000000>;
opp-microvolt = <1150000>;
opp-microvolt = <1200000 1200000 1250000>;
};
- opp08 {
- opp-hz = /bits/ 64 <2016000000>;
+ opp06 {
+ opp08 {
+ opp-hz = /bits/ 64 <2088000000>;
opp-microvolt = <1250000>;
};
+ opp07 {
+ opp-hz = /bits/ 64 <2208000000>;
+ opp-microvolt = <1350000>;
+ turbo-mode;
+ };
+ opp-microvolt = <1300000 1300000 1300000>;
+ };
};
gpu_opp_table: opp-table-2 {
@@ -90,44 +88,25 @@
opp-microvolt = <800000>;
};
opp01 {
- opp-hz = /bits/ 64 <297000000>;
- opp-microvolt = <800000>;
- };
- opp02 {
- opp-hz = /bits/ 64 <400000000>;
- opp-microvolt = <825000>;
- };
- opp03 {
- opp-hz = /bits/ 64 <500000000>;
- opp-microvolt = <850000>;
- };
- opp04 {
opp-hz = /bits/ 64 <600000000>;
opp-microvolt = <925000>;
};
- opp05 {
+ opp02 {
@@ -101,6 +109,23 @@
opp-hz = /bits/ 64 <800000000>;
opp-microvolt = <1075000>;
opp-microvolt = <1100000 1100000 1150000>;
};
+ opp03 {
+ opp-hz = /bits/ 64 <900000000>;
+ opp-microvolt = <1150000>;
+ };
+ opp06 {
+ opp-hz = /bits/ 64 <900000000>;
+ opp-microvolt = <1150000 1150000 1150000>;
+ };
+ };
+
+ dmc_opp_table: opp-table-3 {
+ compatible = "operating-points-v2";
+
+ opp00 {
+ opp-hz = /bits/ 64 <666000000>;
+ opp-microvolt = <900000>;
+ };
+ opp01 {
+ opp-hz = /bits/ 64 <856000000>;
+ opp-microvolt = <900000>;
+ };
};
};
dmc_opp_table: opp-table-3 {
compatible = "operating-points-v2";
opp00 {
- opp-hz = /bits/ 64 <400000000>;
- opp-microvolt = <900000>;
- };
- opp01 {
- opp-hz = /bits/ 64 <666000000>;
- opp-microvolt = <900000>;
- };
- opp02 {
- opp-hz = /bits/ 64 <800000000>;
- opp-microvolt = <900000>;
- };
- opp03 {
- opp-hz = /bits/ 64 <928000000>;
+ opp-hz = /bits/ 64 <933000000>;
opp-microvolt = <925000>;
};
};