Skip to content

Commit

Permalink
DEV 20200411
Browse files Browse the repository at this point in the history
wipe-v2:PELT HMP采用位于exynos8890.dtsi的固定值
wipe-v2:屏蔽部分平台不支持的max_freq_hysteresis
wipe-v2:降低孤立卡顿权重,以连续卡顿为主
高通EAS:区分是否支持cpuLoadBoost和lowlat的平台调参,尽量把top-app的负载固定在大核
配置文件生成器:补上PELT eas的lowlat设置
配置文件生成器:修复845的l3LatBig和ddrLatBig路径错误
配置文件生成器:相同的两个集群不需要设置负载迁移阈值,默认值即可
安装脚本:屏蔽会睡死的9820/9825

Signed-off-by: Matt Yang <yccy@outlook.com>
  • Loading branch information
yc9559 committed Apr 11, 2020
1 parent a5a7603 commit 40c2061
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion magisk/module.prop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=uperf
name=Uperf
version=DEV 20200409
version=DEV 20200411
versionCode=1
author=Matt Yang
description=Userspace performance controller for android. Repo: https://github.com/yc9559/uperf/
Expand Down
2 changes: 1 addition & 1 deletion magisk/script/libuperf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Uperf Library
# https://github.com/yc9559/
# Author: Matt Yang
# Version: 20200409
# Version: 20200411

BASEDIR="$(dirname "$0")"
. $BASEDIR/pathinfo.sh
Expand Down
2 changes: 1 addition & 1 deletion magisk/script/powercfg_main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ save_panel()
write_panel ""
write_panel "Uperf https://github.com/yc9559/uperf/"
write_panel "Author: Matt Yang"
write_panel "Version: DEV 20200409"
write_panel "Version: DEV 20200411"
write_panel "Last performed: $(date '+%Y-%m-%d %H:%M:%S')"
write_panel ""
write_panel "[Uperf status]"
Expand Down
36 changes: 18 additions & 18 deletions magisk/script/powercfg_once.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ BASEDIR="$(dirname "$0")"

# unify schedtune misc
# android 10 doesn't have schedtune.sched_boost_enabled exposed, default = true
mutate "0" $ST_BACK/schedtune.boost
mutate "0" $ST_BACK/schedtune.prefer_idle
mutate "0" $ST_FORE/schedtune.boost
mutate "0" $ST_FORE/schedtune.prefer_idle
mutate "0" $ST_TOP/schedtune.boost
mutate "0" $ST_TOP/schedtune.prefer_idle
lock_val "0" $ST_BACK/schedtune.boost
lock_val "0" $ST_BACK/schedtune.prefer_idle
lock_val "0" $ST_FORE/schedtune.boost
lock_val "0" $ST_FORE/schedtune.prefer_idle
lock_val "0" $ST_TOP/schedtune.boost
lock_val "0" $ST_TOP/schedtune.prefer_idle

# CFQ io scheduler takes cgroup into consideration
lock_val "cfq" $SDA_Q/scheduler
Expand Down Expand Up @@ -82,8 +82,8 @@ change_task_affinity ".hardware.display" "ff"
# provide best performance for fingerprint service
change_task_cgroup ".hardware.biometrics.fingerprint" "rt" "stune"
change_task_nice ".hardware.biometrics.fingerprint" "-20"
mutate "100" $ST_RT/schedtune.boost
mutate "1" $ST_RT/schedtune.prefer_idle
lock_val "100" $ST_RT/schedtune.boost
lock_val "1" $ST_RT/schedtune.prefer_idle

# try to disable all kernel input boost
# Qualcomm
Expand All @@ -96,17 +96,17 @@ lock_val "0" /sys/module/cpu_boost/parameters/boost_ms
lock_val "0" /sys/power/pnpmgr/touch_boost
lock_val "0" /sys/power/pnpmgr/long_duration_touch_boost
# Samsung
mutate "0" /sys/class/input_booster/level
mutate "0" /sys/class/input_booster/head
mutate "0" /sys/class/input_booster/tail
lock_val "0" /sys/class/input_booster/level
lock_val "0" /sys/class/input_booster/head
lock_val "0" /sys/class/input_booster/tail
# Samsung EPIC interfaces
mutate "0" /dev/cluster0_freq_min
mutate "0" /dev/cluster1_freq_min
mutate "0" /dev/cluster2_freq_min
# lock_val "0" /dev/cluster0_freq_min
# lock_val "0" /dev/cluster1_freq_min
# lock_val "0" /dev/cluster2_freq_min
# lock_val "0" /dev/bus_throughput
# lock_val "0" /dev/gpu_freq_min
# Samsung /kernel/sched/ems/...
mutate "0" /sys/kernel/ems/eff_mode
# lock_val "0" /sys/kernel/ems/eff_mode
# 3rd
lock_val "0" /sys/kernel/cpu_input_boost/enabled
lock_val "0" /sys/kernel/cpu_input_boost/ib_freqs
Expand Down Expand Up @@ -150,14 +150,14 @@ stop oneplus_brain_service
# stop vendor.power-hal-1-3

# Exynos hotplug
mutate "0" /sys/power/cpuhotplug/enabled
mutate "0" $CPU/cpuhotplug/enabled
lock_val "0" /sys/power/cpuhotplug/enabled
lock_val "0" $CPU/cpuhotplug/enabled
# turn off msm_thermal
lock_val "0" /sys/module/msm_thermal/core_control/enabled
lock_val "N" /sys/module/msm_thermal/parameters/enabled
# bring all cores online
for i in 0 1 2 3 4 5 6 7 8 9; do
mutate "1" $CPU/cpu$i/online
lock_val "1" $CPU/cpu$i/online
done

# no msm_performance limit
Expand Down
8 changes: 4 additions & 4 deletions magisk/setup_uperf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Uperf Setup
# https://github.com/yc9559/
# Author: Matt Yang & cjybyjk (cjybyjk@gmail.com)
# Version: 20200409
# Version: 20200411

BASEDIR="$(dirname $(readlink -f "$0"))"

Expand Down Expand Up @@ -222,8 +222,8 @@ _get_cfgname()
"msm8998") ret="$(_get_sdm835_type)" ;;
"msm8996") ret="$(_get_sdm82x_type)" ;;
"msm8996pro") ret="$(_get_sdm82x_type)" ;;
"universal9825") ret="e9820" ;;
"universal9820") ret="e9820" ;;
# "universal9825") ret="e9820" ;;
# "universal9820") ret="e9820" ;;
"universal9810") ret="e9810" ;;
"universal8895") ret="$(_get_e8895_type)" ;;
"universal8890") ret="e8890" ;;
Expand All @@ -238,7 +238,7 @@ uperf_print_banner()
echo ""
echo "* Uperf https://github.com/yc9559/uperf/"
echo "* Author: Matt Yang"
echo "* Version: DEV 20200409"
echo "* Version: DEV 20200411"
echo ""
}

Expand Down

0 comments on commit 40c2061

Please sign in to comment.