Commit Graph

11 Commits

Author SHA1 Message Date
George Lee
7f2a1321a2 battery_mitigation: Fix lastmeal timestamp
Lastmeal.txt may be generated from after device rebooted from IRQ
triggering.  By applying limit on the time when it generates,
lastmeal.txt will not be generated after device rebooted.

Bug: 246817058
Test: Trigger brownout and confirm lastmeal.txt has correct timestamp
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I8b52f44fdc64f5ef74e0059720ed58c845e5bf60
2022-10-13 18:11:19 +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
Sayanna Chandula
45618a6723 Revert "thermal: Fix misalignment from removal of gxp cdev"
This reverts commit baedb92abf.

Re-enable gxp cooling device

Bug: 238273184
Test: build and boot on device
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: I341636bc5e7d8feced4593fdbd2638c244051499
Merged-In: I341636bc5e7d8feced4593fdbd2638c244051499
2022-09-19 20:33:36 +00: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
George Lee
a1f90033f6 mitigation logger: Update lastmeal generation
Recent reboot reason is updated.  Mitigation logger needs to be updated
per change.

Bug: 239548433
Test: Confirm lastmeal is generated.
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I7a9fd4225e5f3b0843e666f77296441ff44fbc4b
2022-09-14 13:06:31 -07:00
George Lee
713b995e29 logger: Change access right to lastmeal.txt
Bugreport cannot access lastmeal.txt due to access right.

Bug: 239709385
Test: confirm lastmeal.txt has system:system
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I50375ae10a7018b059245afbe571b6c0280ae808
2022-07-20 23:12:16 +00:00
George Lee
baedb92abf thermal: Fix misalignment from removal of gxp cdev
Earlier change removed the path without removing the indexer to the
corresponding array.  This change fixes this.

Bug: 236296247
Test: Build and confirm reading is valid
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Ic6335b252a01c7d80102cdbbc4f5dbf3a1639b55
2022-06-30 03:45:46 +00:00
George Lee
9ff57b81b8 logger: Ensure captured log not overwritten
Add additional file path to make copy of captured log.

Bug: 237282212
Test: Verified lastmeal.txt and thismeal.txt existence.
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I77606bf679c3eb1c55f2b135a6265e0e0e837c77
2022-06-28 19:39:58 +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
George Lee
e194f1eac4 mitigation: Add cdev state monitoring
Add DVFS monitoring to mitigation logging.

Bug: 228383769
Test: Confirm state logging
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I38b75eef1639b4a8959100b37e9064be04a53ede
2022-06-01 17:52:06 +00:00
George Lee
a5fa72f57b bcl: Add Mitigation Logger - Binary
Mitigation Logger logs battery related information for 1 second when it
is triggered by under voltage or over current interrupts.  Information
collected is to help debug system brownout.

Bug: 228383769
Test: Boot and Test
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Icc5bf599eff7715545ed66d352ec00ae5d633aa0
2022-05-27 08:40:21 -07:00