Commit graph

17 commits

Author SHA1 Message Date
Darren Hsu
807ab9bc7e powerstats: correct TPU clock for ZP
Bug: 335900447
Bug: 353411106
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Flag: EXEMPT bugfix
Change-Id: I585dd4256dd68f3af35222095a10d833c328f372
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2024-07-16 14:42:16 +08:00
Darren Hsu
a4c83326a4 powerstats: fix GPU and TPU energy consumer issue
1. S2S_VDD_G3D is only one monitored rail for GPU.
2. TPU rail has been renamed to S7M_VDD_TPU.
3. TPU frequencies have been changed.

Bug: 339320507
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I5e965e9d58a1ae08706fb46c6a4fc9549a889352
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2024-05-08 14:52:20 +08:00
Darren Hsu
debc35444a powerstats: introduce Modem PCIe GEN state residency
This is a feature request from Modem team to add new state
residency stats for Modem PCIe GEN speed.

Bug: 338278462
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I909d7ac7b42d0b91633796f7a868fa525891e719
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2024-05-03 15:04:22 +08:00
Darren Hsu
f31af5a3a4 powerstats: merge two callback data providers to single
Bluetooth HAL and Display HWC will register callback with
PowerStats HAL. Single PixelStateResidencyDataProvider supports
multiple callback registerings.

Bug: 335379104
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I24da89fbcd26e6472f047a504e2603186925cdc8
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2024-04-17 16:11:25 +08:00
Darren Hsu
0cf027cad7 powerstats: support for display VRR power stats
Bug: 329201432
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Idaeb973dfa9c72d8e6adde1a83b183c3b90b2180
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2024-03-13 11:52:50 +08:00
Darren Hsu
f5f7a90578 powerstats: add GNSS power stats for ZP devices
Bug: 309876364
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I22cefaf0762e0c125ad4a1b6c0f0b11847df44a3
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2024-02-19 16:31:24 +08:00
Darren Hsu
a3c3ccc7d3 powerstats: support adding MRR stats by entity info
Bug: 321871758
Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest
Change-Id: I52ddbe65606d7289faf9a2b186d8e81ff69e9a4b
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2024-01-25 17:15:37 +08:00
Darren Hsu
a76e4d9372 powerstats: expose display MRR state residency data provider
Bug: 321871433
Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest
Change-Id: If556198f4334eacda88e8a6f76efdb01b8e838f5
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2024-01-23 17:37:20 +08:00
Darren Hsu
37ab4eee9e powerstats: update CPU core configurations
Bug: 316437592
Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest
Change-Id: Ia49f8aec7c6ec208583414a80d4e852081435c0a
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-12-15 11:18:02 +08:00
Darren Hsu
573f0586dd 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: Ifc7ee18a7e891eb79e53affeab81c9d497db9e9f
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-12-12 23:34:27 +08:00
Darren Hsu
033e0f615b powerstats: update NFC sysfs path for ZumaPro
Bug: 291862254
Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest
Change-Id: I12d3d5601776e0e130d55e3078d2024a363599d1
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-11-15 16:51:12 +08:00
Darren Hsu
b9772a849a powerstats: update CPU cluster energy consumer
Bug: 308902661
Test: vts-tradefed run vts -m VtsHalPowerStatsTargetTest
Change-Id: Ic2e33239b1c5ac9d04817d49a8a9d8ef8901dafb
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-11-09 14:28:00 +08:00
Darren Hsu
dcd8acd397 powerstats: add pd-hsi0 power domain state residency
Bug: 302450566
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I19858b000f6d564e2e148c7f21e3e55591533e19
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-09-28 16:28:31 +08:00
Darren Hsu
0f74bf9f47 powerstats: correct CL2-DVFS mapping number
Bug: 302016063
Test: Build pass
Change-Id: I7924b0888fa7bb9e7382a2f3e9891a5440ad63a5
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-09-26 12:38:59 +08:00
Zheng Pan
05a3dcba0a Update i2c bus sysfs path
Bug: 296941196
Test: make sure i2c bus paths exist and are accessable.
Change-Id: Id5f8d12c35c6c0d41e82776d2d6dff4371e73213
2023-08-25 22:13:03 +00:00
Darren Hsu
473e4c88ae powerstats: init common data providers
Bug: 291863460
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I68363f62865f33de0d777da96d36b1b6d259499f
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2023-07-19 16:09:07 +08:00
Robin Peng
dec234f475 init zumapro from zuma sha 4daedb8feb4d4
Bug: 272725898
Change-Id: I1e1ab5d15e7f4b2b59e28f2e52e07cd7e12f25b3
2023-03-31 15:10:16 +00:00