Commit graph

1052 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
George Lee
e05f4413af battery_mitigation: fix brownout reporting [DO NOT MERGE]
Ensure ro.boot.bootreason equals sys.boot.reason before filing bugreport
for Brownout.

Bug: 263274350
Test: Local testing to confirm
Change-Id: Icc0009475891a5e09b772913dfb4a969d66cae87
Signed-off-by: George Lee <geolee@google.com>
(cherry picked from commit 4b3a85cac0206e70dddf7663aa771195c0026eea)
2023-02-01 16:08:42 +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
Alex Hong
d6f061f45a Fix the index out of bounds error when the modem FD is missing
Bug: 263783650
Test: atest VtsHalDumpstateTargetTest pass
Change-Id: I3795244e111bbf18b1a2a2a27a93242b4015baa7
2023-01-09 21:34:14 +08: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
Wayne Lin
a4dc9b55bd DO NOT MERGE gps: update gps driver 147.20.23.557990
- Add more PLMNs for specificed carrier configuration
 - Add configuration to use full response time in SUPL NI session to
   benifit accuracy
 - Fix miscalculate TTFF and RSP problem due to unexpected stop command

Bug: 260996867
Bug: 260153806
Bug: 260795209

Verify test: b/262699352
Test: VtsHalGnssTargetTest pass
CtsLocationGnssTestCases pass
PtsChreTestCases pass

Change-Id: If9ccdfa44bc37e5ae8c73ccf96150f46b8723dc5
2022-12-19 08:40:14 +00:00
Jörg Wagner
dab570b992 Install Vulkan 1.3 device properties
As the latest Mali DDK exposes a Vulkan 1.3 driver
also setup the device properties accordingly.

Bug: 259507479
Change-Id: Ic8d7ac82e72729268e5cabf9ad2c0309dcc1db8f
2022-12-16 07:16:18 +00:00
Mason Wang
a6120d0625 Dumpstate: Add golden mutual raw data for FST2 touch. [DO NOT MERGE]
Bug: 254201934
Test: The BR has the data of "Golden Mutual Raw Data.
Signed-off-by: Mason Wang <masonwang@google.com>
Change-Id: I017462d0cd6f2ed3032f0f775d078ef3f5790193
2022-12-13 23:52:03 +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
kierancyphus
ebeab15ad7 Dumpstate: use new history dir and inc more files
Modify the logging mask file path to instead point to the new history
directory, as well as include more files (right now only logging mask
history and logging enabled history).

Bug: 259174982
Test: Manually build and inspect bugreport to make sure files are
included

Change-Id: Id87f381a4895399a035ea4fe55d132e31d5d796c
Merged-In: Id87f381a4895399a035ea4fe55d132e31d5d796c
2022-12-07 06:55:42 +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
George Lee
d0586cdd4b Enable BrownoutDetection only for debug build
Bug: 237287659
Test: Confirm its only debug build only has BrownoutDetection app
Merged-In: If80954497a75da0d41c8d75126e42eaae1330003
Change-Id: Ibc1102f779007692d41a423a30075f745129ea1b
Signed-off-by: George Lee <geolee@google.com>
2022-12-02 18:36:20 +00:00
George Lee
2a2ebf1d78 Battery Mitigation: Use Brownout Reason
Brownout Reason replaces startup_bugreport_requested.  Battery
Mitigation needs to be updated.

Bug: 237287659
Test: Ensure lastmeal.txt is properly generated.
Merged-In: If80954497a75da0d41c8d75126e42eaae1330003
Change-Id: Ie06da78b7b9435d134c99627de53d6292def58b1
Signed-off-by: George Lee <geolee@google.com>
2022-12-02 03:37:14 +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
Wayne Lin
4a94625bce DO NOT MERGE gps: update gps driver 147.20.23.556285
- Fix no GPGSV information in CP LPP session
 - Implement SIT_IND_GPS_NFW_MODE to make modem request NFW status from gpsd
 - Fix the high EA issue caused by last known position
 - Use network PLMN to determine carrier configuration when SIM PLMN is
   not available

Bug: 248476067
Bug: 252972119
Bug: 243358812
Bug: 258355692

Verify test: b/260660381
Test: VtsHalGnssTargetTest pass
CtsLocationGnssTestCases pass
PtsChreTestCases pass

Change-Id: Ibe886b3559405bd7e8732aab9c023351c9629ee6
2022-12-01 08:53:42 +00:00
Ziyi Cui
ead189b0f8 [DO NOT MERGE] gs201:dumpstate: Dump long irq metrics, resume latency metrics at bugreport
At the bugreport, capture long irq metrics and resume latency metrics

Bug: 227809911
Bug: 232541623
Test: "adb bugreport" includes metrics capture.
Signed-off-by: Ziyi Cui <ziyic@google.com>
Change-Id: I8dc3330da3b9274be24534b52db86f0b3d01a482
2022-12-01 06:31:01 +00:00
Ziyi Cui
87cb8256a3 gs201: pixelstats: add pixel perf stats paths
Add pixel perf metrics paths in sysfs paths list

Bug: 232541623
Test: Tested resume latency metrics
Signed-off-by: Ziyi Cui <ziyic@google.com>
Change-Id: I7301e3ba53497906ad523dd9f02ccfe796b5c2de
2022-12-01 06:30:27 +00:00
Ziyi Cui
78f9096a34 [DO NOT MERGE] dumpstate: Dump Temperature Residency at bugreport
At the bugreport, capture Temperature Residency metrics

Bug: 246799997
Test: Test: "adb bugreport" includes temp residency metrics capture.
Signed-off-by: Ziyi Cui <ziyic@google.com>
Merged-In: I49ffdcadce89e3dc8859819576998df56928a75a
Change-Id: I360b7d26c94556f43945a0c3c0e942fb0c48fa5d
2022-12-01 06:27:22 +00:00
Ziyi Cui
980362e77d gs201: pixelstats: add pixel temperature residency stats paths
Add pixel temperature residency  metrics paths in sysfs paths list for gs201

Bug: 246799997
Test: Tested temperature residency metrics
Signed-off-by: Ziyi Cui <ziyic@google.com>
Merged-In: Ib0788756eb77490e257145bd90c9b8041149ede0
Change-Id: Ib0788756eb77490e257145bd90c9b8041149ede0
2022-12-01 06:27:22 +00:00
Mason Wang
758d4f22fe Dumpstate: Filter not used dumps of touch node. [DO NOT MERGE]
Bug: 226475119
Test: Dumps of outer panel is in bugreport.
Change-Id: I1e6e59e1709715306671df9536685d9b3a9e34d6
2022-11-30 23:04:01 +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
Mason Wang
0cdf324421 Dumpstate: Avoid to dumps on invalid file node [DO NOT MERGE]
Bug: 226475119
Test: Verify pass by touch dump data in bugreport.
Change-Id: I9088ca44a9111ae36462f340da57dfe27d4b86ec
2022-11-28 11:51:37 +08:00
Nicole Lee
ef3195940e Update pixel stability logging mask
- Enable COMMON_HAL, PAL_PWR

Bug: 260304925
Change-Id: I7a78616ee045aadece5cac370839c7544e39f240
2022-11-25 17:30:16 +08: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
Kieran Cyphus
fef314ea8a Dumpstate: include LoggingMaskHistory.csv on bugreport
Bug: 241739027
Test: trigger bugreport with `adb bugreport` and inspect the
logs to to make sure it is copying over LoggingMaskHistory and
including it in the tar file at the end.

Change-Id: I93ad2655193c57a0782c1535dc1cde3d0db1aeec
2022-11-23 07:27:30 +00:00
Hua Cheng
945f9e6cd5 Revert "[Steadiface] Disable landmark inference dsp usage."
This reverts commit f7f4d8e84f.

Reason for revert: The issue b/255244818 caused by cl/476717338 is fixed in cl/477452462 on QPR2.

Bug: 257660234
Test: CTS
Test: Check DSP-TPU landmark is enabled.

Change-Id: I122b3d786cf670515fc471baa043fdd4ccdf0d72
2022-11-22 07:00:30 +00:00
Wayne Lin
1d398c55be DO NOT MERGE gps: update gps driver 147.20.23.554803
- Fix GLONASS Notch Filter Center issue
 - Support RILC_UNSOL_GPS_LOCK_MODE to send GPS LOCK MODE to CP
 - Fix IGnssMeasurement#setCallback twice issue
 - Fix the issues related to LTE filter

Bug: 210132268
Bug: 241880444
Bug: 254195220
Bug: 254202512

Verify test: b/259015778
Test: VtsHalGnssTargetTest pass
CtsLocationGnssTestCases pass
PtsChreTestCases pass

Change-Id: I7c4c92b16a176c86c7239db3381cf246169ebbe1
2022-11-17 07:45:19 +00:00
George Lee
d0d71a7ce8 battery_mitigation: Add BrownoutDetection app [DO NOT MERGE]
This app files bugreport for user-debug build with reboot reason = ocp
or uvlo.  Removed the dependency on BetterBug.

Bug: 237287659
Test: Ensure bugreport is generated under user-debug build with reboot
reason = ocp or uvlo.
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I267f077e9c6c856b038b008397c0b465d209d9c3
2022-11-16 18:20:57 +00:00
Minchan Kim
31883f3edc dumpstate: Dump pixel specific trace events at bugreport
At the bugreport, capture pixel tracee vents. It's useful to know
what happened in kernel side at that time.

Test: "adb bugreport" includes the pixel trace dump.
Bug: 238728493
Change-Id: I43a0b0bc51fc9aae7149e461761b798da9fce5e8
Signed-off-by: Minchan Kim <minchan@google.com>
2022-11-14 19:00:39 +00:00
Sayanna Chandula
4af3fad2e9 Revert "Revert "thermal: enable warm_reset on thermal shutdown""
This reverts commit 39845ace12.

Bug: 238464124
Test: Build and boot on device. Check last logcat after shutdown
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: I045cbffe0296c91c0b5eba0202ac2a071f4959ab
2022-11-12 21:18:17 +00:00
Carter Hsu
6ec2acb1b0 audio: update hidl to 4.0
Bug: 252877772
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I8c1b91e0d06088b628d171d99f42cb0d0c77bffc
2022-11-11 01:50:19 +00:00
Jerry Huang
386fb05c96 media: Fine tune c2.android.hevc.encoder performance point
Bug: 256080051
Test: android.video.cts.VideoEncoderDecoderTest#testHevcGoog0Perf0320x0240
Change-Id: Ic7ad1f613b80dc95d067e918883f86252561b356
2022-11-09 12:45:13 +00:00
Roger Fang
a82f7b059c [DO NOT MERGE] pixelstats: add cca_rate sysfs for VendorAudioHardwareStatsReported
Bug: 249225148
Test: manually test passed

Change-Id: Id9f09644176b064b5891d0c3c83414e378260168
Signed-off-by: Roger Fang <rogerfang@google.com>
2022-11-08 09:53:37 +00:00
Robin Peng
0272b56e05 gs201: remove prebuilt boot-user.img usage
When $(TARGET_KERNEL_DIR) contains:
* boot.img

then use those as prebuilt boot images for the target build.

Bug: 242812258
Change-Id: I10ccfaacfc77cc37eee085b27575fae515ceb088
2022-11-04 06:49:05 +00:00
Star Chang
d9c9199c83 Add TWT statistic logs to dumpstate for bugreport.
Bug: 253348062
Test: dump bugreport ok
Change-Id: I2a1edafa78113e4f48d22244151c3a1500fe7f71
Signed-off-by: Star Chang <starchang@google.com>
2022-11-04 01:31:19 +00:00
Roger Wang
712cb29b4d wifi: remove unnecessary debug dump
Since design was adjusted, we are no longer need
to cat dump_start when bugreport be triggered.

Bug: 256746618
Test: Trigger bugreport and check debug files.
Change-Id: I1c381a1e0a9bd0611b804c3dd9364eb48e8d4e49
Signed-off-by: Roger Wang <wangroger@google.com>
2022-11-01 15:04: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
Daniel Mentz
3b533e5227 Import prebuilt kernel modules like fips140.ko
Add support for copying prebuilt kernel modules like fips140.ko into the
vendor kernel ramdisk. These kernel modules are different in the following
ways:

- They do not appear in vendor_kernel_boot.modules.load provided by the
  kernel build system.
- We want to put their names at the very beginning of the output
  modules.load file to ensure that they are loaded prior to all other
  modules.

We define a new Makefile variable named
BOARD_PREBUILT_VENDOR_KERNEL_RAMDISK_KERNEL_MODULES. For every filename
on this list, we verify that the file exists in $(KERNEL_MODULE_DIR),
and if it does, we include its name in the modules.load for the vendor
kernel boot ramdisk.

Bug: 194712883
Change-Id: I91a1d834b32717d32621d0a67da9052324cab20c
2022-10-31 19:30:13 +00:00
Badhri Jagan Sridharan
694c890c33 Rename enable_usb dev node to move_data_to_usb
kernel dev attribute has now been renamed from enable_usb
to move_data_to_usb. Update the same.

Bug: 251381400
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I8e4aa0b2e09bfef807f0169eabb79e2fa2e4d2c7
2022-10-31 14:07:51 +00:00
Taehwan Kim
edfbe0ff75 BoardConfig.mk: add BOARD_SUPPORT_MFC_ENC_BT2020
Bug: 239912381
Test: atest android.mediav2.cts.EncoderColorAspectsTest
Change-Id: I68be5ef52d60d65886cf9e1dae5069e7daa60775
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
2022-10-31 12:17:47 +00:00
Ruofei Ma
4ac953829d update performance-point for AV1 decoder
Use the solution mentioned in b/254207680 to solve the issue
where 180fps might not be picked up in some test cases.

Bug: 254207680

Test: MultiDecoderPairPerfTest
Test: MultiDecoderPerfTest
Test: android.media.misc.cts.MediaCodecListTest
Test: android.video.cts.CodecDecoderPerformanceTest

Signed-off-by: Ruofei Ma <ruofeim@google.com>
Change-Id: Ib6c0b4b37a981dc0ffd27aef18614d40fd3603a9
2022-10-27 17:22:20 +00:00
Hua Cheng
f7f4d8e84f [Steadiface] Disable landmark inference dsp usage.
Bug: 255244818
Test: CTS, GCA

Change-Id: Ia58fd269e611e8eda8d7abfce25f906f9f9e4f18
2022-10-24 16:12:53 +00:00
Ruofei Ma
05e1012a22 Revert "update performance-point for AV1 decoder"
This reverts commit 747f7bb6d7.

Reason for revert: This fix has side effects as described in b/254207680

Bug: 254207680

Change-Id: I771f4d04b17d7e733d9ac163665994a16ea5d711
2022-10-21 20:02:42 +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