Commit graph

149 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
Jaegeuk Kim
453105b5cc Revert "use erofs for RO partitions" am: 0c024a7f2b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18494501

Change-Id: If2a1d4fde080cd0c838494812933196e1114abf2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-23 22:31:03 +00:00
Jaegeuk Kim
0c024a7f2b Revert "use erofs for RO partitions"
This reverts commit 554e90c439.

It turned out EROFS has app-launch time regression.

FS			Total image	App-launch	OTA size (MB)
			    size (MB)	    Time (AVG)
ext4			4040 (0%)	403.77		2252
erofs (compression)	2754 (-32%)	540.98 (+34%)	2528 (+12%)
erofs (no-compression)	4126 (+2%)	476.23 (+18%)	2277 (+1%)

Bug: 231934752
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I33f68a426ff655a9282fec66c0fa54215954aa45
Merged-In: I33f68a426ff655a9282fec66c0fa54215954aa45
2022-05-23 21:00:19 +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
Kyle Tso
1c35126bb5 usb: Modify the controller name am: ef25209b6b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17903535

Change-Id: I303aa390cba705108c59f98bc00dd8814b956ac7
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-25 02:13:22 +00:00
Kyle Tso
ef25209b6b usb: Modify the controller name
The name is 11210000.dwc3.

Bug: 229960483
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I671efc2e07b7057220b190181b0ef1bcef1e0dd4
2022-04-25 01:37:42 +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
Ray Chi
7be02c0708 usb: remove set_usb_irq script for irq change
Since the dwc3 irq is moved by USB gadget hal now, the
script is not needed.

Bug: 225789036
Test: build pass
Change-Id: I42299d30df5343f06be810870c61c5cff3e41df2
2022-03-30 04:42:16 +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
Nishok Kumar S
f980e770bd ueventd: Modify gxp device permission to allow GCA app to access GXP
device.

This is required to allow GCA app to access GXP
device. This is separate from selinux policies, which have already
been added to regulate access to GXP device.

Test: Run GCAEng
Bug: 223088240
Change-Id: I78b97e61c569c47771b528d8c8a4cd0e7d8a54b0
2022-03-28 08:59:19 +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
Omer Osman
b1a1796c47 Enable /dev/hidraw along with the appropriate group permisssions
Test: Incoming HID data from Pixel Buds
Change-Id: I5934f1244f5dda8b169cdd85103b41446c81964a
2022-03-24 19:05:45 +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
Jaegeuk Kim
975370904a Enable COMPRESS CACHE in f2fs
Bug: 222321709
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ia10007c678ea640d00c2fe0438218707d5fd7ce8
2022-03-16 18:24:09 +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
Ryan Chu
1f95aca935 factory: update owner and group for root
Update the exec root owner and group for factory_post_boot

Bug: 222226268
Test: pidx=`adb shell pidof adbd` && adb shell cat proc/$pidx/task/$pidx/sched | grep "adbd \|effective uclamp.min"
Change-Id: I7ad3fc9f2db8bd4d6f4c3d2fdf1de1abc0ddcb16
2022-03-16 06:56:14 +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
Nishok Kumar S
37c514bbcf ueventd: Add gxp device with system group read write permission
Test: adb shell setprop persist.vendor.camera.blur_refine.enable_dsp 1
      adb shell pkill -f camera
Bug: 223088240
Change-Id: I87e714e03320ae30ab885c4713d1031ffa6b2ae1
2022-03-10 06:34:06 +00:00