Commit graph

217 commits

Author SHA1 Message Date
Sajid Dalvi
fd2a8ca06b dumpstate: Add logbuffer support for pcie driver [DO NOT MERGE]
Add logbuffer support to pcie driver to reduce dmesg spam.

Bug: 267495494
Change-Id: Ic70dfd696d084c1ab7f55872b69ca86856720592
Signed-off-by: Sajid Dalvi <sdalvi@google.com>
2023-02-02 21:30:23 +00:00
Doug Zobel
471d17d1ae pixelstats: Configure PCIe link stats pathnames
Test: adb logcat "pixelstats-vendor:D *:S"
Bug: 264287533
Change-Id: If059347f847a857f66164926edfecd2a756f2339
Signed-off-by: Doug Zobel <zobel@google.com>
2023-02-01 13:30:23 +00:00
Jack Wu
e28746e3f1 dumpstate: add battery eeprom in bugreport
Bug: 265889611
Test: adb bugreport
Change-Id: I604834cdae4a3352db20301128d61059c71f0fb2
Signed-off-by: Jack Wu <wjack@google.com>
2023-01-18 08:17:23 +00:00
Wasb Liu
08a7fc6c70 dumpstate: dump dual batt logbuffer
Add logbuffer_dual_batt to dumpstate.
Also fix some dual batt related dump pathes.

Bug: 263496320
Test: build pass, no related permission errors.
Change-Id: Ibfd3dfc18acc049052f07246c8d85ae04b4f95f5
Signed-off-by: Wasb Liu <wasbliu@google.com>
2023-01-17 04:52:50 +00:00
Super Liu
33673ae71f [DO NOT MERGE] Support gti proc dump.
Bug: 262796907
Test: TreeHugger build pass.
Change-Id: I84f68070b50272d4beeaa6178011584fc3a38a9f
2022-12-23 06:56:00 +00:00
Jack Wu
0ac69fbfc0 init: enable dock-defend by default
dock-defend is enabled in kernel code.

Bug: 262322247
Test: dock-defend is enabled by default
Change-Id: Ib7c7381f9d7d6d818e034911115e8c9045d5d0b6
Signed-off-by: Jack Wu <wjack@google.com>
2022-12-13 11:18:10 +08:00
Chungkai Mei
b35aecbd48 Remove UClamp Threshold setting
the file node was removed so also remove these
dummy setting

Bug: 260806701
Change-Id: I23044f7f32cf4b2b2cc93205ec5751525f05ee7f
Signed-off-by: Chungkai Mei <chungkai@google.com>
2022-12-09 21:43:57 +00:00
Wasb Liu
51e87c4f51 init: fix permission for logbuffer
Move permissiion setting for logbuffer to eraly-boot to avoid timing
problem.

Bug: 260678111
Test: Ensure that the owner of necessary logbuffers is system/system
Change-Id: I6a3a48ce31e95b8b781c8a90237c10aa7a0c4210
Signed-off-by: Wasb Liu <wasbliu@google.com>
2022-12-08 18:14:29 +00:00
Jack Wu
d59bb0d1bf gs201: use CPU4 in charger mode
For charging efficiency certification swap CPU6 with CPU4 while in
off-mode charging.

Bug: 260019919
Test: measure power consumption in charger mode
Change-Id: Iffccde0c3161e3fa4768d5f7c7ec2212dbab1a73
Signed-off-by: Jack Wu <wjack@google.com>
2022-12-06 15:25:27 +08:00
Wasb Liu
17d9a89d34 init: add battery persist folder am: 243d9332db am: 399b41622d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20615246

Change-Id: If4e6611c4c3188ef3c9e67470e7d80bc6fe8cd6b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 04:56:13 +00:00
Wasb Liu
399b41622d init: add battery persist folder am: 243d9332db
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20615246

Change-Id: If52c930b8fea311ac91ec59c5216ec646da1439a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 03:51:19 +00:00
Wasb Liu
243d9332db init: add battery persist folder
add persist battery folder for BatteryDefender

Bug: 258535661
Bug: 260878511
Test: confirm the BatteryDefenter feature works fine
Change-Id: I5e2925d4fe188e0a104f2b20e7b230d60d7f8039
Signed-off-by: Wasb Liu <wasbliu@google.com>
Signed-off-by: Ken Tsou <kentsou@google.com>
(cherry picked from commit a573337875)
2022-12-02 01:59:46 +00:00
Wasb Liu
a573337875 init: add battery persist folder
add persist battery folder for BatteryDefender

Bug: 258535661
Test: confirm the BatteryDefenter feature works fine
Change-Id: I5e2925d4fe188e0a104f2b20e7b230d60d7f8039
Signed-off-by: Wasb Liu <wasbliu@google.com>
2022-11-30 09:44:34 +00:00
Puma Hsu
0c3dc78fb9 usb: modify the initial_descriptor_timeout to 500ms
Since retry times of kernel driver are 24 during USB enumeration,
the total time of bad USB enumeration will waste 48 seconds.

This patch will reduce the timeout from 2 seconds to 500ms, so the
total time is changed to 12 seconds.

(cherry-pick from commit dd9bb5578cd197b44f32c0c19aca79610b5bdd54)

Bug: 256100001
Test: the timeout value is 500
Change-Id: I6c30e3c9168242f5c22443cbd5622892617e0520
Signed-off-by: Puma Hsu <pumahsu@google.com>
2022-11-24 13:34:14 +00:00
Jenny Ho
70c85f31ab dumpstate: dump battery defend logbuffer
Bug: 242679204
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I6c3a94a3cab77f9baa49ab8b5f2536e0a1275c7f
2022-11-01 05:34:11 +00:00
Chungkai Mei
1906df94e0 init: set teo as cpu idle governor
To enhance system performance and save power, chagne idle governor to TEO.

Test: boot to home
Bug: 175800838
Signed-off-by: Chungkai Mei <chungkai@google.com>
Change-Id: I591c1ff8d0c9ed8d5a3b4861c9c5b715ed1c3eae
2022-10-21 18:13:01 +00:00
Martin Liu
55f8dbd064 adjust watermark level
Increase watermark_scale_factor to 200 to better handle
burst memory allocation.

Bug: 251881967
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: Ibe663456671892f2ec0e5e20e592b80c96bd371b
2022-10-19 20:33:22 +00:00
Speth Chang
19177f8ada gs201: create catpipe folder for camera useage
The folder will be used for place the necessary libraries that used by
catpipe functions.

Bug: 249274299
Test: build pass, check the folder with user build
Change-Id: Ibb54e7c0b171f355ee2b71099533afe15ba09e99
2022-10-17 06:13:42 +00:00
George Lee
8a8a2c92a2 bcl: Add mitigation ready check
Instead of relying on vendor.thermal.link_ready property to gate write
to BCL's SYSFS node, adding mitigation ready SYSFS so that writes to
BCL's SYSFS node would not cause NULL pointer dereference.

Bug: 249130916
Test: Confirm property vendor.brownout.mitigation.ready is set
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Ic643a07ddb657cfc7e22537d5d25d0d99324e31c
2022-10-10 17:37:34 +00:00
Prasanna Prapancham
78841a5be9 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: Ice5ec79d912f154203a548c6c40470952d806289
2022-10-08 11:30:30 +00:00
Kyle Tso
2307196bb8 Disable USB contaminant detection when the disable flag is true
(ported from 6b1106498e1164f46b9a895ed2258a20a0c7a7b5)

Bug: 244658328
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I9d17748d24f3c402deaddb8a9bca89f8ef606056
Merged-In: I9d17748d24f3c402deaddb8a9bca89f8ef606056
2022-09-30 08:56:59 +00:00
Jeremy Kemp
6ef57bda36 GPU: Remove write to ifpo sysfs node.
As part of pa/2288829, this node becomes unsupported.

Prevents -ENOTSUPP errors when trying to write to Mali's ifpo sysfs
node.

Test: Boot to homescreen
Bug: 247571932
Change-Id: I0b579728a5b2a4355d648020113dda0592f904aa
Signed-off-by: Jeremy Kemp <jeremykemp@google.com>
2022-09-23 16:55:20 +00:00
Jenny Ho
47adfbe5fa init: add permission to adjust wlc fan alarm level
Bug: 246486657
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: Id02b6e415aad9f5dae081c45e4db667c27966130
2022-09-20 12:42:38 +08:00
Sayanna Chandula
b8acf39ef0 Revert "thermal: remove gxp cooling device dependency"
This reverts commit 617f8719f5.

Re-enable gxp cooling device

Bug: 238273184
Test: build and boot on device
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: I3787c11e674b6781b81d01aad2abc88d99c1d1d0
Merged-In: I3787c11e674b6781b81d01aad2abc88d99c1d1d0
2022-09-19 20:33:20 +00:00
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
Jaegeuk Kim
74ff274895 Use EXT4 for /persist am: 83e0b84caf
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19388119

Change-Id: Ic16b53341152a794ae2591e4a7fb25df26b41cd9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 18:17:28 +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
Jaegeuk Kim
83e0b84caf Use EXT4 for /persist
Bug: 239632964
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Idf41e3b71fec50029b77951550def1b8c750a42d
2022-08-01 18:00:49 +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
Cheney Ni
a150e72f05 Bluetooth: correct logbuffer_btpower owner to Bluetooth
Bug: 229691092
Test: Pass file permission check
Change-Id: I62c0c32124859db36b530a861bcc554d9a9d6c33
2022-07-20 19:05: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
matthuang
4608b93094 Set permission and owner for acd-com.google.usf.non_wake_up.
Bug: 195077076
Test: check file permission.
Change-Id: I98aadb9bb2735a9ebc4eed4cd49c01b9bbef392e
2022-07-01 02:16:02 +00:00