nx: migrate to perfmgr OSS power HAL

- Exercise greater control over hinting, power profiles, specific
  behavior, etc.
- Better support in the future vs maintaining phs
- Totally nuke nvcpl to remove variables in display handling and
  power profiles

Change-Id: If9076248fcacfdc8165bd814ad78786134997b97
This commit is contained in:
tmakin authored and Nolen Johnson committed 2025-02-14 12:52:37 -05:00
1 parent d33f7e37f9
commit 6fe016e60e
9 files changed
+675 -63

No files matched your search

+9
View File
@@ -21,11 +21,20 @@ import /vendor/etc/init/hw/init.${ro.boot.hardware.sku}.rc
on init
setprop ro.surface_flinger.primary_display_orientation ORIENTATION_270
setprop ro.boot.secureos none
setprop vendor.powerhal.config powerhint.${ro.boot.hardware.sku}.json
on fs
mount_all /vendor/etc/fstab.nx
swapon_all /vendor/etc/fstab.nx
on post-fs-data
chmod 0664 /sys/devices/57000000.gpu/devfreq/57000000.gpu/max_freq
chown system system /sys/devices/57000000.gpu/devfreq/57000000.gpu/max_freq
chmod 0664 /sys/devices/57000000.gpu/devfreq/57000000.gpu/min_freq
chown system system /sys/devices/57000000.gpu/devfreq/57000000.gpu/min_freq
chmod 0666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
on boot
write /sys/devices/system/cpu/cpufreq/schedutil/up_rate_limit_us 500
write /sys/module/input_cfboost/parameters/boost_gpu 460800