Commit graph

34 commits

Author SHA1 Message Date
Jack Wu
bd99c7ad2f dump_power: add battery caretaker dump into bugreport
logging for AACR(+H), AAFV, AACT, AACC and AACP Version

Bug: 384737509
Test: adb bugreport
Flag: EXEMPT bugfix
Change-Id: I4e1feff739abeb22bbffe03bf8d903962eade26f
Signed-off-by: Jack Wu <wjack@google.com>
2024-12-20 12:29:53 +08:00
Spade Lee
3f193d644d dump_power: zumapro: correct dump path
- move fg registers dump from debugfs to sysfs
- add pca9468/ln8411/dual_batt path
- remove unused debug path

Bug: 377895720
Flag: EXEMPT bugfix
Change-Id: I44ff1f6d14d9c440dccd832b6012c9dcaa0f7954
Signed-off-by: Spade Lee <spadelee@google.com>
2024-11-12 16:51:08 +00:00
Baltazar Ortiz
9af16ad5e4 dumpstate: Use generic dc_mains for all parallel chargers
Bug: 360866957
Test: adb bugreport
Flag: EXEMPT bugfix
Change-Id: If9268d4ac8ec857c3dd9a7f2cae6b6485cfb2e95
Signed-off-by: Baltazar Ortiz <baltazarortiz@google.com>
2024-09-25 23:24:05 +00:00
Treehugger Robot
ac8d8990e8 Merge "dump_power: add max77779sp dump path" into main 2024-08-13 16:43:17 +00:00
Spade Lee
ced94e1197 dump_power: add max77779sp dump path
Bug: 347452474
Test: adb bugreport verify ok
Flag: EXEMPT bugfix
Change-Id: I69483cd7afd121c4d127d234685ff928bbf37b4c
Signed-off-by: Spade Lee <spadelee@google.com>
2024-08-12 14:01:58 +00:00
Spade Lee
de1ffe6821 dump_power: zumapro: add FG dump registers path
Bug: 355756379
Test: adb bugreport verify ok
Flag: EXEMPT bugfix
Change-Id: I58a2a7f79bccbd560440054c2593b0ad6968b84c
Signed-off-by: Spade Lee <spadelee@google.com>
2024-08-12 14:01:54 +00:00
Kyle Tso
b616d05cca dumpstate: Dump manual_disable_vbus in TCPC
Bug: 335368150
Bug: 344686002
Bug: 352490157
Flag: EXEMPT bugfix
Change-Id: I1f6cc8bc830d4e23e86b0fc93fa49f2944835cda
Signed-off-by: Kyle Tso <kyletso@google.com>
2024-08-05 11:25:27 +00:00
Kyle Tso
c0e32b0bea dumpstate: Modify dumpTcpc path and content
Ported from I248fb250b94cbd4078e7f3c44da83f62002b53fb with some
modifications.

Bug: 357543284
Test: checked the content in dumpstate
Flag: EXEMPT bugfix
Change-Id: I35502167baedb96b58f214cb6842fb1ea4dee3e0
Signed-off-by: Kyle Tso <kyletso@google.com>
2024-08-05 11:07:36 +00:00
Vishvam Mazumdar
20baf04a64 Merge "Add CPU Idle Histogram Stats to dumpstate board file." into main 2024-07-10 21:41:10 +00:00
Vishvam Mazumdar
cae96e4e50 Add CPU Idle Histogram Stats to dumpstate board file.
This change is to allow the CPU Idle Histogram Stats to be dumped in
bugreports so that there is more insight into the idle behavior of
devices in the field.

Test: Build/Flash
Test: adb bugreport
Bug: 344908619
Flag: EXEMPT bugfix
Change-Id: I3b7b0d573bfd5f7e5e9f05c333b5a38940f3d8d6
Signed-off-by: Vishvam Mazumdar <vmazumdar@google.com>
2024-07-10 21:40:39 +00:00
Jack Wu
77f2807cf9 dump_power: add RT9470G dump into bugreport
1. power supply properties
2. registers

Bug: 347914940
Test: adb bugreport
Flag: EXEMPT bugfix
Change-Id: Ie6f2de3acef515665727f3e3bc0e4373778ffe07
Signed-off-by: Jack Wu <wjack@google.com>
2024-06-24 01:52:47 +00:00
Hiroshi Akiyama
9bcf2600ec dump_power: parse vimon in dumpstate board
Bug: 345835957
Test: generate bugreport
Flag: EXEMPT bugfix
Change-Id: Id611cd76a0133e1525ffe74e82a6c0d940e39aab
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
2024-06-11 20:28:37 +00:00
Jenny Ho
596e99f6e3 Merge "dump_power: add max77779 fwupdate logbuffer into bugreport" into 24D1-dev am: b19d9e72a9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/27057698

Change-Id: I9122f9c85e6ae0bc0fc357f7adefb06f2e7bf06d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-24 06:06:48 +00:00
Jenny Ho
95ec940804 dump_power: add max77779 fwupdate logbuffer into bugreport
Bug: 334198978
Change-Id: I62fcde4a49024ccacc96a3139bb3284c41ceea58
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2024-04-23 08:04:40 +00:00
Treehugger Robot
e6aab8f51f Merge "dumpstate: Dump logbuffer_pogo_transport" into main 2024-04-16 01:08:35 +00:00
Jenny Ho
cd9e0185ec dump_power: add dual battery debugfs path
Bug: 334773288
Change-Id: If8d69a88b0d3c1fb5ab37b855e1efd265eab618b
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2024-04-15 09:58:15 +00:00
Kyle Tso
bc9752ea63 dumpstate: Dump logbuffer_pogo_transport
Bug: 328314131
Change-Id: I2ff93e33efa9727d14f21a68e8261221a1091638
Signed-off-by: Kyle Tso <kyletso@google.com>
2024-04-15 17:25:08 +08:00
Hiroshi Akiyama
cc02e0259d dumpstate: add checks in irq duration count
Add checks to vector size before accessing vector contents to prevent
null pointer exception.

Bug: 330796833
Test: adb bugreport
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d55a1eb732fb6deac79b21cabaf606f0c477612f)
Merged-In: I1a50337b1fde3b763ee7f154fa206f98681045dd
Change-Id: I1a50337b1fde3b763ee7f154fa206f98681045dd
2024-03-25 18:29:15 +00:00
Hiroshi Akiyama
d55a1eb732 dumpstate: add checks in irq duration count
Add checks to vector size before accessing vector contents to prevent
null pointer exception.

Bug: 330796833
Test: adb bugreport
Change-Id: I1a50337b1fde3b763ee7f154fa206f98681045dd
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
2024-03-23 01:06:38 +00:00
William McVicker
3eb0112b43 Merge "Update tcpm i2c path with new device name" into main 2024-02-22 17:54:41 +00:00
Daniel Okazaki
bb47f85b04 dumpstate: moving charger nodes to user build
Bug: 323415060
Test: adb bugreport
Change-Id: Iabc4c810641acf54e2bebf5e441423bc341b54c8
Signed-off-by: Daniel Okazaki <dtokazaki@google.com>
2024-02-17 04:28:18 +00:00
Will McVicker
3c01f2056c Update tcpm i2c path with new device name
The new names fix uninformative kernel wakelock names.

Bug: 315190967
Bug: 323447554
Change-Id: I9f2d55b532f9a0f9692a0d613727893b588e600a
2024-02-16 15:14:02 -08:00
Spade Lee
c4c265ea45 dumpstate: add SoC residency dump
Bug: 319536756
Test: SoC residency was correctly shown in dumpstate board
Change-Id: I20bf91393efcf0edb6c458f55e228a227f930ee5
Signed-off-by: Spade Lee <spadelee@google.com>
2024-01-22 16:43:35 +00:00
Jenny Ho
1257aa5cdd Handle empty read from file.
Test: run /vendor/bin/dump/dump_power
Bug: 317934817
Change-Id: Ia4453483fdfaba838a1ffb3d38b243dceb9628e7
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-12-28 11:35:08 +08:00
samou
e4ceff9023 bcl: add lastmeal.csv into dumpstate
Test: ./dump_power
Bug: 293899466
Change-Id: I0ff03baf459fe4a2ae57a2837f4181b04d764e7b
Signed-off-by: samou <samou@google.com>
2023-12-15 14:39:17 +00:00
Hiroshi Akiyama
a9506fbf2a dumpstate: add evt count logging
Add capability for dump_power to log event counter logging

Bug: 299668264
Test: adb bugreport and check dumpstate_board.txt
Change-Id: I1fdf6214dc9b333044e395a8148349b26c0d5653
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
2023-11-06 21:52:17 +00:00
Treehugger Robot
6113111eea Merge "dump_power: fix the problem of not being able to dump properties" into main 2023-11-06 15:48:43 +00:00
Jack Wu
4f407e7b15 dump_power: fix the problem of not being able to dump properties
Bug: 309011602
Test: adb bugreport and check dumpstate_board.txt
Change-Id: I2b1cb98fad154511fe55c84ecf85272f58f634ee
Signed-off-by: Jack Wu <wjack@google.com>
2023-11-06 20:27:25 +08:00
samou
505f0b8308 bcl: support thismeal binary parsing
Test: ./dump_power and adb bugreport
Bug: 293899466
Change-Id: I4ba2ee96a02573993cd4de132db9095f73253041
Signed-off-by: samou <samou@google.com>
2023-11-02 11:49:05 +00:00
Sam Ou
ce8c8e9bb8 Revert "bcl: add parser for thismeal.bin and lastmeal.bin"
This reverts commit fa0ee1521c.

Reason for revert: migrate binary parser to battery_mitigation

Change-Id: I7c97c3cb91924cdc19f61c8b7ea85e6c49813c42
2023-10-31 16:56:47 +00:00
Sam Ou
61a1d02c32 Merge "bcl: add parser for thismeal.bin and lastmeal.bin" into main 2023-10-31 02:22:51 +00:00
samou
fa0ee1521c bcl: add parser for thismeal.bin and lastmeal.bin
Test: ./dump_power
Bug: 293899466
Change-Id: I648a4a0b205cbebd681613505bc5f91a848a3deb
Signed-off-by: samou <samou@google.com>
2023-10-30 07:04:25 +00:00
Daniel Okazaki
7fb00c91c3 dump_power: adding defender logs for charger and active time
Bug: 306108267
Test: build/flash
Test: adb bugreport
Change-Id: If9bf3e6ab1c6008cbefd4b09a8bb2802ff196207
Signed-off-by: Daniel Okazaki <dtokazaki@google.com>
2023-10-27 18:47:43 +00:00
Hiroshi Akiyama
e837d5240b Migrate dump_power.sh contents into cpp for improved speed
Bug: 299133307
Test: adb bugreport and check dumpstate_board.txt
Change-Id: Ied22b516844cb1d39a39fbbdee0b81a69c1d2e1c
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
2023-09-22 11:08:29 +00:00