Commit graph

200 commits

Author SHA1 Message Date
Jimmy Chen
e0826531c6 p2p: fix p2p configuration am: 3749b75764
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/19238029

Change-Id: Id8569098c070f42ee02d286a501cf72b3d5ecc51
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-05 04:01:33 +00:00
Jimmy Chen
3749b75764 p2p: fix p2p configuration
The correct path should be under /data,
or it is not writable.

wpa_supplicant now support p2p overlay configuration, a unified
wpa_supplicant init entry can be used.

Bug: 238601241
Test: create a group and check this group is persisted
      after reboot
Merged-In: I3c5523626de22c26cb562c03e9fbd7aabf6d98e7
Change-Id: I3c5523626de22c26cb562c03e9fbd7aabf6d98e7
2022-08-04 05:20:13 +00:00
Prasanna Prapancham
a203131d2d Change ownership of charge_stats to system for clearing am: 1dc5d62371
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/19213521

Change-Id: Ia1889f9c95c2e95875f9782e157e6509d10a7008
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-29 00:04:16 +00:00
Prasanna Prapancham
1dc5d62371 Change ownership of charge_stats to system for clearing
Test: Tested with tablet with dock. Userspace is able to read
and clear sysfs node successfully

Bug: 218802317
Signed-off-by: Prasanna Prapancham <prapancham@google.com>
Change-Id: I1e97920ff0e810ce2888102f3971b21aabc55909
2022-07-28 23:17:26 +00:00
Tri Vo
668c982d75 storageproxyd: start storageproxyd as "system" user and group am: db0342fbad am: 3732bf0bc2 am: 07e738908d am: 4c287a190f
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2154278

Change-Id: I8d779e607ba2de90bd345acbb6126e74eed6cefd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 21:44:32 +00:00
Tri Vo
3732bf0bc2 storageproxyd: start storageproxyd as "system" user and group am: db0342fbad
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2154278

Change-Id: I6f70b459a6cc41ca577d0774674b3ddca83d5ce1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-27 19:59:59 +00:00
Jack Wu
67240b1cdc init: disable dock-defend
User will enable/disable this feature from UI setting

Bug: 239889098
Test: dock-defend is disabled by default
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I25376ce6174e4e09ed4a7ce8f1258dc099da4cd8
2022-07-22 03:58:32 +00:00
Tri Vo
db0342fbad storageproxyd: start storageproxyd as "system" user and group
Bug: 205904330
Test: boot
Change-Id: I7ad81b202e25307e4f49c48e4ae790d0b9ec6801
2022-07-15 13:05:33 -07:00
Robin Peng
21932fae4c init.gs101.rc: remove vendor.device.modules.ready from 'on init' section
1) for projects with device specific modules, this property should only
   be set while device modules been loaded.
2) also remove "wait_for_prop vendor.device.modules.ready 1" to prevent
   infinite wait
3) migrate vendor.all.modules.ready/vendor.all.devices.ready to
   init.insmod.<DEVICE>.cfg and set these proprieties while .cfg not
   exist

Bug: 238853979
Signed-off-by: Robin Peng <robinpeng@google.com>
Change-Id: I17aa42ef0a459c33871891e5036edf7eea57e39a
2022-07-14 13:08:55 +00:00
George Lee
b73054581d bcl/init: Remove unused sysfs write.
SOFT_OCP_TPU/GPU/CPU are no longer used.  Clock divider ratio should
also be set accordingly.

Bug: 234275748
Test: Boot and verify
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Icb45b4f30605efaae72bef3ccd1c3d82df8b71a7
2022-07-06 01:47:21 +00:00
David Chao
88fb3bfe07 gs101: move charger thermalHAL setup into common code
To aligned with P22 to move charger thermalHAL setup into common code

Bug: 200615564
Test: build pass and boot to home
Change-Id: Idfe47fe64e4c158f27cd587ca8d768e13292c361
2022-06-20 07:10:50 +00:00
Jack Wu
4a612faaaf init: disable dock-defend in charger mode
Need to meet energy certification test requirement which needs to
be able to charge FULL.

Bug: 235437635
Test: can charge to full on dock in charger mode
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I9f92cffdefbeef8e3671812dbc2891d4fef71230
2022-06-14 11:00:53 +08:00
David Chao
38d2997f6a Revert "gs101: move charger thermal HAL setup into common code"
This reverts commit 980650080a.

Reason for revert: Since the vendor.thermal.symlinks is init early than google-module init
such as gpu cooling, the gpu cooling is not ready while creating thermal.symlinks.
Thermal-hal GPU thermal throttling will fail because there is no thermal-gpufreq-0 in thermal.symlinks.

Bug: 200615564
Test: thermal symlinks can be created in dev folder
Change-Id: Ia3b0999c7a8038f7be5e2390926ff74473c0c339
2022-05-26 17:53:01 +08:00
David Chao
980650080a gs101: move charger thermal HAL setup into common code
Bug: 200615564
Test: build pass
Change-Id: I5a32c2b695dc9fd3e29e580c8a82e25f6c3a5f69
2022-05-25 07:46:52 +00:00
Kyle Tso
4db75dda18 dumpstate: Dump logs
Bug: 232556226
Test: log dumped in bugreport
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: Iacd4db38dd56c1d5ba6f58c757f023795a9c3a3b
Merged-In: Iacd4db38dd56c1d5ba6f58c757f023795a9c3a3b
2022-05-24 00:00:46 +00:00
Richard Chang
688710d159 gs101: 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.gs101.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: I73369f2cef7b999cb380278503a4dbfcc4cff3cd
2022-05-23 06:06:15 +00:00
Kyle Tso
d1e76e74ef dumpstate: Dump logs am: 21502f2978
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2098913

Change-Id: I4a7de39f80fc91443c3405278c66d48cc0a5ff61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-19 07:56:40 +00:00
Wei Wang
faaa95c900 Remove group_throttle setting
Test: Build
Bug: 233149512
Change-Id: I2416e5d1a401ba401407e46754fa33cacba6942d
Signed-off-by: Wei Wang <wvw@google.com>
2022-05-19 05:14:24 +00:00
Kyle Tso
21502f2978 dumpstate: Dump logs
Bug: 232556226
Test: log dumped in bugreport
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: Iacd4db38dd56c1d5ba6f58c757f023795a9c3a3b
2022-05-19 02:12:58 +00:00
chungkai
f917c52947 devfreq: reset ddr freq after boot
to reduce boot time, boost ddr freq when booting
and reset it after booting.

Bug: 230586904
Test: pass
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I25b30d22a4803aeb6e27b914e07f6eb8458e0a50
2022-05-14 03:03:13 +00:00
Will McVicker
ef12b21ded init.gs101.rc: add raw i2c-s2mpg10mfd and i2c-s2mpg11mfd nodes
This fixes the permissions for the [067]-001f and [178]-002f raw i2c
numberings for the P21-mainline driver which doesn't use the i2c vendor
hook to rename these numberings. This is required for the thermal hal to
work.

Bug: 231155356
Signed-off-by: Will McVicker <willmcvicker@google.com>
Change-Id: I2341c78b2ab146713a171eeb436f34c1c8839c6e
2022-05-04 16:10:15 +00:00
Stephane Lee
945cc1ede4 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: Id4e1cd82291b8981cd6e62e72dd54541b7ceb4db
2022-04-28 21:43:15 +00:00
chungkai
267e8bb958 powerhal: update new boost uclamp value
set 160 back to 161 since RT task will select
little cores

Test: build pass
Bug: 230247757
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I2a1e761370a686e0e3c11202de93d5fd91e47b56
2022-04-26 06:00:35 +00:00
chungkai
b3a98db247 powerhal: update new boost uclamp value
update new boost uclamp value since we update
cpu capacity

Test: PTS UIBench has no obvious difference
Bug: 224649226
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: Ie2fd9950a98f9786b03ef4e364fd9d584dcc438d
2022-04-21 16:49:00 +00:00
Taeju Park
403f13f60a Disable PMU freq limit in default
Bug: 223688700
Signed-off-by: Taeju Park <taeju@google.com>
Change-Id: Ic96dad155f04d4abd180ed6e399b0eb0b61dabdd
2022-04-08 05:54:48 +00:00
chungkai
deca07793f init: modify path of i2c peripherals
add potential paths when enable parpllel module loading

Test: build pass
Bug: 228181404
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I929669a2ddc9155ad4dac1f40f808ffcb4c914f2
2022-04-07 09:33:25 +00:00
chungkai
c99aafcbc9 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: I20c7d5228b81b9ef27660f5b4d120b3c4c584276
2022-03-30 03:50:02 +00:00
chungkai
abf92a16d6 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: Id9d85bb742dbfe96cc7e9fe8572a6a610a9f592e
2022-03-29 10:02:47 +00:00
Jenny Ho
31d519c4b4 init.gs101.rc: set dev_sn for battery pairing
Bug: 216583288
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I58a243b711025d0dd6f3980c84462d8f392841cc
2022-03-28 01:45:03 +00:00
Super Liu
40429a7aef dumpstate: update the nvt touch path.
Bug: 219602920
Test: TH build pass.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I9f97cef742e16ee357bc5b872180682520602c76
2022-03-24 09:48:55 +00:00
Jaegeuk Kim
aeeeb8bf63 Remove discard command tuning
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I56a35351a27bfff4ad8177061a86885907c0303b
2022-03-17 03:22:07 +00:00
Midas Chien
4945c1e530 display: make early wakeup node is readable
Bug: 221384860
Test: cat node
Change-Id: I917502071f1d308dd08874f44993389d6d2ecd09
2022-03-14 18:36:35 +00:00
Minchan Kim
bdef8f522a gs101: remove chown for page_pinner
Since page_pinner provides enough permission frmo aosp/1742590,
it doesn't need to call chown.

Bug: 190337297
Test: adb bugreport and confirmed page_pinner dump working
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I0593e61cb4fc439c52dc884ecb52b982e1db4704
2022-03-08 05:43:46 +00:00
Midas Chien
bd1dfae7be display: allow composer to access panel idle handle exit node
Bug: 202182467
Test: composer can access panel idle handle exit node
Change-Id: Ic0269cb7cb6e2597519fdd8f032de0c536dc91eb
2022-03-04 06:55:04 +00:00
George Lee
812b753546 [automerge] bcl: Increase hardware clock divider count 2p: 2f0d3bcc06 am: ce27c0d216
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16995825

Change-Id: I2c8655ff6c9515a71611dda9f69ff31a51aeca40
2022-03-02 02:57:25 +00:00
Rick Yiu
4f3baf3b80 Support SetProcessProfiles for vendor groups
Add ProcFilePath for vendor group change of a process.

Bug: 218684257
Test: function works
Change-Id: I2d87a1a5d27dee699b37de6fac8d8b52334ba54e
(cherry picked from commit 72b0f768ee)
2022-03-01 04:23:36 +00:00
George Lee
ce27c0d216 [automerge] bcl: Increase hardware clock divider count 2p: 2f0d3bcc06
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16995825

Bug: 221077697
Change-Id: I8d1101481bf4a6dc2655d378d31ca6e1579345e4
2022-02-26 21:33:43 +00:00
George Lee
2f0d3bcc06 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: 221077697
Test: Local stress test to ensure no brownout.
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I950fab2e3d70acd76b29f05acff8eec783a0546d
2022-02-26 13:33:23 -08:00
Xin Li
6ea7e8b035 Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: Ife2ff971eaeda2b132658ca2704bf1edde6fd80a
Change-Id: Ic1617d8e3b1aac8c2acc2c483b1347431e911a1e
2022-02-11 07:10:27 +00:00
Kai Shi
b0599c3b02 Merge "Increase TCP wmem max size" am: 98ee53e52a am: e9e29ca22e am: dd409ec914 am: bd80f61fec
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1960054

Change-Id: I860326b1e8a5a41bc57115a218d5f10b5e109b76
2022-01-27 22:13:41 +00:00
Kai Shi
bd80f61fec Merge "Increase TCP wmem max size" am: 98ee53e52a am: e9e29ca22e am: dd409ec914
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1960054

Change-Id: Ifdb9837d63d8c384f8675c452b4bbbb04b290b13
2022-01-27 21:10:32 +00:00
Kai Shi
dd409ec914 Merge "Increase TCP wmem max size" am: 98ee53e52a am: e9e29ca22e
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1960054

Change-Id: Iac6032830054a99c5cb52c80332769b824b29f4a
2022-01-27 20:53:45 +00:00
Kai Shi
b877da7c69 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: I6058af03da756aaa63e89eddb674f5b054cecf33
2022-01-25 11:58:30 -08:00
Bowgo Tsai
b276a09717 Removing 'verity_update_state' am: e77021b4c4 am: be59761ace am: 6b7e6787e1
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1878153

Change-Id: I7a2f4f36b1831a4f4a7c11fac6fffd9ff6468e90
2022-01-21 22:43:14 +00:00
Bowgo Tsai
6b7e6787e1 Removing 'verity_update_state' am: e77021b4c4 am: be59761ace
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1878153

Change-Id: I32016a579f9ee62257c0676f0aba5c300f2a6924
2022-01-21 22:27:29 +00:00
SalmaxChang
d8657cb475 init: gs101: restorecon persist modem file am: 2dfaabef7a am: e4f0fe01b4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16660077

Change-Id: Ia72dc277c41f000d8f04be2a1617faa2bdb86124
2022-01-20 06:14:50 +00:00
SalmaxChang
2dfaabef7a init: gs101: restorecon persist modem file
Bug: 215311024
Change-Id: I8292a5066c3658a8acde622014881338ea24379a
2022-01-19 14:45:10 +00:00
linpeter
752038e9fb display: atc sysfs node change
Give atc nodes are changed to dqe0 form.

Bug: 213133646
test: check file node permission
Change-Id: I12b83482d421c763692d4c64f0ad1666e2abe1d9
2022-01-12 08:06:39 +00:00
Rick Yiu
219111e484 Appy vendor setting for OtaProfiles
Use a new vendor group, ota, for OtaProfiles, and set its uclamp.max
and group_throttle to 40%, which benefits both performance and power
of OTA process.

Bug: 199006579
Test: value set as expected
Change-Id: I63375f3a286f27ab6c54413d6488b175305e6607
2022-01-11 08:58:11 +00:00
Jack Wu
f0fa8db7c9 remove retaildemo settings from gs101 and set in the individual file
Bug: 204926279
Test: check demo mode functionality
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I5205510746132b0edfd3db2a6c44deaf133b3b05
2022-01-10 11:06:23 +00:00