Commit graph

24 commits

Author SHA1 Message Date
Darren Hsu
7dfafc70a0 powerstats: set AoC clock for timestamp calculations
Bug: 233923713
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I40c155c78331255ec5a7d9300798cec0a3d219f5
Merged-In: I40c155c78331255ec5a7d9300798cec0a3d219f5
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-06-17 12:49:04 +00:00
Kelly Rossmoyer
9247e99d14 Revert "powerstats: set time limit as timeout for AoC"
Revert "powerstats: set time limit as timeout for AoC"

Revert "powerstats: timeout mechanism for AoC data provider"

Revert submission 17800080-power-stats-aoc-timeout

Reason for revert: Causing crashes due to improper thread sync
Reverted Changes:
I71a9e6817:powerstats: timeout mechanism for AoC data provide...
I725c00745:powerstats: set time limit as timeout for AoC
I5b290a53d:powerstats: set time limit as timeout for AoC

Change-Id: Iac058ba7f0984bb86c505738c1eb20b7b6ddff83
2022-04-25 03:56:51 +00:00
Darren Hsu
334bd6d2ec powerstats: set time limit as timeout for AoC
Bug: 219630658
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I5b290a53dcd5325aa55fd95a42c1af95066f550c
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-04-21 04:07:54 +00:00
Kelly Rossmoyer
7eb5f7e1db Revert "powerstats: set time limit as timeout for AoC"
Revert "powerstats: set time limit as timeout for AoC"

Revert "powerstats: timeout mechanism for AoC data provider"

Revert submission 17442015-powerstats-aoc-timeout

Reason for revert: Causes PowerStatsHAL crashes (b/227578192)
Reverted Changes:
I9a9eb27fa:powerstats: set time limit as timeout for AoC
Ib70000580:powerstats: timeout mechanism for AoC data provide...
Ied599054c:Revert "powerstats: disable AoC power stats report...
Iaf5af43eb:powerstats: set time limit as timeout for AoC

Change-Id: I7b7a42d3f94769bf937a4d9693444a5f4550dc3f
2022-04-01 22:16:22 +00:00
Darren Hsu
0be3bbd083 powerstats: set time limit as timeout for AoC
Bug: 219630658
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I9a9eb27fab549f4351bcfae6e335e050c48fc753
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-03-30 08:05:25 +00:00
Darren Hsu
cce5e9f8b0 powerstats: add AoC restart count stats
Bug: 226173008
Test: dump power stats and verify restart count increased
Change-Id: Ia0cfcd9f9dae68dc21c33074147e8b6db547ebc9
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-03-25 07:04:11 +00:00
Darren Hsu
916a8281fb powerstats: add devfreq state residency for BO
Bug: 216600952
Test: dump power stats and see the state residencies appear
Test: verified that the string buffer is enough
Change-Id: I3dacc12f307c8d2ddbe92380e751c4e285dd9b8d
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-03-17 05:21:24 +00:00
Darren Hsu
29832dc73a powerstats: add devfreq state residency for MFC and DISP
Bug: 218772968
Bug: 216600952
Test: dump power stats and see the state residencies appear
Test: verified that the string buffer is enough
Change-Id: Id57cefa7c35145edfc617c97ac8ff80b4827214a
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-02-10 12:06:09 +00:00
Richard Hsu
82a677c786 [Bringup] Enable Darwinn Logging Service on Android T
Enables the EdgeTPU firmware logger on Android T, for WCH.
Also makes the tpu_usage paths up-to-date with the new path: edgetpu-soc

Bug: 196105736

Test: Manually triggered firmware logs to confirm.

Change-Id: I72040f0775f24b128130e4e5d1aba1998b29d723
2021-08-13 01:27:20 +00:00
samou
ed31b7318f powerstats: correct TPU DVFS
Bug: 196161144
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I8ec871afa4ca2050b5ddd59d0ea33b237b2b8a63
2021-08-11 20:50:08 +00:00
samou
aeae45a3ea powerstats: add GPU-DVFS
Bug: 193542516
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I7490a172932338e90d8886b1e26a5c05d4544647
2021-07-19 19:23:33 +00:00
samou
b14db4c9a6 powerstats: correct frequency unit
Bug: 192579762
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I8f7703c30116622483faa55f9dc16a5558d43c08
2021-07-19 19:05:12 +00:00
samou
c1cf9f84b5 powerstats: Fill in P21 TPU power profile number
Bug: 189249509
Change-Id: I134f3c005ec0eb17e97b829627ba22d552b7bfdb
2021-06-15 11:23:02 +00:00
Benjamin Schwartz
a05a8c3854 powerstats: Remove Wifi and BT placeholder consumers
Bug: 185392117
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I4ee4837f882c2666e99c02836dd3c850871b420b
2021-06-01 17:17:03 -07:00
Benjamin Schwartz
630f471fcf powerstats: Add CAM, INTCAM, and TNR devfreq stats
Bug: 186581089
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I1c01971518769a2ea0e5d360ef99e07df735e0fb
2021-05-27 17:51:05 +00:00
samou
513c4afaa1 powerstats: Add TPU EnergyConsumer power attribution
Bug: 185564760
Change-Id: I6550ed839599c979ee09492fb8eaabd50f04ebe2
2021-04-29 15:51:11 +00:00
Benjamin Schwartz
e171ad07f5 powerstats: Move NFC stats to device specific
Bug: 184722506
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I99b82c52d0dee1cf3b7eda7e4985d9b40db162d0
2021-04-22 15:28:23 -07:00
Benjamin Schwartz
6899dcc219 powerstats: Add INT state residency stats
Bug: 168833648
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Iecfb2ec05566a0d432a39904adddd442751c44e6
2021-04-16 00:21:30 +00:00
Benjamin Schwartz
3cc937165b powerstats: Add GPS state residency
Bug: 181577366
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I0fa4356542a838618e712e9b0abbf02b99db7f3a
2021-04-15 05:08:16 +00:00
Benjamin Schwartz
2219a99232 powerstats: Add PD on stats
Bug: 176452458
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I871e93c5e46d0c88bd8a07eec8a38c8d1cf81d9a
2021-04-14 18:57:35 +00:00
Benjamin Schwartz
d9e7656d60 powerstats: Correct DVFS operating points
Bug: 180261952
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I472a74218934ee6f9fae82fe36ddb924bfcd70ee
2021-04-14 18:57:32 +00:00
samou
9db455e69d powerstats: Fill in P21 GPU power profile number
Bug: 184042446
Change-Id: Ifbc00ed0a9de98f65e7f0c4b1981e45f0b1887ba
2021-04-09 10:13:01 +00:00
Benjamin Schwartz
3ddb599459 powerstats: Add device specific display states
Bug: 167216667
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I977621b0a1502b1482eaac0922ded781ece007e0
2021-04-07 03:22:26 +00:00
Benjamin Schwartz
3c712491cf Move power stats service to device specific folders
Bug: 183052760
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I4d4881e227982aa17b88af8844c82dc448ef5b6f
Merged-In: I4d4881e227982aa17b88af8844c82dc448ef5b6f
2021-04-06 04:08:17 +00:00
Renamed from powerstats/service.cpp (Browse further)