SM8250: additional GPU overclock values

This commit is contained in:
rocknix
2025-09-04 18:25:24 +00:00
parent 8218213240
commit dbbecae0d0
4 changed files with 47 additions and 21 deletions

View File

@@ -1,17 +1,35 @@
diff -rupbN linux.orig/arch/arm64/boot/dts/qcom/sm8250.dtsi linux/arch/arm64/boot/dts/qcom/sm8250.dtsi
--- linux.orig/arch/arm64/boot/dts/qcom/sm8250.dtsi 2024-10-19 13:35:28.332965210 +0000
+++ linux/arch/arm64/boot/dts/qcom/sm8250.dtsi 2024-10-26 01:57:44.836755804 +0000
@@ -2967,10 +2967,10 @@
--- linux.orig/arch/arm64/boot/dts/qcom/sm8250.dtsi 2025-09-04 06:12:09.853024692 +0000
+++ linux/arch/arm64/boot/dts/qcom/sm8250.dtsi 2025-09-04 06:18:51.210804151 +0000
@@ -2945,10 +2945,28 @@
gpu_opp_table: opp-table {
compatible = "operating-points-v2";
- opp-670000000 {
- opp-hz = /bits/ 64 <670000000>;
+ opp-650000000 {
+ opp-hz = /bits/ 64 <650000000>;
+ opp-800000000 {
+ opp-hz = /bits/ 64 <800000000>;
opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
- opp-supported-hw = <0xa>;
+ opp-supported-hw = <0xb>;
+ };
+
+ opp-750000000 {
+ opp-hz = /bits/ 64 <750000000>;
+ opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
+ opp-supported-hw = <0xb>;
+ };
+
+ opp-700000000 {
+ opp-hz = /bits/ 64 <700000000>;
+ opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
+ opp-supported-hw = <0xb>;
+ };
+
+ opp-650000000 {
+ opp-hz = /bits/ 64 <650000000>;
+ opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
+ opp-supported-hw = <0xb>;
};
opp-587000000 {

View File

@@ -6,16 +6,11 @@
. /etc/profile
# Get GPU overclock state
GPU_OC_STATE=$(get_setting "enable.gpu-overclock")
GPU_OC_SPEED=$(get_setting "gpu-overclock-speed")
if [ ! -n "${GPU_OC_STATE}" ]; then
GPU_OC_STATE="disable"
set_setting "enable.gpu-overclock" "0"
elif [ "${GPU_OC_STATE}" = 1 ]; then
GPU_OC_STATE="enable"
else
GPU_OC_STATE="disable"
set_setting "enable.gpu-overclock" "0"
GPU_OC_STATE="0"
set_setting "gpu-overclock-speed" "${GPU_OC_SPEED}"
fi
# Set GPU OC state
/usr/lib/autostart/quirks/platforms/SM8250/bin/gpu_overclock ${GPU_OC_STATE}
/usr/lib/autostart/quirks/platforms/SM8250/bin/gpu_overclock "${GPU_OC_SPEED}"

View File

@@ -1,4 +1,5 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2024 ROCKNIX (https://github.com/ROCKNIX)
@@ -11,12 +12,24 @@ fi
# Set max gpu freq
case $1 in
disable)
0)
echo 587000000 > $GPU_FREQ/max_freq
set_setting enable.gpu-overclock 0
set_setting gpu-overclock-speed 0
;;
enable)
650)
echo 650000000 > $GPU_FREQ/max_freq
set_setting enable.gpu-overclock 1
set_setting gpu-overclock-speed 650
;;
700)
echo 700000000 > $GPU_FREQ/max_freq
set_setting gpu-overclock-speed 700
;;
750)
echo 750000000 > $GPU_FREQ/max_freq
set_setting gpu-overclock-speed 750
;;
800)
echo 800000000 > $GPU_FREQ/max_freq
set_setting gpu-overclock-speed 800
;;
esac

View File

@@ -2,7 +2,7 @@
# Copyright (C) 2024-present ROCKNIX (https://github.com/ROCKNIX)
PKG_NAME="emulationstation"
PKG_VERSION="86f9d35c11ab2efe2beb66eb2938bec88d79cf0e"
PKG_VERSION="e5c5e396ab9b94c3fd5c7ae9d342535d83f80a4e"
PKG_GIT_CLONE_BRANCH="master"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/ROCKNIX/emulationstation-next"