71c49fcc8c
Change-Id: I42170d51a517170b58d532addd9c38496e43457c jasmine_sprout: Remove QTI perfd Bug: 69270928 Test: Build and boot device and test camera Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4 jasmine_sprout: Declare BOARD_VENDOR * Needed for xiaomi-perfmgr power AIDL guards Change-Id: Idbb48e0f9b01090a456ad5d3f2d51f4dfab55672 jasmine_sprout: Create dummy libqti-perfd-client * proprietary perfd blobs can finally be nuked without breaking goodix * we could even map the functions to use libperfmgr powerhints in the future [SebaUbuntu]: Cleanup Android.bp and add copyright header Change-Id: I124652f3041761966a3e3bd97c757fecc39cc5fb jasmine_sprout: libqti-perfd-client: Remove namespace declaration It's pointless when using extern "C". Change-Id: Ibdf9f06a70aa3a75687b33781c78cf2172bb334d jasmine_sprout: libqti-perfd-client: return a dummy value Return a positive integer for perf lock acquire and release so that Goodix/FPC fingerprint sensor blobs will not complain. Goodix: E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_acquire: Failed to acquire perf lock, err: 0 E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_release: Perf lock release error 0 FPC: E fpc_tac : fpc_perf_lock_acquire: Incorrect params, Failed to acquire perf lock, err E fpc_tac : fpc_perf_lock_release: Perf lock release error 0 Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com> Change-Id: I861672e9a738c2204755d802670f4b28b662f286 jasmine_sprout: libqti-perfd-client: Move to C * Why bothering with C++ mangling when we can just build it as a standard C library? Change-Id: I45ea977edf7ea7fab6fece76f3049654a8d24c5d jasmine_sprout: Add powerhint.json jasmine Change-Id: If270fc906fd833bb6b0d3b00621c0b079346e47d jasmine_sprout: rootdir: Initial libperfmgr init config * From coral, heavily stripped down Change-Id: Ib6846e4f4f23baf56910d2330e26846b99830218 jasmine_sprout: sepolicy: Initial libperfmgr sepolicy Change-Id: I3d0a259bc89b4ecd0bf1632199172710d98230e0 jasmine_sprout: Don't explicitly build older minor version HIDL libs Change-Id: Ib0caa49054a79b1f01ffc751826286a29c642e06 jasmine_sprout: Remove QTI perf reminants jasmine_sprout: Add back ro.vendor.extension_library definition * We aren't using QCOM's perfd but our blobs still check for this. * To avoid unnecessary errors, let's just add it back. Change-Id: Icc44b330f21a658cfa8ded691a6628d8f62c3649 Signed-off-by: pix106 <sbordenave@gmail.com>
99 lines
No EOL
4.1 KiB
Text
99 lines
No EOL
4.1 KiB
Text
# 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 BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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.
|
|
#
|
|
|
|
on enable-low-power
|
|
# Enable PowerHAL hint processing
|
|
setprop vendor.powerhal.init 1
|
|
|
|
on property:init.svc.recovery=running
|
|
trigger enable-low-power
|
|
|
|
on property:sys.boot_completed=1
|
|
trigger enable-low-power
|
|
|
|
# Runtime fs tuning
|
|
write /sys/block/sda/queue/nr_requests 128
|
|
write /sys/block/sda/queue/iostats 1
|
|
|
|
# Block layer tuning: discard chunk size up to 128MB
|
|
# Otherwise, contiguous discards can be merged
|
|
write /sys/block/sda/queue/discard_max_bytes 134217728
|
|
|
|
# Back to default VM settings
|
|
write /proc/sys/vm/dirty_expire_centisecs 3000
|
|
write /proc/sys/vm/dirty_background_ratio 10
|
|
|
|
# Setup runtime cpusets
|
|
write /dev/cpuset/top-app/cpus 0-7
|
|
write /dev/cpuset/foreground/cpus 0-3,5-6
|
|
write /dev/cpuset/background/cpus 0-1
|
|
write /dev/cpuset/system-background/cpus 0-3
|
|
write /dev/cpuset/restricted/cpus 0-3
|
|
|
|
# Setup runtime blkio
|
|
# value for group_idle is us
|
|
write /dev/blkio/blkio.weight 1000
|
|
write /dev/blkio/background/blkio.weight 200
|
|
write /dev/blkio/blkio.group_idle 2000
|
|
write /dev/blkio/background/blkio.group_idle 0
|
|
|
|
on early-init
|
|
# configure governor settings
|
|
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor schedutil
|
|
write /sys/devices/system/cpu/cpu0/cpufreq/schedutil/up_rate_limit_us 500
|
|
write /sys/devices/system/cpu/cpu0/cpufreq/schedutil/down_rate_limit_us 20000
|
|
|
|
on init
|
|
# Boot time cpuset and stune
|
|
write /dev/cpuset/top-app/cpus 0-7
|
|
write /dev/cpuset/foreground/cpus 0-7
|
|
write /dev/cpuset/background/cpus 0-5
|
|
write /dev/cpuset/system-background/cpus 0-5
|
|
write /dev/cpuset/restricted/cpus 2-5
|
|
|
|
# Boot time fs tuning
|
|
write /sys/block/sda/queue/iostats 0
|
|
write /sys/block/sda/queue/scheduler cfq
|
|
write /sys/block/sda/queue/iosched/slice_idle 0
|
|
write /sys/block/sda/queue/nr_requests 256
|
|
|
|
# Disable powersaving
|
|
write /sys/module/lpm_levels/parameters/sleep_disabled 1
|
|
|
|
# bring back all cores
|
|
write /sys/devices/system/cpu/cpu0/online 1
|
|
write /sys/devices/system/cpu/cpu1/online 1
|
|
write /sys/devices/system/cpu/cpu2/online 1
|
|
write /sys/devices/system/cpu/cpu3/online 1
|
|
write /sys/devices/system/cpu/cpu4/online 1
|
|
write /sys/devices/system/cpu/cpu5/online 1
|
|
write /sys/devices/system/cpu/cpu6/online 1
|
|
write /sys/devices/system/cpu/cpu7/online 1
|
|
|
|
# report max frequency to unity tasks.
|
|
write /proc/sys/kernel/sched_lib_name "UnityMain,libunity.so"
|
|
write /proc/sys/kernel/sched_lib_mask_force 255 |