diff --git a/Android.bp b/Android.bp index e1fda3c..6b3d600 100644 --- a/Android.bp +++ b/Android.bp @@ -2657,135 +2657,6 @@ cc_prebuilt_library_shared { soc_specific: true, } -cc_prebuilt_library_shared { - name: "libperfconfig", - owner: "motorola", - strip: { - none: true, - }, - target: { - android_arm: { - srcs: [ - "proprietary/vendor/lib/libperfconfig.so", - ], - shared_libs: [ - "libutils", - "liblog", - "libcutils", - "libxml2", - "libqti-util", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/libperfconfig.so", - ], - shared_libs: [ - "libutils", - "liblog", - "libcutils", - "libxml2", - "libqti-util", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "both", - prefer: true, - soc_specific: true, -} - -cc_prebuilt_library_shared { - name: "libperfgluelayer", - owner: "motorola", - strip: { - none: true, - }, - target: { - android_arm: { - srcs: [ - "proprietary/vendor/lib/libperfgluelayer.so", - ], - shared_libs: [ - "libutils", - "liblog", - "libcutils", - "libperfconfig", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/libperfgluelayer.so", - ], - shared_libs: [ - "libutils", - "liblog", - "libcutils", - "libperfconfig", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "both", - prefer: true, - soc_specific: true, -} - -cc_prebuilt_library_shared { - name: "libperfioctl", - owner: "motorola", - strip: { - none: true, - }, - target: { - android_arm: { - srcs: [ - "proprietary/vendor/lib/libperfioctl.so", - ], - shared_libs: [ - "libutils", - "liblog", - "libcutils", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/libperfioctl.so", - ], - shared_libs: [ - "libutils", - "liblog", - "libcutils", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "both", - prefer: true, - soc_specific: true, -} - cc_prebuilt_library_shared { name: "libqcci_legacy", owner: "motorola", @@ -3371,159 +3242,6 @@ cc_prebuilt_library_shared { soc_specific: true, } -cc_prebuilt_library_shared { - name: "libqti-perfd-client", - owner: "motorola", - strip: { - none: true, - }, - target: { - android_arm: { - srcs: [ - "proprietary/vendor/lib/libqti-perfd-client.so", - ], - shared_libs: [ - "libcutils", - "libutils", - "liblog", - "vendor.qti.hardware.perf@2.2", - "libhidlbase", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/libqti-perfd-client.so", - ], - shared_libs: [ - "libcutils", - "libutils", - "liblog", - "vendor.qti.hardware.perf@2.2", - "libhidlbase", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "both", - prefer: true, - soc_specific: true, -} - -cc_prebuilt_library_shared { - name: "libqti-perfd", - owner: "motorola", - strip: { - none: true, - }, - target: { - android_arm: { - srcs: [ - "proprietary/vendor/lib/libqti-perfd.so", - ], - shared_libs: [ - "libcutils", - "liblog", - "libutils", - "libxml2", - "libqti-util", - "libhidlbase", - "vendor.qti.hardware.perf@2.0", - "libbase", - "libthermalclient", - "libqti-perfd-client", - "libperfconfig", - "libperfgluelayer", - "libdisplayconfig.qti", - "libperfioctl", - "vendor.qti.memory.pasrmanager@1.1", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/libqti-perfd.so", - ], - shared_libs: [ - "libcutils", - "liblog", - "libutils", - "libxml2", - "libqti-util", - "libhidlbase", - "vendor.qti.hardware.perf@2.0", - "libbase", - "libthermalclient", - "libqti-perfd-client", - "libperfconfig", - "libperfgluelayer", - "libdisplayconfig.qti", - "libperfioctl", - "vendor.qti.memory.pasrmanager@1.1", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "both", - prefer: true, - soc_specific: true, -} - -cc_prebuilt_library_shared { - name: "libqti-util", - owner: "motorola", - strip: { - none: true, - }, - target: { - android_arm: { - srcs: [ - "proprietary/vendor/lib/libqti-util.so", - ], - shared_libs: [ - "libcutils", - "libutils", - "libxml2", - "liblog", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/libqti-util.so", - ], - shared_libs: [ - "libcutils", - "libutils", - "libxml2", - "liblog", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "both", - prefer: true, - soc_specific: true, -} - cc_prebuilt_library_shared { name: "libqtigef", owner: "motorola", @@ -4609,94 +4327,6 @@ cc_prebuilt_library_shared { soc_specific: true, } -cc_prebuilt_library_shared { - name: "vendor.qti.memory.pasrmanager@1.0", - owner: "motorola", - strip: { - none: true, - }, - target: { - android_arm: { - srcs: [ - "proprietary/vendor/lib/vendor.qti.memory.pasrmanager@1.0.so", - ], - shared_libs: [ - "libhidlbase", - "liblog", - "libutils", - "libcutils", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/vendor.qti.memory.pasrmanager@1.0.so", - ], - shared_libs: [ - "libhidlbase", - "liblog", - "libutils", - "libcutils", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "both", - prefer: true, - soc_specific: true, -} - -cc_prebuilt_library_shared { - name: "vendor.qti.memory.pasrmanager@1.1", - owner: "motorola", - strip: { - none: true, - }, - target: { - android_arm: { - srcs: [ - "proprietary/vendor/lib/vendor.qti.memory.pasrmanager@1.1.so", - ], - shared_libs: [ - "vendor.qti.memory.pasrmanager@1.0", - "libhidlbase", - "liblog", - "libutils", - "libcutils", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/vendor.qti.memory.pasrmanager@1.1.so", - ], - shared_libs: [ - "vendor.qti.memory.pasrmanager@1.0", - "libhidlbase", - "liblog", - "libutils", - "libcutils", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "both", - prefer: true, - soc_specific: true, -} - cc_prebuilt_library_shared { name: "vendor.qti.qspmhal@1.0_vendor", stem: "vendor.qti.qspmhal@1.0", @@ -7884,37 +7514,6 @@ cc_prebuilt_library_shared { soc_specific: true, } -cc_prebuilt_library_shared { - name: "liblearningmodule", - owner: "motorola", - strip: { - none: true, - }, - target: { - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/liblearningmodule.so", - ], - shared_libs: [ - "liblog", - "libc", - "libcutils", - "libutils", - "libtinyxml2", - "libsqlite", - "libperfgluelayer", - "libperfconfig", - "libc++", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "64", - prefer: true, - soc_specific: true, -} - cc_prebuilt_library_shared { name: "libloadalgo_stub", owner: "motorola", @@ -8191,33 +7790,6 @@ cc_prebuilt_library_shared { soc_specific: true, } -cc_prebuilt_library_shared { - name: "libmeters", - owner: "motorola", - strip: { - none: true, - }, - target: { - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/libmeters.so", - ], - shared_libs: [ - "liblog", - "libc", - "libcutils", - "liblearningmodule", - "libc++", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "64", - prefer: true, - soc_specific: true, -} - cc_prebuilt_library_shared { name: "libminkdescriptor", owner: "motorola", @@ -9042,74 +8614,6 @@ cc_prebuilt_library_shared { soc_specific: true, } -cc_prebuilt_library_shared { - name: "libqti-iopd-client", - owner: "motorola", - strip: { - none: true, - }, - target: { - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/libqti-iopd-client.so", - ], - shared_libs: [ - "libcutils", - "libutils", - "libxml2", - "libqti-util", - "liblog", - "vendor.qti.hardware.iop@2.0", - "libhidlbase", - "libsqlite", - "libqti-perfd-client", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "64", - prefer: true, - soc_specific: true, -} - -cc_prebuilt_library_shared { - name: "libqti-iopd", - owner: "motorola", - strip: { - none: true, - }, - target: { - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/libqti-iopd.so", - ], - shared_libs: [ - "libcutils", - "libutils", - "libxml2", - "libqti-util", - "liblog", - "libhidlbase", - "vendor.qti.hardware.iop@2.0", - "libbase", - "libqti-iopd-client", - "libqti-perfd-client", - "libsqlite", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "64", - prefer: true, - soc_specific: true, -} - cc_prebuilt_library_shared { name: "libqtikeymaster4", owner: "motorola", @@ -11459,62 +10963,6 @@ cc_prebuilt_library_shared { soc_specific: true, } -cc_prebuilt_library_shared { - name: "vendor.qti.hardware.iop@1.0", - owner: "motorola", - strip: { - none: true, - }, - target: { - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/vendor.qti.hardware.iop@1.0.so", - ], - shared_libs: [ - "libhidlbase", - "liblog", - "libutils", - "libcutils", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "64", - prefer: true, - soc_specific: true, -} - -cc_prebuilt_library_shared { - name: "vendor.qti.hardware.iop@2.0", - owner: "motorola", - strip: { - none: true, - }, - target: { - android_arm64: { - srcs: [ - "proprietary/vendor/lib64/vendor.qti.hardware.iop@2.0.so", - ], - shared_libs: [ - "libhidlbase", - "liblog", - "libutils", - "libcutils", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "64", - prefer: true, - soc_specific: true, -} - cc_prebuilt_library_shared { name: "vendor.qti.hardware.mwqemadapter@1.0", owner: "motorola", @@ -16205,44 +15653,6 @@ cc_prebuilt_binary { soc_specific: true, } -cc_prebuilt_binary { - name: "vendor.qti.hardware.perf@2.2-service", - owner: "motorola", - target: { - android_arm64: { - srcs: [ - "proprietary/vendor/bin/hw/vendor.qti.hardware.perf@2.2-service", - ], - shared_libs: [ - "liblog", - "libcutils", - "libbase", - "libutils", - "libhardware_legacy", - "libhardware", - "libhidlbase", - "vendor.qti.hardware.perf@2.0", - "vendor.qti.hardware.perf@2.1", - "vendor.qti.hardware.perf@2.2", - "libperfconfig", - "libperfgluelayer", - "libqti-perfd-client", - "libc++", - "libc", - "libm", - "libdl", - ], - }, - }, - compile_multilib: "64", - strip: { - none: true, - }, - prefer: true, - relative_install_path: "hw", - soc_specific: true, -} - cc_prebuilt_binary { name: "vendor.qti.hardware.sensorscalibrate@1.0-service", owner: "motorola", @@ -16445,30 +15855,6 @@ cc_prebuilt_binary { soc_specific: true, } -sh_binary { - name: "init.kernel.post_boot-blair", - owner: "motorola", - src: "proprietary/vendor/bin/init.kernel.post_boot-blair.sh", - filename: "init.kernel.post_boot-blair.sh", - soc_specific: true, -} - -sh_binary { - name: "init.kernel.post_boot-holi", - owner: "motorola", - src: "proprietary/vendor/bin/init.kernel.post_boot-holi.sh", - filename: "init.kernel.post_boot-holi.sh", - soc_specific: true, -} - -sh_binary { - name: "init.kernel.post_boot", - owner: "motorola", - src: "proprietary/vendor/bin/init.kernel.post_boot.sh", - filename: "init.kernel.post_boot.sh", - soc_specific: true, -} - sh_binary { name: "init.qcom.sensors", owner: "motorola", diff --git a/proprietary/vendor/bin/hw/vendor.qti.hardware.perf@2.2-service b/proprietary/vendor/bin/hw/vendor.qti.hardware.perf@2.2-service deleted file mode 100755 index f4b0886..0000000 Binary files a/proprietary/vendor/bin/hw/vendor.qti.hardware.perf@2.2-service and /dev/null differ diff --git a/proprietary/vendor/bin/init.kernel.post_boot-blair.sh b/proprietary/vendor/bin/init.kernel.post_boot-blair.sh deleted file mode 100755 index af3bbad..0000000 --- a/proprietary/vendor/bin/init.kernel.post_boot-blair.sh +++ /dev/null @@ -1,245 +0,0 @@ -#============================================================================= -# Copyright (c) 2021 Qualcomm Technologies, Inc. -# All Rights Reserved. -# Confidential and Proprietary - Qualcomm Technologies, Inc. -# -# Copyright (c) 2012-2013, 2016-2020, The Linux Foundation. All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. -# * Neither the name of The Linux Foundation nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -#============================================================================= - -function configure_zram_parameters() { - # Moto yangbq2: Skip this if we are using zram from fstab. - using_zram_from_fstab=`getprop ro.vendor.zram.swapon` - if [ "$using_zram_from_fstab" == "true" ]; then - return - fi - MemTotalStr=`cat /proc/meminfo | grep MemTotal` - MemTotal=${MemTotalStr:16:8} - - # Zram disk - 75% for < 2GB devices . - # For >2GB devices, size = 50% of RAM size. Limit the size to 4GB. - - let RamSizeGB="( $MemTotal / 1048576 ) + 1" - diskSizeUnit=M - if [ $RamSizeGB -le 2 ]; then - let zRamSizeMB="( $RamSizeGB * 1024 ) * 3 / 4" - else - let zRamSizeMB="( $RamSizeGB * 1024 ) / 2" - fi - - # use MB avoid 32 bit overflow - if [ $zRamSizeMB -gt 4096 ]; then - let zRamSizeMB=4096 - fi - - if [ -f /sys/block/zram0/disksize ]; then - if [ -f /sys/block/zram0/use_dedup ]; then - echo 1 > /sys/block/zram0/use_dedup - fi - echo "$zRamSizeMB""$diskSizeUnit" > /sys/block/zram0/disksize - - # ZRAM may use more memory than it saves if SLAB_STORE_USER - # debug option is enabled. - if [ -e /sys/kernel/slab/zs_handle ]; then - echo 0 > /sys/kernel/slab/zs_handle/store_user - fi - if [ -e /sys/kernel/slab/zspage ]; then - echo 0 > /sys/kernel/slab/zspage/store_user - fi - - mkswap /dev/block/zram0 - swapon /dev/block/zram0 -p 32758 - fi -} - -function configure_read_ahead_kb_values() { - MemTotalStr=`cat /proc/meminfo | grep MemTotal` - MemTotal=${MemTotalStr:16:8} - - dmpts=$(ls /sys/block/*/queue/read_ahead_kb | grep -e dm -e mmc) - - # Set 128 for <= 3GB & - # set 512 for >= 4GB targets. - if [ $MemTotal -le 3145728 ]; then - ra_kb=128 - else - ra_kb=512 - fi - if [ -f /sys/block/mmcblk0/bdi/read_ahead_kb ]; then - echo $ra_kb > /sys/block/mmcblk0/bdi/read_ahead_kb - fi - if [ -f /sys/block/mmcblk0rpmb/bdi/read_ahead_kb ]; then - echo $ra_kb > /sys/block/mmcblk0rpmb/bdi/read_ahead_kb - fi - for dm in $dmpts; do - echo $ra_kb > $dm - done -} - -function configure_memory_parameters() { - # Set Memory parameters. - - # Set swappiness to 100 for all targets - echo 100 > /proc/sys/vm/swappiness - - # Disable wsf for all targets beacause we are using efk. - # wsf Range : 1..1000 So set to bare minimum value 1. - echo 1 > /proc/sys/vm/watermark_scale_factor - configure_zram_parameters - configure_read_ahead_kb_values - - #Spawn 1 kswapd threads which can help in fast reclaiming of pages - echo 1 > /proc/sys/vm/kswapd_threads -} - -# Core control parameters for silver -echo 0 0 0 0 1 1 > /sys/devices/system/cpu/cpu0/core_ctl/not_preferred -echo 4 > /sys/devices/system/cpu/cpu0/core_ctl/min_cpus -echo 60 > /sys/devices/system/cpu/cpu0/core_ctl/busy_up_thres -echo 40 > /sys/devices/system/cpu/cpu0/core_ctl/busy_down_thres -echo 100 > /sys/devices/system/cpu/cpu0/core_ctl/offline_delay_ms -echo 8 > /sys/devices/system/cpu/cpu0/core_ctl/task_thres - -# Enable Core control for Silver -echo 1 > /sys/devices/system/cpu/cpu0/core_ctl/enable - -# Disable Core control on gold -echo 0 > /sys/devices/system/cpu/cpu6/core_ctl/enable - -# Setting b.L scheduler parameters -echo 65 > /proc/sys/kernel/sched_downmigrate -echo 71 > /proc/sys/kernel/sched_upmigrate -echo 85 > /proc/sys/kernel/sched_group_downmigrate -echo 100 > /proc/sys/kernel/sched_group_upmigrate -echo 1 > /proc/sys/kernel/sched_walt_rotate_big_tasks -echo 0 > /proc/sys/kernel/sched_coloc_busy_hysteresis_enable_cpus -echo 0 > /proc/sys/kernel/sched_busy_hysteresis_enable_cpus -echo 5 > /proc/sys/kernel/sched_ravg_window_nr_ticks - -# disable unfiltering -echo 20000000 > /proc/sys/kernel/sched_task_unfilter_period - -# cpuset parameters -echo 0-5 > /dev/cpuset/background/cpus -echo 0-5 > /dev/cpuset/system-background/cpus - -# Turn off scheduler boost at the end -echo 0 > /proc/sys/kernel/sched_boost - -# configure governor settings for silver cluster -echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor -echo 0 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/down_rate_limit_us -echo 0 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/up_rate_limit_us -echo 1113600 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/hispeed_freq -echo 576000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq - -# configure governor settings for gold cluster -echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy6/scaling_governor -echo 0 > /sys/devices/system/cpu/cpufreq/policy6/schedutil/down_rate_limit_us -echo 0 > /sys/devices/system/cpu/cpufreq/policy6/schedutil/up_rate_limit_us -echo 1228800 > /sys/devices/system/cpu/cpufreq/policy6/schedutil/hispeed_freq -echo 691200 > /sys/devices/system/cpu/cpufreq/policy6/scaling_min_freq - -# Colocation V3 settings -echo 680000 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/rtg_boost_freq -echo 0 > /sys/devices/system/cpu/cpufreq/policy6/schedutil/rtg_boost_freq -echo 51 > /proc/sys/kernel/sched_min_task_util_for_boost -echo 35 > /proc/sys/kernel/sched_min_task_util_for_colocation - -# sched_load_boost as -6 is equivalent to target load as 85. It is per cpu tunable. -echo -6 > /sys/devices/system/cpu/cpu6/sched_load_boost -echo -6 > /sys/devices/system/cpu/cpu7/sched_load_boost -echo 85 > /sys/devices/system/cpu/cpufreq/policy6/schedutil/hispeed_load - -# configure input boost settings -echo "0:1113600" > /sys/devices/system/cpu/cpu_boost/input_boost_freq -echo 120 > /sys/devices/system/cpu/cpu_boost/input_boost_ms - -# Enable bus-dcvs -for device in /sys/devices/platform/soc -do - for cpubw in $device/*cpu-cpu-ddr-bw/devfreq/*cpu-cpu-ddr-bw - do - cat $cpubw/available_frequencies | cut -d " " -f 1 > $cpubw/min_freq - echo "bw_hwmon" > $cpubw/governor - echo "762 1144 1720 2086 2597 2929 3879 5161 5931 6881 7980" > $cpubw/bw_hwmon/mbps_zones - echo 4 > $cpubw/bw_hwmon/sample_ms - echo 68 > $cpubw/bw_hwmon/io_percent - echo 20 > $cpubw/bw_hwmon/hist_memory - echo 0 > $cpubw/bw_hwmon/hyst_length - echo 80 > $cpubw/bw_hwmon/down_thres - echo 0 > $cpubw/bw_hwmon/guard_band_mbps - echo 250 > $cpubw/bw_hwmon/up_scale - echo 1600 > $cpubw/bw_hwmon/idle_mbps - echo 40 > $cpubw/polling_interval - done - - # configure compute settings for silver latfloor - for latfloor in $device/*cpu0-cpu*latfloor/devfreq/*cpu0-cpu*latfloor - do - cat $latfloor/available_frequencies | cut -d " " -f 1 > $latfloor/min_freq - echo 8 > $latfloor/polling_interval - done - - # configure compute settings for gold latfloor - for latfloor in $device/*cpu6-cpu*latfloor/devfreq/*cpu6-cpu*latfloor - do - cat $latfloor/available_frequencies | cut -d " " -f 1 > $latfloor/min_freq - echo 8 > $latfloor/polling_interval - done - - # configure mem_latency settings for DDR scaling - for memlat in $device/*lat/devfreq/*lat - do - cat $memlat/available_frequencies | cut -d " " -f 1 > $memlat/min_freq - echo 8 > $memlat/polling_interval - echo 400 > $memlat/mem_latency/ratio_ceil - done - - #Gold CPU6 L3 ratio ceil - for l3gold in $device/*cpu6-cpu-l3-lat/devfreq/*cpu6-cpu-l3-lat - do - echo 4000 > $l3gold/mem_latency/ratio_ceil - echo 25000 > $l3gold/mem_latency/wb_filter_ratio - echo 60 > $l3gold/mem_latency/wb_pct_thres - done - - #Gold CPU7 L3 ratio ceil - for l3gold in $device/*cpu7-cpu-l3-lat/devfreq/*cpu7-cpu-l3-lat - do - echo 4000 > $l3gold/mem_latency/ratio_ceil - echo 25000 > $l3gold/mem_latency/wb_filter_ratio - echo 60 > $l3gold/mem_latency/wb_pct_thres - done - -done - -echo N > /sys/module/lpm_levels/parameters/sleep_disabled - -configure_memory_parameters - -setprop vendor.post_boot.parsed 1 diff --git a/proprietary/vendor/bin/init.kernel.post_boot-holi.sh b/proprietary/vendor/bin/init.kernel.post_boot-holi.sh deleted file mode 100755 index cab6b83..0000000 --- a/proprietary/vendor/bin/init.kernel.post_boot-holi.sh +++ /dev/null @@ -1,246 +0,0 @@ -#============================================================================= -# Copyright (c) 2020-2021 Qualcomm Technologies, Inc. -# All Rights Reserved. -# Confidential and Proprietary - Qualcomm Technologies, Inc. -# -# Copyright (c) 2012-2013, 2016-2020, The Linux Foundation. All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. -# * Neither the name of The Linux Foundation nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -#============================================================================= - -function configure_zram_parameters() { - # Moto yangbq2: Skip this if we are using zram from fstab. - using_zram_from_fstab=`getprop ro.vendor.zram.swapon` - if [ "$using_zram_from_fstab" == "true" ]; then - return - fi - MemTotalStr=`cat /proc/meminfo | grep MemTotal` - MemTotal=${MemTotalStr:16:8} - - # Zram disk - 75% for < 2GB devices . - # For >2GB devices, size = 50% of RAM size. Limit the size to 4GB. - - let RamSizeGB="( $MemTotal / 1048576 ) + 1" - diskSizeUnit=M - if [ $RamSizeGB -le 2 ]; then - let zRamSizeMB="( $RamSizeGB * 1024 ) * 3 / 4" - else - let zRamSizeMB="( $RamSizeGB * 1024 ) / 2" - fi - - # use MB avoid 32 bit overflow - if [ $zRamSizeMB -gt 4096 ]; then - let zRamSizeMB=4096 - fi - - if [ -f /sys/block/zram0/disksize ]; then - if [ -f /sys/block/zram0/use_dedup ]; then - echo 1 > /sys/block/zram0/use_dedup - fi - echo "$zRamSizeMB""$diskSizeUnit" > /sys/block/zram0/disksize - - # ZRAM may use more memory than it saves if SLAB_STORE_USER - # debug option is enabled. - if [ -e /sys/kernel/slab/zs_handle ]; then - echo 0 > /sys/kernel/slab/zs_handle/store_user - fi - if [ -e /sys/kernel/slab/zspage ]; then - echo 0 > /sys/kernel/slab/zspage/store_user - fi - - mkswap /dev/block/zram0 - swapon /dev/block/zram0 -p 32758 - fi -} - -function configure_read_ahead_kb_values() { - MemTotalStr=`cat /proc/meminfo | grep MemTotal` - MemTotal=${MemTotalStr:16:8} - - dmpts=$(ls /sys/block/*/queue/read_ahead_kb | grep -e dm -e mmc) - - # Set 128 for <= 3GB & - # set 512 for >= 4GB targets. - if [ $MemTotal -le 3145728 ]; then - ra_kb=128 - else - ra_kb=512 - fi - if [ -f /sys/block/mmcblk0/bdi/read_ahead_kb ]; then - echo $ra_kb > /sys/block/mmcblk0/bdi/read_ahead_kb - fi - if [ -f /sys/block/mmcblk0rpmb/bdi/read_ahead_kb ]; then - echo $ra_kb > /sys/block/mmcblk0rpmb/bdi/read_ahead_kb - fi - for dm in $dmpts; do - echo $ra_kb > $dm - done -} - -function configure_memory_parameters() { - # Set Memory parameters. - - # Set swappiness to 100 for all targets - echo 100 > /proc/sys/vm/swappiness - - # Disable wsf for all targets beacause we are using efk. - # wsf Range : 1..1000 So set to bare minimum value 1. - echo 1 > /proc/sys/vm/watermark_scale_factor - configure_zram_parameters - configure_read_ahead_kb_values - - #Spawn 2 kswapd threads which can help in fast reclaiming of pages - #use 1 to improve performance - echo 1 > /proc/sys/vm/kswapd_threads -} - -# Core control parameters for silver -echo 0 0 0 0 1 1 > /sys/devices/system/cpu/cpu0/core_ctl/not_preferred -echo 4 > /sys/devices/system/cpu/cpu0/core_ctl/min_cpus -echo 60 > /sys/devices/system/cpu/cpu0/core_ctl/busy_up_thres -echo 40 > /sys/devices/system/cpu/cpu0/core_ctl/busy_down_thres -echo 100 > /sys/devices/system/cpu/cpu0/core_ctl/offline_delay_ms -echo 8 > /sys/devices/system/cpu/cpu0/core_ctl/task_thres - -# Enable Core control for Silver -echo 1 > /sys/devices/system/cpu/cpu0/core_ctl/enable - -# Disable Core control on gold -echo 0 > /sys/devices/system/cpu/cpu6/core_ctl/enable - -# Setting b.L scheduler parameters -echo 65 > /proc/sys/kernel/sched_downmigrate -echo 71 > /proc/sys/kernel/sched_upmigrate -echo 85 > /proc/sys/kernel/sched_group_downmigrate -echo 100 > /proc/sys/kernel/sched_group_upmigrate -echo 1 > /proc/sys/kernel/sched_walt_rotate_big_tasks -echo 0 > /proc/sys/kernel/sched_coloc_busy_hysteresis_enable_cpus -echo 0 > /proc/sys/kernel/sched_busy_hysteresis_enable_cpus -echo 5 > /proc/sys/kernel/sched_ravg_window_nr_ticks - -# disable unfiltering -echo 20000000 > /proc/sys/kernel/sched_task_unfilter_period - -# cpuset parameters -echo 0-3 > /dev/cpuset/background/cpus -echo 0-5 > /dev/cpuset/system-background/cpus - -# Turn off scheduler boost at the end -echo 0 > /proc/sys/kernel/sched_boost - -# configure governor settings for silver cluster -echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor -echo 0 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/down_rate_limit_us -echo 0 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/up_rate_limit_us -echo 1190400 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/hispeed_freq -echo 576000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq - -# configure governor settings for gold cluster -echo "schedutil" > /sys/devices/system/cpu/cpufreq/policy6/scaling_governor -echo 0 > /sys/devices/system/cpu/cpufreq/policy6/schedutil/down_rate_limit_us -echo 0 > /sys/devices/system/cpu/cpufreq/policy6/schedutil/up_rate_limit_us -echo 1248000 > /sys/devices/system/cpu/cpufreq/policy6/schedutil/hispeed_freq -echo 768000 > /sys/devices/system/cpu/cpufreq/policy6/scaling_min_freq - -# Colocation V3 settings -echo 680000 > /sys/devices/system/cpu/cpufreq/policy0/schedutil/rtg_boost_freq -echo 0 > /sys/devices/system/cpu/cpufreq/policy6/schedutil/rtg_boost_freq -echo 51 > /proc/sys/kernel/sched_min_task_util_for_boost -echo 35 > /proc/sys/kernel/sched_min_task_util_for_colocation - -# sched_load_boost as -6 is equivalent to target load as 85. It is per cpu tunable. -echo -6 > /sys/devices/system/cpu/cpu6/sched_load_boost -echo -6 > /sys/devices/system/cpu/cpu7/sched_load_boost -echo 85 > /sys/devices/system/cpu/cpufreq/policy6/schedutil/hispeed_load - -# configure input boost settings -echo "0:1190400" > /sys/devices/system/cpu/cpu_boost/input_boost_freq -echo 120 > /sys/devices/system/cpu/cpu_boost/input_boost_ms - -# Enable bus-dcvs -for device in /sys/devices/platform/soc -do - for cpubw in $device/*cpu-cpu-ddr-bw/devfreq/*cpu-cpu-ddr-bw - do - cat $cpubw/available_frequencies | cut -d " " -f 1 > $cpubw/min_freq - echo "bw_hwmon" > $cpubw/governor - echo "1144 1720 2086 2929 3879 5931 6881 8137" > $cpubw/bw_hwmon/mbps_zones - echo 4 > $cpubw/bw_hwmon/sample_ms - echo 68 > $cpubw/bw_hwmon/io_percent - echo 20 > $cpubw/bw_hwmon/hist_memory - echo 0 > $cpubw/bw_hwmon/hyst_length - echo 80 > $cpubw/bw_hwmon/down_thres - echo 0 > $cpubw/bw_hwmon/guard_band_mbps - echo 250 > $cpubw/bw_hwmon/up_scale - echo 1600 > $cpubw/bw_hwmon/idle_mbps - echo 40 > $cpubw/polling_interval - done - - # configure compute settings for silver latfloor - for latfloor in $device/*cpu0-cpu*latfloor/devfreq/*cpu0-cpu*latfloor - do - cat $latfloor/available_frequencies | cut -d " " -f 1 > $latfloor/min_freq - echo 8 > $latfloor/polling_interval - done - - # configure compute settings for gold latfloor - for latfloor in $device/*cpu6-cpu*latfloor/devfreq/*cpu6-cpu*latfloor - do - cat $latfloor/available_frequencies | cut -d " " -f 1 > $latfloor/min_freq - echo 8 > $latfloor/polling_interval - done - - # configure mem_latency settings for DDR scaling - for memlat in $device/*lat/devfreq/*lat - do - cat $memlat/available_frequencies | cut -d " " -f 1 > $memlat/min_freq - echo 8 > $memlat/polling_interval - echo 400 > $memlat/mem_latency/ratio_ceil - done - - #Gold CPU6 L3 ratio ceil - for l3gold in $device/*cpu6-cpu-l3-lat/devfreq/*cpu6-cpu-l3-lat - do - echo 4000 > $l3gold/mem_latency/ratio_ceil - echo 25000 > $l3gold/mem_latency/wb_filter_ratio - echo 60 > $l3gold/mem_latency/wb_pct_thres - done - - #Gold CPU7 L3 ratio ceil - for l3gold in $device/*cpu7-cpu-l3-lat/devfreq/*cpu7-cpu-l3-lat - do - echo 4000 > $l3gold/mem_latency/ratio_ceil - echo 25000 > $l3gold/mem_latency/wb_filter_ratio - echo 60 > $l3gold/mem_latency/wb_pct_thres - done - -done - -echo N > /sys/module/lpm_levels/parameters/sleep_disabled - -configure_memory_parameters - -setprop vendor.post_boot.parsed 1 diff --git a/proprietary/vendor/bin/init.kernel.post_boot.sh b/proprietary/vendor/bin/init.kernel.post_boot.sh deleted file mode 100755 index 32468d9..0000000 --- a/proprietary/vendor/bin/init.kernel.post_boot.sh +++ /dev/null @@ -1,49 +0,0 @@ -#============================================================================= -# Copyright (c) 2020-2021 Qualcomm Technologies, Inc. -# All Rights Reserved. -# Confidential and Proprietary - Qualcomm Technologies, Inc. -# -# Copyright (c) 2012-2013, 2016-2020, The Linux Foundation. All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. -# * Neither the name of The Linux Foundation nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -#============================================================================= - -if [ -f /sys/devices/soc0/chip_family ]; then - chipfamily=`cat /sys/devices/soc0/chip_family` -fi - -case "$chipfamily" in - "0x73") - /vendor/bin/sh /vendor/bin/init.kernel.post_boot-holi.sh - ;; - - "0x7c") - /vendor/bin/sh /vendor/bin/init.kernel.post_boot-blair.sh - ;; - *) - echo "***WARNING***: Invalid chip family\n\t No postboot settings applied!!\n" - ;; -esac diff --git a/proprietary/vendor/etc/init/vendor.qti.hardware.perf@2.2-service.rc b/proprietary/vendor/etc/init/vendor.qti.hardware.perf@2.2-service.rc deleted file mode 100644 index 2ca0d64..0000000 --- a/proprietary/vendor/etc/init/vendor.qti.hardware.perf@2.2-service.rc +++ /dev/null @@ -1,13 +0,0 @@ -# @file vendor.qti.hardware.perf@2.2-service.rc -# @brief Defination perf service -# -# DESCRIPTION -# --------------------------------------------------------------------------- -# Copyright (c) 2019-2020 Qualcomm Technologies, Inc. -# All Rights Reserved. -# Confidential and Proprietary - Qualcomm Technologies, Inc. -# --------------------------------------------------------------------------- -service perf-hal-2-2 /vendor/bin/hw/vendor.qti.hardware.perf@2.2-service - class hal - user root - group root readproc oem_2907 diff --git a/proprietary/vendor/etc/perf/commonresourceconfigs.xml b/proprietary/vendor/etc/perf/commonresourceconfigs.xml deleted file mode 100644 index 3f40225..0000000 --- a/proprietary/vendor/etc/perf/commonresourceconfigs.xml +++ /dev/null @@ -1,299 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/proprietary/vendor/etc/perf/commonsysnodesconfigs.xml b/proprietary/vendor/etc/perf/commonsysnodesconfigs.xml deleted file mode 100644 index 22db738..0000000 --- a/proprietary/vendor/etc/perf/commonsysnodesconfigs.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/proprietary/vendor/etc/perf/perfboostsconfig.xml b/proprietary/vendor/etc/perf/perfboostsconfig.xml deleted file mode 100644 index a7052cb..0000000 --- a/proprietary/vendor/etc/perf/perfboostsconfig.xml +++ /dev/null @@ -1,520 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/proprietary/vendor/etc/perf/perfconfigstore.xml b/proprietary/vendor/etc/perf/perfconfigstore.xml deleted file mode 100644 index 87a1125..0000000 --- a/proprietary/vendor/etc/perf/perfconfigstore.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/proprietary/vendor/etc/perf/targetconfig.xml b/proprietary/vendor/etc/perf/targetconfig.xml deleted file mode 100644 index 7bc0d2a..0000000 --- a/proprietary/vendor/etc/perf/targetconfig.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/proprietary/vendor/etc/perf/targetresourceconfigs.xml b/proprietary/vendor/etc/perf/targetresourceconfigs.xml deleted file mode 100644 index 8c31a8f..0000000 --- a/proprietary/vendor/etc/perf/targetresourceconfigs.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/proprietary/vendor/etc/powerhint.xml b/proprietary/vendor/etc/powerhint.xml deleted file mode 100644 index 954836b..0000000 --- a/proprietary/vendor/etc/powerhint.xml +++ /dev/null @@ -1,636 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/proprietary/vendor/etc/task_profiles.json b/proprietary/vendor/etc/task_profiles.json deleted file mode 100644 index 60ddc45..0000000 --- a/proprietary/vendor/etc/task_profiles.json +++ /dev/null @@ -1,597 +0,0 @@ -{ - "Attributes": [ - { - "Name": "LowCapacityCPUs", - "Controller": "cpuset", - "File": "background/cpus" - }, - { - "Name": "HighCapacityCPUs", - "Controller": "cpuset", - "File": "foreground/cpus" - }, - { - "Name": "MaxCapacityCPUs", - "Controller": "cpuset", - "File": "top-app/cpus" - }, - { - "Name": "AudioAppCapacityCPUs", - "Controller": "cpuset", - "File": "audio-app/cpus" - }, - - { - "Name": "MemLimit", - "Controller": "memory", - "File": "memory.limit_in_bytes" - }, - { - "Name": "MemSoftLimit", - "Controller": "memory", - "File": "memory.soft_limit_in_bytes" - }, - { - "Name": "MemSwappiness", - "Controller": "memory", - "File": "memory.swappiness" - }, - { - "Name": "UClampMin", - "Controller": "cpu", - "File": "cpu.uclamp.min" - }, - { - "Name": "UClampMax", - "Controller": "cpu", - "File": "cpu.uclamp.max" - }, - { - "Name": "FreezerState", - "Controller": "freezer", - "File": "cgroup.freeze" - } - ], - - "Profiles": [ - { - "Name": "HighEnergySaving", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpu", - "Path": "background" - } - } - ] - }, - { - "Name": "Frozen", - "Actions": [ - { - "Name": "SetAttribute", - "Params": - { - "Name": "FreezerState", - "Value": "1" - } - } - ] - }, - { - "Name": "Unfrozen", - "Actions": [ - { - "Name": "SetAttribute", - "Params": - { - "Name": "FreezerState", - "Value": "0" - } - } - ] - }, - { - "Name": "NormalPerformance", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpu", - "Path": "" - } - } - ] - }, - { - "Name": "HighPerformance", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpu", - "Path": "foreground" - } - } - ] - }, - { - "Name": "MaxPerformance", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpu", - "Path": "top-app" - } - } - ] - }, - { - "Name": "RealtimePerformance", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpu", - "Path": "rt" - } - } - ] - }, - { - "Name": "AudioAppPerformance", - "Actions" : [ - { - "Name" : "JoinCgroup", - "Params" : - { - "Controller": "cpu", - "Path": "audio-app" - } - } - ] - }, - - { - "Name": "VrKernelCapacity", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpuset", - "Path": "" - } - } - ] - }, - { - "Name": "VrServiceCapacityLow", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpuset", - "Path": "system/background" - } - } - ] - }, - { - "Name": "VrServiceCapacityNormal", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpuset", - "Path": "system" - } - } - ] - }, - { - "Name": "VrServiceCapacityHigh", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpuset", - "Path": "system/performance" - } - } - ] - }, - { - "Name": "VrProcessCapacityLow", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpuset", - "Path": "application/background" - } - } - ] - }, - { - "Name": "VrProcessCapacityNormal", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpuset", - "Path": "application" - } - } - ] - }, - { - "Name": "VrProcessCapacityHigh", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpuset", - "Path": "application/performance" - } - } - ] - }, - - { - "Name": "ProcessCapacityLow", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpuset", - "Path": "background" - } - } - ] - }, - { - "Name": "ProcessCapacityNormal", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpuset", - "Path": "" - } - } - ] - }, - { - "Name": "ProcessCapacityHigh", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpuset", - "Path": "foreground" - } - } - ] - }, - { - "Name": "ProcessCapacityMax", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpuset", - "Path": "top-app" - } - } - ] - }, - - { - "Name": "ServiceCapacityLow", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpuset", - "Path": "system-background" - } - } - ] - }, - { - "Name": "ServiceCapacityRestricted", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpuset", - "Path": "restricted" - } - } - ] - }, - - { - "Name": "CameraServiceCapacity", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "cpuset", - "Path": "camera-daemon" - } - } - ] - }, - { - "Name": "AudioAppCapacity", - "Actions" : [ - { - "Name" : "JoinCgroup", - "Params" : - { - "Controller": "cpuset", - "Path": "audio-app" - } - } - ] - }, - - { - "Name": "BlkIOForeground", - "Actions" : [ - { - "Name" : "JoinCgroup", - "Params" : - { - "Controller": "blkio", - "Path": "" - } - } - ] - }, - { - "Name": "BlkIOBackground", - "Actions" : [ - { - "Name" : "JoinCgroup", - "Params" : - { - "Controller": "blkio", - "Path": "bg" - } - } - ] - }, - - { - "Name": "LowIoPriority", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "blkio", - "Path": "background" - } - } - ] - }, - { - "Name": "NormalIoPriority", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "blkio", - "Path": "" - } - } - ] - }, - { - "Name": "HighIoPriority", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "blkio", - "Path": "" - } - } - ] - }, - { - "Name": "MaxIoPriority", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "blkio", - "Path": "" - } - } - ] - }, - - { - "Name": "TimerSlackHigh", - "Actions": [ - { - "Name": "SetTimerSlack", - "Params": - { - "Slack": "10000000" - } - } - ] - }, - { - "Name": "TimerSlackNormal", - "Actions": [ - { - "Name": "SetTimerSlack", - "Params": - { - "Slack": "50000" - } - } - ] - }, - - { - "Name": "PerfBoost", - "Actions": [ - { - "Name": "SetClamps", - "Params": - { - "Boost": "50%", - "Clamp": "0" - } - } - ] - }, - { - "Name": "PerfClamp", - "Actions": [ - { - "Name": "SetClamps", - "Params": - { - "Boost": "0", - "Clamp": "30%" - } - } - ] - }, - - { - "Name": "LowMemoryUsage", - "Actions": [ - { - "Name": "SetAttribute", - "Params": - { - "Name": "MemSoftLimit", - "Value": "16MB" - } - }, - { - "Name": "SetAttribute", - "Params": - { - "Name": "MemSwappiness", - "Value": "150" - - } - } - ] - }, - { - "Name": "HighMemoryUsage", - "Actions": [ - { - "Name": "SetAttribute", - "Params": - { - "Name": "MemSoftLimit", - "Value": "512MB" - } - }, - { - "Name": "SetAttribute", - "Params": - { - "Name": "MemSwappiness", - "Value": "100" - } - } - ] - }, - { - "Name": "SystemMemoryProcess", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "memory", - "Path": "system" - } - } - ] - } - ], - - "AggregateProfiles": [ - { - "Name": "SCHED_SP_DEFAULT", - "Profiles": [ "TimerSlackNormal" ] - }, - { - "Name": "SCHED_SP_BACKGROUND", - "Profiles": [ "HighEnergySaving", "LowIoPriority", "TimerSlackHigh" ] - }, - { - "Name": "SCHED_SP_FOREGROUND", - "Profiles": [ "HighPerformance", "HighIoPriority", "TimerSlackNormal" ] - }, - { - "Name": "SCHED_SP_TOP_APP", - "Profiles": [ "MaxPerformance", "MaxIoPriority", "TimerSlackNormal" ] - }, - { - "Name": "SCHED_SP_RT_APP", - "Profiles": [ "RealtimePerformance", "MaxIoPriority", "TimerSlackNormal" ] - }, - { - "Name": "CPUSET_SP_DEFAULT", - "Profiles": [ "TimerSlackNormal" ] - }, - { - "Name": "CPUSET_SP_BACKGROUND", - "Profiles": [ "HighEnergySaving", "ProcessCapacityLow", "LowIoPriority", "TimerSlackHigh" ] - }, - { - "Name": "CPUSET_SP_FOREGROUND", - "Profiles": [ "HighPerformance", "ProcessCapacityHigh", "HighIoPriority", "TimerSlackNormal" ] - }, - { - "Name": "CPUSET_SP_TOP_APP", - "Profiles": [ "MaxPerformance", "ProcessCapacityMax", "MaxIoPriority", "TimerSlackNormal" ] - }, - { - "Name": "CPUSET_SP_SYSTEM", - "Profiles": [ "ServiceCapacityLow", "TimerSlackNormal" ] - }, - { - "Name": "CPUSET_SP_RESTRICTED", - "Profiles": [ "ServiceCapacityRestricted", "TimerSlackNormal" ] - } - ] -} diff --git a/proprietary/vendor/lib/libperfconfig.so b/proprietary/vendor/lib/libperfconfig.so deleted file mode 100644 index 09f6705..0000000 Binary files a/proprietary/vendor/lib/libperfconfig.so and /dev/null differ diff --git a/proprietary/vendor/lib/libperfgluelayer.so b/proprietary/vendor/lib/libperfgluelayer.so deleted file mode 100644 index ffa4e30..0000000 Binary files a/proprietary/vendor/lib/libperfgluelayer.so and /dev/null differ diff --git a/proprietary/vendor/lib/libperfioctl.so b/proprietary/vendor/lib/libperfioctl.so deleted file mode 100644 index 64077c1..0000000 Binary files a/proprietary/vendor/lib/libperfioctl.so and /dev/null differ diff --git a/proprietary/vendor/lib/libqti-perfd-client.so b/proprietary/vendor/lib/libqti-perfd-client.so deleted file mode 100644 index 43819f0..0000000 Binary files a/proprietary/vendor/lib/libqti-perfd-client.so and /dev/null differ diff --git a/proprietary/vendor/lib/libqti-perfd.so b/proprietary/vendor/lib/libqti-perfd.so deleted file mode 100644 index 2e59160..0000000 Binary files a/proprietary/vendor/lib/libqti-perfd.so and /dev/null differ diff --git a/proprietary/vendor/lib/libqti-util.so b/proprietary/vendor/lib/libqti-util.so deleted file mode 100644 index 6172470..0000000 Binary files a/proprietary/vendor/lib/libqti-util.so and /dev/null differ diff --git a/proprietary/vendor/lib/vendor.qti.memory.pasrmanager@1.0.so b/proprietary/vendor/lib/vendor.qti.memory.pasrmanager@1.0.so deleted file mode 100644 index d5ff2e2..0000000 Binary files a/proprietary/vendor/lib/vendor.qti.memory.pasrmanager@1.0.so and /dev/null differ diff --git a/proprietary/vendor/lib/vendor.qti.memory.pasrmanager@1.1.so b/proprietary/vendor/lib/vendor.qti.memory.pasrmanager@1.1.so deleted file mode 100644 index 48f5374..0000000 Binary files a/proprietary/vendor/lib/vendor.qti.memory.pasrmanager@1.1.so and /dev/null differ diff --git a/proprietary/vendor/lib64/liblearningmodule.so b/proprietary/vendor/lib64/liblearningmodule.so deleted file mode 100644 index 2a066a2..0000000 Binary files a/proprietary/vendor/lib64/liblearningmodule.so and /dev/null differ diff --git a/proprietary/vendor/lib64/libmeters.so b/proprietary/vendor/lib64/libmeters.so deleted file mode 100644 index 99edf1f..0000000 Binary files a/proprietary/vendor/lib64/libmeters.so and /dev/null differ diff --git a/proprietary/vendor/lib64/libperfconfig.so b/proprietary/vendor/lib64/libperfconfig.so deleted file mode 100644 index c24916f..0000000 Binary files a/proprietary/vendor/lib64/libperfconfig.so and /dev/null differ diff --git a/proprietary/vendor/lib64/libperfgluelayer.so b/proprietary/vendor/lib64/libperfgluelayer.so deleted file mode 100644 index 3e36fb5..0000000 Binary files a/proprietary/vendor/lib64/libperfgluelayer.so and /dev/null differ diff --git a/proprietary/vendor/lib64/libperfioctl.so b/proprietary/vendor/lib64/libperfioctl.so deleted file mode 100644 index b578891..0000000 Binary files a/proprietary/vendor/lib64/libperfioctl.so and /dev/null differ diff --git a/proprietary/vendor/lib64/libqti-iopd-client.so b/proprietary/vendor/lib64/libqti-iopd-client.so deleted file mode 100644 index 1889c18..0000000 Binary files a/proprietary/vendor/lib64/libqti-iopd-client.so and /dev/null differ diff --git a/proprietary/vendor/lib64/libqti-iopd.so b/proprietary/vendor/lib64/libqti-iopd.so deleted file mode 100644 index b9a54e0..0000000 Binary files a/proprietary/vendor/lib64/libqti-iopd.so and /dev/null differ diff --git a/proprietary/vendor/lib64/libqti-perfd-client.so b/proprietary/vendor/lib64/libqti-perfd-client.so deleted file mode 100644 index 718427e..0000000 Binary files a/proprietary/vendor/lib64/libqti-perfd-client.so and /dev/null differ diff --git a/proprietary/vendor/lib64/libqti-perfd.so b/proprietary/vendor/lib64/libqti-perfd.so deleted file mode 100644 index fd0a05e..0000000 Binary files a/proprietary/vendor/lib64/libqti-perfd.so and /dev/null differ diff --git a/proprietary/vendor/lib64/libqti-util.so b/proprietary/vendor/lib64/libqti-util.so deleted file mode 100644 index 01e60af..0000000 Binary files a/proprietary/vendor/lib64/libqti-util.so and /dev/null differ diff --git a/proprietary/vendor/lib64/vendor.qti.hardware.iop@1.0.so b/proprietary/vendor/lib64/vendor.qti.hardware.iop@1.0.so deleted file mode 100644 index 6475125..0000000 Binary files a/proprietary/vendor/lib64/vendor.qti.hardware.iop@1.0.so and /dev/null differ diff --git a/proprietary/vendor/lib64/vendor.qti.hardware.iop@2.0.so b/proprietary/vendor/lib64/vendor.qti.hardware.iop@2.0.so deleted file mode 100644 index 4120557..0000000 Binary files a/proprietary/vendor/lib64/vendor.qti.hardware.iop@2.0.so and /dev/null differ diff --git a/proprietary/vendor/lib64/vendor.qti.memory.pasrmanager@1.0.so b/proprietary/vendor/lib64/vendor.qti.memory.pasrmanager@1.0.so deleted file mode 100644 index 236d840..0000000 Binary files a/proprietary/vendor/lib64/vendor.qti.memory.pasrmanager@1.0.so and /dev/null differ diff --git a/proprietary/vendor/lib64/vendor.qti.memory.pasrmanager@1.1.so b/proprietary/vendor/lib64/vendor.qti.memory.pasrmanager@1.1.so deleted file mode 100644 index 0efbe19..0000000 Binary files a/proprietary/vendor/lib64/vendor.qti.memory.pasrmanager@1.1.so and /dev/null differ diff --git a/sm6375-common-vendor.mk b/sm6375-common-vendor.mk index a242e40..ee185ed 100644 --- a/sm6375-common-vendor.mk +++ b/sm6375-common-vendor.mk @@ -103,7 +103,6 @@ PRODUCT_COPY_FILES += \ vendor/motorola/sm6375-common/proprietary/vendor/etc/init/vendor.qti.hardware.charger_monitor@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.hardware.charger_monitor@1.0-service.rc \ vendor/motorola/sm6375-common/proprietary/vendor/etc/init/vendor.qti.hardware.dsp@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.hardware.dsp@1.0-service.rc \ vendor/motorola/sm6375-common/proprietary/vendor/etc/init/vendor.qti.hardware.eid@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.hardware.eid@1.0-service.rc \ - vendor/motorola/sm6375-common/proprietary/vendor/etc/init/vendor.qti.hardware.perf@2.2-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.hardware.perf@2.2-service.rc \ vendor/motorola/sm6375-common/proprietary/vendor/etc/init/vendor.qti.hardware.sensorscalibrate@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.hardware.sensorscalibrate@1.0-service.rc \ vendor/motorola/sm6375-common/proprietary/vendor/etc/init/vendor.qti.hardware.servicetracker@1.2-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.hardware.servicetracker@1.2-service.rc \ vendor/motorola/sm6375-common/proprietary/vendor/etc/init/vendor.qti.hardware.soter@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.hardware.soter@1.0-service.rc \ @@ -117,14 +116,7 @@ PRODUCT_COPY_FILES += \ vendor/motorola/sm6375-common/proprietary/vendor/etc/media_blair/video_system_specs.json:$(TARGET_COPY_OUT_VENDOR)/etc/media_blair/video_system_specs.json \ vendor/motorola/sm6375-common/proprietary/vendor/etc/media_holi/video_system_specs.json:$(TARGET_COPY_OUT_VENDOR)/etc/media_holi/video_system_specs.json \ vendor/motorola/sm6375-common/proprietary/vendor/etc/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \ - vendor/motorola/sm6375-common/proprietary/vendor/etc/perf/commonresourceconfigs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/commonresourceconfigs.xml \ - vendor/motorola/sm6375-common/proprietary/vendor/etc/perf/commonsysnodesconfigs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/commonsysnodesconfigs.xml \ - vendor/motorola/sm6375-common/proprietary/vendor/etc/perf/perfboostsconfig.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/perfboostsconfig.xml \ - vendor/motorola/sm6375-common/proprietary/vendor/etc/perf/perfconfigstore.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/perfconfigstore.xml \ - vendor/motorola/sm6375-common/proprietary/vendor/etc/perf/targetconfig.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/targetconfig.xml \ - vendor/motorola/sm6375-common/proprietary/vendor/etc/perf/targetresourceconfigs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/targetresourceconfigs.xml \ vendor/motorola/sm6375-common/proprietary/vendor/etc/permissions/vendor-qti-hardware-sensorscalibrate.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/vendor-qti-hardware-sensorscalibrate.xml \ - vendor/motorola/sm6375-common/proprietary/vendor/etc/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml \ vendor/motorola/sm6375-common/proprietary/vendor/etc/qcril_database/upgrade/config/10.0_config.sql:$(TARGET_COPY_OUT_VENDOR)/etc/qcril_database/upgrade/config/10.0_config.sql \ vendor/motorola/sm6375-common/proprietary/vendor/etc/qcril_database/upgrade/config/11.0_config.sql:$(TARGET_COPY_OUT_VENDOR)/etc/qcril_database/upgrade/config/11.0_config.sql \ vendor/motorola/sm6375-common/proprietary/vendor/etc/qcril_database/upgrade/config/12.0_config.sql:$(TARGET_COPY_OUT_VENDOR)/etc/qcril_database/upgrade/config/12.0_config.sql \ @@ -202,7 +194,6 @@ PRODUCT_COPY_FILES += \ vendor/motorola/sm6375-common/proprietary/vendor/etc/snapdragon_color_libs_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/snapdragon_color_libs_config.xml \ vendor/motorola/sm6375-common/proprietary/vendor/etc/ssg/ta_config.json:$(TARGET_COPY_OUT_VENDOR)/etc/ssg/ta_config.json \ vendor/motorola/sm6375-common/proprietary/vendor/etc/ssg/tz_whitelist.json:$(TARGET_COPY_OUT_VENDOR)/etc/ssg/tz_whitelist.json \ - vendor/motorola/sm6375-common/proprietary/vendor/etc/task_profiles.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json \ vendor/motorola/sm6375-common/proprietary/vendor/etc/wfdconfig.xml:$(TARGET_COPY_OUT_VENDOR)/etc/wfdconfig.xml \ vendor/motorola/sm6375-common/proprietary/vendor/etc/wifi/aoa_cldb_falcon.bin:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/aoa_cldb_falcon.bin \ vendor/motorola/sm6375-common/proprietary/vendor/etc/wifi/aoa_cldb_swl14.bin:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/aoa_cldb_swl14.bin \ @@ -390,9 +381,6 @@ PRODUCT_PACKAGES += \ libmmosal_vendor \ libmulawdec \ libnetmgr \ - libperfconfig \ - libperfgluelayer \ - libperfioctl \ libqcci_legacy \ libqcmaputils \ libqdi \ @@ -406,9 +394,6 @@ PRODUCT_PACKAGES += \ libqmi_encdec \ libqmi_legacy \ libqmiservices \ - libqti-perfd-client \ - libqti-perfd \ - libqti-util \ libqtigef \ libscveCommon \ libscveCommon_stub \ @@ -435,8 +420,6 @@ PRODUCT_PACKAGES += \ vendor.qti.hardware.vpp@1.3 \ vendor.qti.hardware.vpp@2.0 \ vendor.qti.hardware.wifidisplaysession@1.0_vendor \ - vendor.qti.memory.pasrmanager@1.0 \ - vendor.qti.memory.pasrmanager@1.1 \ vendor.qti.qspmhal@1.0_vendor \ libDxHdcp \ libFileMux_proprietary \ @@ -539,7 +522,6 @@ PRODUCT_PACKAGES += \ libkeymasterprovision \ libkeymasterutils \ liblbs_core \ - liblearningmodule \ libloadalgo_stub \ libloc_api_v02 \ libloc_api_wds \ @@ -549,7 +531,6 @@ PRODUCT_PACKAGES += \ liblowi_client \ liblqe \ libmdmcutback \ - libmeters \ libminkdescriptor \ libminksocket \ libmotext_inf \ @@ -576,8 +557,6 @@ PRODUCT_PACKAGES += \ libqrtrclient \ libqseed3 \ libqsocket \ - libqti-iopd-client \ - libqti-iopd \ libqtikeymaster4 \ librcc \ librcmask \ @@ -657,8 +636,6 @@ PRODUCT_PACKAGES += \ vendor.qti.hardware.data.qmi@1.0 \ vendor.qti.hardware.eid@1.0 \ vendor.qti.hardware.fm@1.0_vendor \ - vendor.qti.hardware.iop@1.0 \ - vendor.qti.hardware.iop@2.0 \ vendor.qti.hardware.mwqemadapter@1.0 \ vendor.qti.hardware.qccsyshal@1.0 \ vendor.qti.hardware.qteeconnector@1.0 \ @@ -852,16 +829,12 @@ PRODUCT_PACKAGES += \ vendor.qti.hardware.alarm@1.0-service \ vendor.qti.hardware.capabilityconfigstore@1.0-service \ vendor.qti.hardware.eid@1.0-service \ - vendor.qti.hardware.perf@2.2-service \ vendor.qti.hardware.sensorscalibrate@1.0-service \ vendor.qti.hardware.servicetracker@1.2-service \ vendor.qti.hardware.soter@1.0-service \ vendor.qti.media.c2@1.0-service \ ims_rtp_daemon \ imsdaemon \ - init.kernel.post_boot-blair \ - init.kernel.post_boot-holi \ - init.kernel.post_boot \ init.qcom.sensors \ init.qti.chg_policy \ init.qti.kernel \