Commit graph

135 commits

Author SHA1 Message Date
Cheng Chang
034981b6e5 gps: raise gps service priority
Bug: 237695224
Test: Result 241195410
Change-Id: I9106b8ba3111296225985b4c9f3c2365c23d445d
2022-09-06 03:07:18 +00:00
David Chao
0d14937aef thermal: move charger thermal HAL setup into project
Move charger pixel-thermal-symlink from common to project folder
to prevent the GKI version dependencies from blocking init.

Bug: 240897207
Test: thermal_symlinks worked properly in charging mode
Change-Id: I46a4fe59fe62845f8197d3a59b18af0945a163f4
2022-08-22 19:54:12 +00:00
Rick Yiu
b0718b6702 Modify rt_uclamp_min value am: 97064d1b58
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19576151

Change-Id: I540f259d1da61ef8dda59978ce49a0c075993342
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 17:42:01 +00:00
Rick Yiu
97064d1b58 Modify rt_uclamp_min value
Change the value so that it will map to 910 MHz on mid cores, which
aligns the result of P21.

Bug: 234561004
Test: build pass
Change-Id: I372462d240c5de295959878322c62cc3657cce7c
2022-08-10 17:07:21 +00:00
TeYuan Wang
f14529ed67 thermal: allow system to overwrite the skin_therm's trip point
Bug: 236787614
Test: ls -al dev/thermal/tz-by-name/skin_therm/trip_point_0_*
Change-Id: I382214c4942a4f29ee13bf85c8900d131067ae39
2022-08-09 03:08:54 +00:00
Randall Huang
a245c22458 Enable scsi error recovery log for debugging
Bug: 239451498
Test: run storage-qa pixel/039
Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: I4031bd245d8b22762a5fe5a678bc8568ff4eb0c5
2022-08-04 01:33:48 +00:00
Edmond Chung
2b0b2ca387 Camera: Create video_bokeh_node folder at boot am: 38305941b6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19499376

Change-Id: I80d7754b6d6eaf90172bd923cad31a0ffb22314e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-03 00:50:49 +00:00
Edmond Chung
38305941b6 Camera: Create video_bokeh_node folder at boot
Bug: 241054363
Test: Build, run on user-build
Change-Id: I8403c58ed5e9fa6f9bb68012298855d84cfec23e
2022-08-03 00:03:32 +00:00
Ananth Raghavan Subramanian
423562d561 init: Change pm_freeze_timeout
Reduce /sys/power/pm_freeze_timeout to 1s from default of 20s.
Data shows that the 20s timeout is rarely hit before suspend is aborted
due to a wakeup/interrupt. Reducing the timeout will help with
diagnosing task freezing issues and will reduce time spent attempting
suspend.

Bug: 239743579
Test: Successfuly boot to home, verify change in node
Signed-off-by: Ananth Raghavan Subramanian <ananthrs@google.com>
Change-Id: I839764dd06ebd66110c11953baf13c06e598dd80
Merged-In: I839764dd06ebd66110c11953baf13c06e598dd80
(cherry picked from commit e84f3603d1)
2022-08-02 16:43:51 +00:00
Konstantin Vyshetsky
bab4345e6b gs201: add script to migrate persist to ext4 am: 214b76abd3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19391442

Change-Id: Ia821dfb32ba14e9610d63cc83653408fc80d20d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 18:17:27 +00:00
Konstantin Vyshetsky
214b76abd3 gs201: add script to migrate persist to ext4
Bug: 239632964
Signed-off-by: Konstantin Vyshetsky <vkon@google.com>
Change-Id: If3ac021dec5b25968e83f926518e2881c92d2275
2022-08-01 18:00:49 +00:00
Jack Wu
ed1fa3ae48 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: I1b0dd49208f345d4edeee81f9b07d2de93f97d45
2022-07-22 03:58:20 +00:00
Robin Peng
6f754fdde9 init.gs201.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: Ie5a2b939191947c4fce154dde48859a28fe86329
2022-07-15 14:43:48 +00:00
TeYuan Wang
938a1692d5 thermal: allow system to overwrite the usb_pwr_therm2's trip point
Bug: 233003074
Test: ls -al /dev/thermal/tz-by-name/usb_pwr_therm2/
Change-Id: I2ac803d455ebd7240bedf70bbcf98ef3c9e1d8c3
2022-07-15 07:12:25 +00:00
Kyle Tso
e31dc795f1 dumpstate: Dump logs
Bug: 237082721
Test: log dumped in bugreport
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I8dfcbb397581644b6daf1a4c0aa45d53b5662dcd
2022-07-09 07:22:55 +00:00
Jenny Ho
4c0d4e0364 set dev_sn for battery pairing am: 96ef4de2a7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19209955

Change-Id: I1158076554d24f0d61525d665bd3a9cdd6cdb765
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-08 02:28:48 +00:00
Jenny Ho
96ef4de2a7 set dev_sn for battery pairing
Bug: 238307181
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I8b1c0de4b57e6475627e279bd890fe66ca8e92c5
2022-07-08 02:01:29 +00:00
SalmaxChang
259c65daff conf: create dedicated init rc for modem
Create dedicated init rc for modem stuffs and only included for modem
projects.

Bug: 236909975
Change-Id: I08be8a95cfe86c1e01b6193d47d717e7835a6af6
2022-07-06 16:04:13 +08:00
Ted Lin
f451b3b7c3 Remove the unused attribute set from init.rc
06-08 13:13:07.488   383   383 I auditd  : type=1400 audit(0.0:4): avc: denied { setattr } for comm="init" name="registers" dev="debugfs" ino=29509 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_regmap_debugfs:s0 tclass=file permissive=0
06-08 21:13:07.488   383   383 I auditd  : type=1400 audit(0.0:4): avc: denied { setattr } for comm="init" name="registers" dev="debugfs" ino=29509 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_regmap_debugfs:s0 tclass=file permissive=0

Bug:235395130
Test: check bugreport
Change-Id: Ie199f29d034c705b4f0a0d7e5ad178b9e8dcc282
Signed-off-by: Ted Lin <tedlin@google.com>
2022-07-06 07:31:43 +00:00
George Lee
fc3bf6340b bcl/init: Remove unused sysfs write. am: 1ea0a6316b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19173702

Change-Id: Ia9249b338b68cad8971d96a22eabaabe8ea61782
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-05 19:38:46 +00:00
George Lee
1ea0a6316b bcl/init: Remove unused sysfs write.
SOFT_OCP_TPU/GPU/CPU are no longer used.

Bug: 234275748
Test: Boot and verify
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I4c6a4063ef25c23d88d2b45601a2bafbe2f3d089
2022-07-05 19:14:08 +00:00
Ted Lin
097f0b8ae3 Remove the unused attribute set from init.rc
06-08 13:13:07.488   383   383 I auditd  : type=1400 audit(0.0:4): avc: denied { setattr } for comm="init" name="registers" dev="debugfs" ino=29509 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_regmap_debugfs:s0 tclass=file permissive=0
06-08 21:13:07.488   383   383 I auditd  : type=1400 audit(0.0:4): avc: denied { setattr } for comm="init" name="registers" dev="debugfs" ino=29509 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_regmap_debugfs:s0 tclass=file permissive=0

Bug:235395130
Test: check bugreport
Change-Id: Ie199f29d034c705b4f0a0d7e5ad178b9e8dcc282
Signed-off-by: Ted Lin <tedlin@google.com>
2022-07-05 13:24:04 +00:00
Vincent Palomares
782c4f9bdd Suspend/resume: Optimize suspend/resume callbacks. am: 219f46b9a9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18977286

Change-Id: Ieadc8ace3ac28bddfc07d3ebadccec89cdd22040
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-30 20:39:51 +00:00
Vincent Palomares
219f46b9a9 Suspend/resume: Optimize suspend/resume callbacks.
Bug: 235135485
Test: boot / hints applied correctly
Change-Id: I2f2200611698a9971eb3885ab81be02d105d2aa2
Signed-off-by: Vincent Palomares <paillon@google.com>
2022-06-30 20:16:57 +00:00
Jack Wu
1cb6abcdc6 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: Ifc99a3c48c129c68bf69a9832c0df0cd14b796e0
2022-06-28 16:27:31 +08:00
Jesse Hall
0defa6d923 Disable GPU firmware logging am: 9497487826
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19067922

Change-Id: I9c6ce8b50314ae6eb2757237c110892e9da4aa15
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-24 23:31:44 +00:00
Jesse Hall
9497487826 Disable GPU firmware logging
Test: check sysfs node value after boot
Bug: 237080441
Change-Id: I27d2896ad57ab9245fe78839722d8fe62fb148bb
2022-06-24 14:25:05 -07:00
Sayanna Chandula
9f66710fc9 thermal: remove gxp cooling device dependency am: 617f8719f5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19023636

Change-Id: I51b5c047923cbec2c6b648ffeab64295ba960a4d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 23:28:08 +00:00
Sayanna Chandula
617f8719f5 thermal: remove gxp cooling device dependency
Bug: 236296247
Test: Build and boot on device
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: I336ac5eee16771c59a66776f71b9a4e1b5c76461
2022-06-23 23:11:18 +00:00
Jenny Ho
e3a70263b6 init.rc: add permission to dump battery debugging data
Bug: 205259954
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I6d71cc6fb11e1881d78a81f36162e3d9493654bd
2022-06-21 06:33:43 +00:00
Jack Wu
59f0266f32 add permission for pca charge_stats access
Bug: 235050913
Test: no Permission denied while accessing the file node
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I078990fe143d46f30eb0fdf22985c193dcde240d
2022-06-17 02:52:08 +00:00
Dave Chen
7f0347e6a0 Add folder needed to hold camera calibration files am: 482a3c1562
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18884381

Change-Id: Ib8b4a3b2b616308ef9d522aae71644a2c94c0086
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 00:56:43 +00:00
Dave Chen
482a3c1562 Add folder needed to hold camera calibration files
Test: run on P10
Bug: 233716733

Change-Id: Ic627d73d6d9a604bda71bf2f2a91c19fc9bb1437
2022-06-14 23:52:49 +00:00
Jack Wu
d10e415cd9 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: I727e2596928dc8f95d7aeba775241419ddd78273
2022-06-14 05:11:51 +00:00
David Chao
2b483be348 thermal: allow system to overwrite the skin_therm1's trip point
/dev/thermal/tz-by-name/skin_therm1 # ls -l
total 0
-rw-r--r-- 1 system system 4096 2022-06-06 13:41 trip_point_0_hyst
-rw-r--r-- 1 system system 4096 2022-06-06 13:41 trip_point_0_temp

Bug: 233972622
Test: ls -al /dev/thermal/tz-by-name/skin_therm1/
Change-Id: I347c645c7ce23e6e26ea7ef20db9d6f0a66b6498
2022-06-09 03:17:57 +00:00
Kean Mariotti
41329324a4 Revert "init: fix incorrect pca94xx sysfs node path"
This reverts commit 0d15498d3e.

Reason for revert: 235332394

Change-Id: I50e46d66f33b1b29917f6827fc9cb51da9fe293a
2022-06-08 12:51:36 +00:00
Jack Wu
0d15498d3e init: fix incorrect pca94xx sysfs node path
Bug: 235050913
Test: can parse pca stats in pixelstats-uevent
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I4b921102bd46544adfc049816ba31b3188859973
2022-06-08 09:24:39 +00:00
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