Ryan Prichard
4ed3c2fb25
zuma: avoid vector<const T>
...
std::vector<const T> uses std::allocator<const T>, which is an
undocumented libc++ extension to the C++ standard library. The extension
was removed in llvm.org/PR96319. Use an ordinary non-const T instead.
Bug: http://b/349681543
Test: m android.hardware.power.stats-impl.zuma
Flag: EXEMPT, refactor to fix build failure
Change-Id: I47d0b3a441ab4ec8dd2ad8e794ae84f184d0d40f
2024-09-13 09:25:49 -07:00
Midas Chien
8951bbdbfc
powerstats: update MRR refresh rate residency node path
...
Refresh rate residency is not directly related to backlight state.
Relocate to a more appropriate location.
Bug: 315424658
Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest
Change-Id: Ib8d38e04aa6e76766bb05f11b50670094ae55347
2024-01-12 07:16:20 +00:00
Darren Hsu
bc01b6ec02
powerstats: expose display MRR state residency data provider
...
Bug: 317192192
Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest
Change-Id: I1e02ffa0dfcfe61e7c2fa0acb44241b322046b0a
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-12-20 20:21:13 +08:00
Darren Hsu
3c8118e0f8
powerstats: change TPU DVFS data source from ACPM to TPU kernel
...
ACPM has an issue b/315079424 that reports incorrect TPU DVFS
residency. So change the data source from ACPM to TPU kernel.
Bug: 310094590
Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest
Change-Id: If4bdaeea510b1a8e72d057a7fbb0dc03f6a6c665
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-12-12 23:20:13 +08:00
Treehugger Robot
8b74f7db0b
Merge "powerstats: update TPU energy consumer stats" into udc-d1-dev am: f5ac9c0c06
am: a0b7dad09a
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/23720969
Change-Id: I8c51cf485930d4e13575ca1f9318e3473a23cb07
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-19 02:53:30 +00:00
Darren Hsu
30563b4268
powerstats: update TPU energy consumer stats
...
Bug: 253702169
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I24b846527432aa614534cffe637e306b83af1e81
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-06-16 17:22:15 +08:00
Darren Hsu
88a5bd2684
power: update sysfs path for NFC state residency
...
Bug: 270498656
Test: run singleCommand pts -l verbose -m PtsPowerTestCases
Change-Id: I491335c052de363c422ede7a3fb49d5a164a0d7c
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-06-14 11:57:09 +08:00
Darren Hsu
8828463175
powerstats: Use AdaptiveDvfs data provider for MIF-DVFS reporting
...
Bug: 273416698
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I1ee21deb27d0c8eafdff315450a998df12cbb606
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-03-14 14:46:21 +08:00
Darren Hsu
3cda5eb2b1
powerstats: use AdaptiveDvfsStateResidency data provider for CPUCL
...
DVFS data provider is using predefined frequency table for CPU DVFS
power stats reporting. If different SoC versions define different
CPU frequencies, the predefined table should be updated, otherwise
the residencies of some impacted frequencies will be always 0. So
Make it adaptive to reduce the maintenance efforts.
Bug: 272642210
Bug: 267638537
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Ifa39227b9a8b0cc89d8f5a78373f615348a49d4d
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-03-13 11:37:49 +08:00
Darren Hsu
a7dca1b9c1
powerstats: add support of sleep duration in CPUPM data provider
...
Bug: 263276734
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: If873c5d50dd12a54addd14f56aebd48fdee91415
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-02-13 22:47:41 +08:00
Darren Hsu
f8079c0484
powerstats: update CPU core state residency stats
...
Bug: 263276734
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I23de23b2119e2ac114c1fdf7085dc68e948bc301
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-01-10 10:43:30 +08:00
Darren Hsu
a5cf84d372
powerstats: add CPU core state residency stats
...
Bug: 263276734
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Ie1ff6caaf264ccc4442932f9fb37078f27ff44ce
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-01-07 14:52:06 +08:00
Darren Hsu
8ba4347676
powerstats: add NFC state residency stats
...
Bug: 262487981
Bug: 262489554
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Ib5c80601853c1d6080f1bc36b54b62715ea97081
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-12-20 15:53:09 +08:00
Darren Hsu
6df08fb5b1
powerstats: add BW power domain stats
...
Bug: 243041321
Bug: 244541973
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I403db5021c467e50f55e9e8071f69cb5dbd52d9d
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-11-11 15:07:48 +08:00
Darren Hsu
23119787cf
powerstats: add AUR MIF-REQ state residency stats
...
Bug: 250097197
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I30bfd15a37582c00a09df83445580064a78794e9
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-11-09 15:13:27 +08:00
Darren Hsu
6ec79d62e1
powerstats: update GPU energy consumer stats
...
Bug: 244695633
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I4cd274a96f4b3857262a7e0a656b3093b8e42eb7
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-11-07 18:19:41 +08:00
Darren Hsu
e15f63968a
powerstats: add AUR DVFS state residency stats
...
Bug: 244519060
Bug: 256016398
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I9c1e7af0028f28d34e6f2194304f0433f97bb513
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-11-03 15:32:10 +08:00
Darren Hsu
5a69d9ee33
powerstats: expose common data provider methods
...
Bug: 256942114
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I41afe01aea5d2e816218540a1a14e2e2519b65f7
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-11-02 10:25:04 +08:00
Darren Hsu
226ee13075
powerstats: update core stats state residency
...
Bug: 244519855
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Id83074079bade4f6a3aace25b513ccc99a255fb1
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-11-02 09:18:20 +08:00
Darren Hsu
cf9769e614
powerstats: update TPU DVFS state residency
...
Bug: 244518971
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Iac01cd2891fa94aaa1e86a0d924d164bf0c55cdc
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-11-01 20:50:50 +08:00
Darren Hsu
c6d6807f9d
powerstats: update power domain state residency
...
Bug: 244541973
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I6b4a6f8d1f3bc56dcbabe661a18f4f866a5af904
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-11-01 19:32:05 +08:00
Darren Hsu
34d8dea1ae
powerstats: use fvp_stats to collect CPU/MIF state residencies
...
Bug: 244516713
Bug: 244516289
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I4454208cc4ef2a47981f78ba857e331d4f56b39e
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-10-28 18:18:06 +08:00
Darren Hsu
bf8d4423e9
powerstats: add new Devfreq state residencies
...
Bug: 244689272
Bug: 244689401
Bug: 244689409
Bug: 244689754
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Id4cd9be4ce032102d53ee34756470c952036d863
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-10-26 14:26:34 +08:00
Darren Hsu
c2b947484a
powerstats: update CLx-DVFS state residency
...
Bug: 254026553
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Idd69fba97968d49434ab8fe2422593f8af54fc83
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-10-17 21:48:32 +08:00
TreeHugger Robot
fb27d1a566
Merge "powerstats: update path for energy meter"
2022-10-11 04:14:53 +00:00
Ben Schwartz
2f39df8cb3
powerstats: Fix CPU DVFS frequencies
...
Bug: 250095402
Change-Id: I64ab645de194e5bc86b3e4a92a8ade6db1d51963
Test: dumpsys android.hardware.power.stats.IPowerStats/default
2022-10-10 22:11:08 +00:00
Darren Hsu
ff90cfc166
powerstats: update path for energy meter
...
Bug: 250976913
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Id97facc75794809ed1b5fe42e214281145b0dbd0
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-10-07 11:16:25 +08:00
Darren Hsu
d45112c2e2
powerstats: update GPU sysfs path for state residency
...
Bug: 244520099
Bug: 243096772
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: If801c99b3eeeb9ca4a396612bd59f7dbebf17cc9
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-09-12 10:59:16 +08:00
Darren Hsu
dde4bdd7f9
powerstats: update sysfs path for AoC, GPU and PCIe
...
Bug: 244408938
Bug: 242243692
Bug: 244520099
Bug: 244540752
Bug: 244540747
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Id781bc0514eb1b95f7d4d7c2c953cb810f0629c0
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-09-05 19:01:20 +08:00
Jaegeuk Kim
5fe10163cb
Update ufs path
...
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I58fd3772ce87040df334d7d16bc5c0e4e8d0c392
2022-06-24 10:37:56 -07:00
Darren Hsu
bfc6563cca
powerstats: set AoC clock for timestamp calculations
...
Bug: 233923713
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I05639346ef89eb9540518e4d28f336634e293d48
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-06-17 20:55:04 +08:00
Aaron Ding
e7fa12e468
Revert "powerstats: set time limit as timeout for AoC"
...
This reverts commit e630cfaaa9
.
Reason for revert: align with ag/17935513 and ag/17935512
Change-Id: Ie2fff80785a0c7acee75d30cac9bf3b4f31699d2
2022-04-25 06:53:59 +00:00
Darren Hsu
e630cfaaa9
powerstats: set time limit as timeout for AoC
...
Bug: 219630658
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I725c00745890350f4227fc9408d926abc783ea66
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-04-22 11:16:17 +08:00
Aaron Ding
66befd88e3
Create device Ripcurrent on Zuma platform
...
s/cloudripper/ripcurrent
s/gs201/zuma
s/pantah/ripcurrent
Bug: 229340586
Change-Id: Ic5dffbbfadbb1eb8479587b95222801426bba35e
Signed-off-by: Aaron Ding <aaronding@google.com>
2022-04-19 12:55:56 +08:00
Aaron Ding
d88f9a90bd
Branch zuma from gs201
...
Branch zuma from gs201 sha1 9009acf5c217f553b45ea82aa0702607229f0347
cp/pantah/ripcurrent
cp/gs201/zuma
Bug: 229340586
Change-Id: Ia312c20dae892ead9bf06728b4ef5c0c260ad045
Signed-off-by: Aaron Ding <aaronding@google.com>
2022-04-19 12:45:55 +08:00