Commit graph

98 commits

Author SHA1 Message Date
TeYuan Wang
879b29aea1 thermal: allow system to overwrite the usb_pwr_therm's trip point
Bug: 222577017
Test: ls -al /dev/thermal/tz-by-name/usb_pwr_therm/
Change-Id: Ic7807bb67808a55e56ae65367729d083df672225
2022-05-24 17:24:41 +00:00
Richard Chang
029b9e210f Support Vendor System Native Experiment for cpusets
Let vendor_init adjusted the cpusets by device config from the
server. Allow us to study the performance and power impacts
by various experiment settings.

Bug: 223685902
Test: adb remount ; adb push <init.xxx.rc> /vendor/etc/hw/ ; adb reboot
Test: change persist.device_config.vendor_system_native.<group>_cpuset and check /dev/cpuset/<group>/cpus is also modified
Change-Id: Ie8470f05aacff27d89d276468d78ab32349dbfd2
2022-05-23 06:06:15 +00:00
Wei Wang
3d3d140f4f Remove group_throttle setting
Test: Build
Bug: 233149512
Change-Id: I2416e5d1a401ba401407e46754fa33cacba6942d
Signed-off-by: Wei Wang <wvw@google.com>
2022-05-19 14:29:56 +00:00
chungkai
64dfe98a5c devfreq: reset ddr freq after boot
to reduce boot time, boost ddr freq when booting
and reset it after booting.

Bug: 230581379
Test: pass
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: Iaac39e3ad6d5950b1c9676966187eaa13affab7f
2022-05-13 06:39:41 +00:00
Taeju Park
3af716da5c Tune PMU frequency limit parameters
Bug: 223688700
Signed-off-by: Taeju Park <taeju@google.com>
Change-Id: I19e20e846fb68be4e89a966cc4f1381be151bede
2022-05-12 22:38:18 +00:00
Labib
18b07ba7ee Change sysfs file group to allow write from RadioExt am: 1ca9284256
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17955931

Change-Id: Ieb2105c634bda3f00d8fc5ec7cbe8f38a40074bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-03 05:07:36 +00:00
Labib
1ca9284256 Change sysfs file group to allow write from RadioExt
Bug: 212601547
Test: Manual
Change-Id: Ie1638265072cc395e7292570dae2a7aadb4d20bb
2022-05-03 01:14:09 +00:00
Stephane Lee
226081edcb Add thermal stats permissions for clearing
Bug: 227199213
Test: echo 2 > /dev/thermal/cdev-by-name/dc_icl/cur_state
   Verify logcat | grep pixelstats. Ensure there are no errors
Change-Id: I72f3f9d5fd39c18bba8d4bdb023c7b9eecf6a691
2022-04-28 02:16:10 +00:00
George Lee
91793f54da bcl: Update correct vdroop threshold voltage
Bug: 230393895
Test: Boot and confirm correct settings loaded
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Iab7748f082d5e0262ab6e53f7ed6742e113e7328
2022-04-26 23:07:55 +00:00
Sayanna Chandula
aba15a7cb6 thermal: enable thermal engine for evt1.0 devices
Currently thermal engine is disabled on A0 based devices using a
separate config file, thermal_info_config-A0.json.
This change removes that restriction so that thermal engine can
be enabled for EVT1.0 devices using device specific rc file.

Bug: 196478280
Test: Build and boot on device. Check thermal config
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: I2171f38802b3770317dfb9a3b2106e613c0ccdb4
2022-04-25 18:20:58 +00:00
SalmaxChang
63024e0a54 init: restorecon modem persist file
Relabel the selinux context of modem persist file

Bug: 230289342
Change-Id: I04248cac4a247d6376686a6451251da3799cf64b
2022-04-25 14:15:30 +00:00
chungkai
201c33ad90 init: update new boost rt uclamp value
update new boost uclamp value since we update
cpu capacity

Bug: 224649226
Test: pass
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I2a6211d18af69f5a7269d389c76e43337e5f0c35
2022-04-22 16:02:13 +00:00
leohsieh
b51698c4a9 UDFPS: Configure permission for display file node.
Configure permission to get display DDIC chip id.

Bug: 228302164
Test: Verify system process can write to the node.
Change-Id: I647f6d27848d96a8639560616edc7c71a4e49aa9
2022-04-22 05:11:32 +00:00
Stephane Lee
192b1f4640 ODPM: Fix rail selection file permissions am: 87b68b782d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17663345

Change-Id: Id21d7379e0bc6a539ee9a08f5771f6578635a846
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 09:40:07 +00:00
Stephane Lee
87b68b782d ODPM: Fix rail selection file permissions
Test: Ensure that enabled_rails has system/system permissions
Bug: 228112997
Change-Id: I9627b35c6294aefb98e0e957f2a6b64aab0c2ae1
2022-04-21 09:18:50 +00:00
TeYuan Wang
51bffd2371 thermal: Apply thermalhal PID 2.0
Bug: 196478280
Test: build
Change-Id: I59efbf09ee9a8584f0083db9f15924470f253479
2022-04-20 15:37:48 +00:00
Sayanna Chandula
44d8473a94 thermal: modify permissions for usbc-port state change
Allow system components to change usbc-port cooling device state.

Bug: 222577017
Test: Build and boot on device
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: Ib7e86d95a73086acd295a7ab2fbc76a3fa5f990a
2022-04-12 21:49:02 +00:00
Kevin DuBois
7301b9e6bc gpu: enable IFPO for gpu power savings.
Enables GPU driver's IFPO feature which will power gate GPU more often
during interframe periods.

Bug: 225179786
Test: SST on build with fix.
Change-Id: I8da3106edb5dfe078a21d8047557948fb75ab20a
2022-04-11 15:35:52 +00:00
Taeju Park
3f98ebc83e Disable PMU freq limit in default am: 7eefb31fcd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17499319

Change-Id: I966468cfbaa6523b8008b384b7a781c1135e17ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-08 06:20:54 +00:00
Taeju Park
7eefb31fcd Disable PMU freq limit in default
Bug: 223688700
Signed-off-by: Taeju Park <taeju@google.com>
Change-Id: I8f1e583d3208d7cc7191a5601049118aca2e1d6e
2022-04-08 05:54:48 +00:00
Stephane Lee
a4e82d4f45 ODPM: Fix rail selection file permissions am: 2ac03d73b3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17640732

Change-Id: Ibe415c289231108925a59df9127b3446c6cf40ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-08 02:53:52 +00:00
Stephane Lee
2ac03d73b3 ODPM: Fix rail selection file permissions
Test: Ensure that enabled_rails has system/system permissions
Bug: 228112997
Change-Id: I8a9db20276e75af57c27cba7b25ac3661364329d
(cherry picked from commit 5063a9afbf)
2022-04-08 02:49:40 +00:00
Sam Dubey
81188f4bff Revert "ODPM: Fix rail selection file permissions" am: fc62bbc886
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17622579

Change-Id: If21e6cb727af3c0f2e5a9404d3680c76a39e7a26
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-07 13:26:31 +00:00
Sam Dubey
fc62bbc886 Revert "ODPM: Fix rail selection file permissions"
This reverts commit dc0d3c1b05.

Reason for revert: Breaking linux denials check

Bug: 228414883
Change-Id: If80be482eadc75e9f0cae794a1d8aec5f33f4492
2022-04-07 13:04:21 +00:00
Stephane Lee
6126031aa9 ODPM: Fix rail selection file permissions am: dc0d3c1b05
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17621812

Change-Id: Idb7a7e2d1ae3c8df7c4a2c402a85e64c6ac2daf1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-07 04:36:43 +00:00
Stephane Lee
dc0d3c1b05 ODPM: Fix rail selection file permissions
Test: Ensure that enabled_rails has system/system permissions
Bug: 228112997
Change-Id: I2fc58c7c504f4a18ee2245569258d52dc42da680
(cherry picked from commit 5063a9afbf)
2022-04-07 00:45:23 +00:00
Sayanna Chandula
14b3315633 thermal: Reconfigure GPU DFS clock to divide by 4
Program the GPU Light register to make clock divider to be divided
by 4

Bug: 223909471
Test: Local test to verify register value
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: If6b3fe9d6cd73cd110e1b6c123b2925c261b5b2a
2022-04-06 18:52:41 +00:00
TeYuan Wang
5c95b36ea8 thermal: provide chg_mdis permission for thermalHAL
Bug: 226130317
Test: ls -al dev/thermal/cdev-by-name/chg_mdis/cur_state
Change-Id: Id0681d66f33f94baed52f67aea63270a6875ac14
2022-04-06 01:55:13 +00:00
George Lee
ea926b06e2 thermal: Reconfigure DFS Clock to divide by 4
1. Reconfigure DFS clock divider to divide by 4.
2. OCP_WARN_CPU2 was repurposed for DFS usage.  Since SOFT_OCP_WARN_CPU2
was not used by BCL, it will be repurposed to replace OCP_WARN_CPU2.

Bug: 223909471
Test: Local test to verify register value
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Ie9960c30b102d67f0ade156631386b656ff82790
2022-04-01 18:34:58 +00:00
TeYuan Wang
6f00cd7be1 bcl: modify batoilo trip_point_0 permission for thermalHAL
Bug: 222017625
Test: adb shell ls -al dev/thermal/tz-by-name/batoilo/trip_point_0*
Change-Id: Ie8d122a8b70bd4f975e586733f5f2a74c46cdaa9
2022-03-30 06:12:12 +00:00
chungkai
1a05b6dc70 init: add uclamp threshold setting
To filter tiny task, add uclamp threshold setting

Test: build and boot pass
Bug: 214098855
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: Ib8f20a8d0134eff972084cd72a2975d7f778d539
2022-03-30 03:49:30 +00:00
Rick Yiu
3c9226acc7 Change file permission for perfer_idle
Sync permission to other nodes.

Bug: 224637637
Test: build pass
Change-Id: I5e9d4dab6bdb94ad2ca8dd4bb6e52bff72f8b6ee
2022-03-29 10:25:06 +00:00
Ken Tsou
ee38fc1122 battery: Enable Battery Defender
Sync with ag/14540731 to fix the wrong path.
BatteryDefender: Failed to write /sys/devices/platform/soc/soc:google,charger/charge_start_level
BatteryDefender: Failed to write /sys/devices/platform/soc/soc:google,charger/charge_stop_level

Bug: 222008498
Change-Id: I4782e2c387b147fc48cf4134d27af8675964dc44
Signed-off-by: Ken Tsou <kentsou@google.com>
2022-03-25 03:08:25 +00:00
chungkai
b586e0609f sched: move sysfs to procfs
Modify the path of vendor_sched nodes

Test: work normally
Bug: 216207007
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: Ib239ec8bbff66a7f25205eff68c0213cc6b62d69
2022-03-24 17:44:37 +00:00
SalmaxChang
602c38c63f conf: support to mount modem erofs image
- Create fstab.modem for modem as flexibility.
- Add and support both erofs and ext4 images for compatibility.

Bug: 201348703
Change-Id: Idc6dd8ef8f044c764f2811469806ee9e6defb87f
2022-03-17 05:56:33 +00:00
Jaegeuk Kim
6d4913e3c7 Remove discard command tuning
This is done by rootdir/init.rc.

Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I939c97aa2cd2ee271f05053eea0af006f6c9b8a1
2022-03-17 03:22:07 +00:00
Randall Huang
3bec1149e8 UFS: enable UFS clock gating when off mode charging
Avoid high UFS power consumption

Bug: 224888044
Test: check clkgate_enable in uart console
Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: Ie5504a259621a8661133eebd8f574d5af2809abb
2022-03-16 16:50:46 +00:00
Denny cy Lee
f9c2f03287 Pixelstats: porting from p21
Bug: 222019890
Bug: 222657999
Test: check debug logcat in pixelstat, HardwareInfo
Change-Id: I110a2b2713b6c27e23418569bb8d1b726af07b95
2022-03-15 03:09:18 +00:00
Midas Chien
93fdc4704e display: make early wakeup node is readable
Bug: 221384860
Test: cat node
Change-Id: I69fe93f467c12e009e97d6f953ba404bec558834
2022-03-14 18:30:42 +00:00
George Lee
5d2540b63c bcl: Increase hardware clock divider count
By increasing hardware clock divider count, we do not need to throttle
as hard to mitigate for brownout.

Bug: 221070649
Test: Local stress test to ensure no brownout.
Signed-off-by: George Lee <geolee@google.com>
Change-Id: If130d477f617c0e62efa5f35effa122b60253107
2022-03-10 20:17:32 +00:00
Midas Chien
a7b2be93d0 display: allow composer to access panel idle handle exit node
Bug: 202182467
Test: composer can access panel idle handle exit node
Change-Id: I1d117ba50871e633d044b4c8bb25da14df506b66
2022-03-04 06:55:04 +00:00
Rick Yiu
34cad67219 Support SetProcessProfiles for vendor groups
Add ProcFilePath for vendor group change of a process.

Bug: 218684257
Test: function works
Change-Id: I2d87a1a5d27dee699b37de6fac8d8b52334ba54e
2022-03-01 04:32:22 +00:00
Midas Chien
e542e25078 display: allow composer to access panel idle node
Change panel idle node ownership to allow composer to access.

Bug: 198808492
Test: init and composer can write to panel idle node
Change-Id: I9fd7fe752cfe0694216d608765c4647dd3c00b95
2022-02-17 09:17:42 +00:00
Ted Lin
805826c2cc fix the avc denied for maxfg/registers
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:28): avc: denied { search } for name="maxfg" dev="debugfs" ino=31872 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=dir permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:29): avc: denied { read } for name="registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:30): avc: denied { open } for path="/sys/kernel/debug/maxfg/registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo
01-13 11:02:39.148 10124 10045 10045 I id.hardwareinfo: type=1400 audit(0.0:31): avc: denied { getattr } for path="/sys/kernel/debug/maxfg/registers" dev="debugfs" ino=31885 scontext=u:r:hardware_info_app:s0:c512,c768 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=1 app=com.google.android.hardwareinfo

Bug: 208909060
Test: adb bugreport
Change-Id: I72a6b72e568fe109350edd2a0a91747251e6fba4
Signed-off-by: Ted Lin <tedlin@google.com>
2022-02-17 09:04:23 +00:00
TeYuan Wang
ae8e17631b thermal: provide gxp-cooling user_vote permission for thermalHAL
Bug: 219869479
Test: ls -al dev/thermal/cdev-by-name/gxp-cooling/user_vote
Change-Id: Id11ad3cb6b1770cbaffb760feaad571c678a22df
2022-02-16 19:34:39 +00:00
Sayanna Chandula
589318e5c4 thermal: enable cooling devices cur state permissions
Enable permissions for wcl_fcc and dc_icl cooling devices
current state for charging throttling.

Bug: 204523879
Test: build and boot on device. Check charging throttling
Change-Id: Icf175bd270d0eb6a9d2adcde2199b034683a8b8f
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-02-15 05:10:46 +00:00
Rick Yiu
1b0d78ac5b Sync vendor task_profiles and init rc file
Sync the settings from P21.

Bug: 207573268
Test: build pass
Change-Id: Ia6f761c6247522707d34888347bec6736c227e9e
2022-02-11 13:47:55 +00:00
Kris Chen
0567190969 Configure permission for AOC UDFPS sysfs node.
Bug: 205242782
Bug: 215044794
Test: Verify system process can read/write to the node.
Change-Id: Iecadeb47e08abf300ccd93eb8e95c91eb3195fd2
2022-02-11 02:43:14 +00:00
George Lee
5f5dbb824b thermal: enable gpu/tpu permission for user_vote
Bug: 215814890
Test: Local test to verify permission
Signed-off-by: George Lee <geolee@google.com>

Change-Id: I09d3d9bc5033ba2f31adbb34fa8969dc75a767bc
2022-01-28 23:48:56 +00:00
Kai Shi
fda5286dd1 Increase TCP wmem max size
Increase TCP wmem max size to allow high Tx throughput over wifi.

Bug: 213596972
Test: manual test to confirm TCP memory size is increased and wifi TCP throughput with default TCP window size can reach 700Mbps in HE80 mode.
Change-Id: Id1f6ea94da83825ca39093aba5c85bec5bee4a72
2022-01-26 17:15:38 +00:00