* Historically JELOS configured CPU/GPU/DMC performance modes via a single scheduling function. Prior to implementing powerstate we extended that functionality to also manage AMD GPU performance. This functionality conflicts with powerstate and has been deprecated in favor of new behavior that allows ARM devices to utilize the GPU performance feature previously available for AMD devices only.
This commit is contained in:
parent
42f8165118
commit
80e8471ab6
5 changed files with 34 additions and 32 deletions
|
@ -85,41 +85,26 @@ set_gpu_gov() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
set_amdgpu_perf() {
|
|
||||||
for AMDGPU_PERF_DEVICE in $(find /sys/devices -name power_dpm_force_performance_level 2>/dev/null)
|
|
||||||
do
|
|
||||||
echo $1 >${AMDGPU_PERF_DEVICE} 2>/dev/null
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
onlinethreads() {
|
onlinethreads() {
|
||||||
set_online_threads ${1} ${2}
|
set_online_threads ${1} ${2}
|
||||||
}
|
}
|
||||||
|
|
||||||
performance() {
|
performance() {
|
||||||
set_cpu_gov performance
|
set_cpu_gov performance
|
||||||
set_amdgpu_perf profile_peak
|
|
||||||
set_gpu_gov performance
|
|
||||||
set_dmc_gov performance
|
set_dmc_gov performance
|
||||||
}
|
}
|
||||||
|
|
||||||
ondemand() {
|
ondemand() {
|
||||||
set_cpu_gov ondemand
|
set_cpu_gov ondemand
|
||||||
set_amdgpu_perf auto
|
|
||||||
set_gpu_gov ondemand
|
|
||||||
set_dmc_gov ondemand
|
set_dmc_gov ondemand
|
||||||
}
|
}
|
||||||
|
|
||||||
schedutil() {
|
schedutil() {
|
||||||
set_cpu_gov schedutil
|
set_cpu_gov schedutil
|
||||||
set_amdgpu_perf auto
|
|
||||||
set_gpu_gov ondemand
|
|
||||||
set_dmc_gov ondemand
|
set_dmc_gov ondemand
|
||||||
}
|
}
|
||||||
|
|
||||||
powersave() {
|
powersave() {
|
||||||
set_cpu_gov powersave
|
set_cpu_gov powersave
|
||||||
set_amdgpu_perf low
|
|
||||||
set_gpu_gov powersave
|
|
||||||
set_dmc_gov powersave
|
set_dmc_gov powersave
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,13 +64,6 @@ ln -sf /usr/share/locale /storage/.config/emulationstation/locale >>/var/log/con
|
||||||
### Add items below this line that are safe to remove after a period of time.
|
### Add items below this line that are safe to remove after a period of time.
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
### Added 20230409 as a helper for the quirks refactor.
|
|
||||||
if [ ! -d "/storage/.config/profile_backup" ]
|
|
||||||
then
|
|
||||||
mkdir /storage/.config/profile_backup
|
|
||||||
mv /storage/.config/profile.d/* /storage/.config/profile_backup
|
|
||||||
fi
|
|
||||||
|
|
||||||
### 20230913 (reverted) Set the default output to Master for pipewire
|
### 20230913 (reverted) Set the default output to Master for pipewire
|
||||||
ES_SETTINGS="/storage/.config/emulationstation/es_settings.cfg"
|
ES_SETTINGS="/storage/.config/emulationstation/es_settings.cfg"
|
||||||
|
|
||||||
|
|
|
@ -17,17 +17,41 @@ gpu_power_profile() {
|
||||||
}
|
}
|
||||||
|
|
||||||
get_gpu_performance_level() {
|
get_gpu_performance_level() {
|
||||||
cat /sys/class/drm/card0/device/power_dpm_force_performance_level 2>/dev/null
|
case ${HW_ARCH} in
|
||||||
|
x86_64)
|
||||||
|
cat /sys/class/drm/card0/device/power_dpm_force_performance_level 2>/dev/null
|
||||||
|
;;
|
||||||
|
aarch64)
|
||||||
|
get_setting system.gpuperf
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
gpu_performance_level() {
|
gpu_performance_level() {
|
||||||
for card in /sys/class/drm/card*/device/power_dpm_force_performance_level
|
case ${HW_ARCH} in
|
||||||
do
|
x86_64)
|
||||||
if [ -e "${card}" ]
|
for card in /sys/class/drm/card*/device/power_dpm_force_performance_level
|
||||||
then
|
do
|
||||||
echo ${1} >${card} 2>/dev/null
|
if [ -e "${card}" ]
|
||||||
fi
|
then
|
||||||
done
|
echo ${1} >${card} 2>/dev/null
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
aarch64)
|
||||||
|
case ${1} in
|
||||||
|
profile_peak)
|
||||||
|
set_gpu_gov performance
|
||||||
|
;;
|
||||||
|
auto|profile_standard)
|
||||||
|
set_gpu_gov ondemand
|
||||||
|
;;
|
||||||
|
low)
|
||||||
|
set_gpu_gov powersave
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
pcie_aspm_policy() {
|
pcie_aspm_policy() {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
||||||
|
|
||||||
PKG_NAME="emulationstation"
|
PKG_NAME="emulationstation"
|
||||||
PKG_VERSION="5155542"
|
PKG_VERSION="94f95dc"
|
||||||
PKG_GIT_CLONE_BRANCH="main"
|
PKG_GIT_CLONE_BRANCH="main"
|
||||||
PKG_REV="1"
|
PKG_REV="1"
|
||||||
PKG_ARCH="any"
|
PKG_ARCH="any"
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
DRIVER_ADDONS="" #dvb-latest
|
DRIVER_ADDONS="" #dvb-latest
|
||||||
|
|
||||||
# debug tty path
|
# debug tty path
|
||||||
DEBUG_TTY="/dev/ttyFIQ0"
|
DEBUG_TTY="/dev/ttyUSB0"
|
||||||
|
|
||||||
# build and install bluetooth support (yes / no)
|
# build and install bluetooth support (yes / no)
|
||||||
BLUETOOTH_SUPPORT="yes"
|
BLUETOOTH_SUPPORT="yes"
|
||||||
|
|
Loading…
Reference in a new issue