Commit graph

11 commits

Author SHA1 Message Date
Darren Hsu
8c4f8807fd powerstats: disable AoC power stats reporting
This is a workaround for the AoC long latency issue. Re-enable
AoC power stats reporting when the latency issue is fixed or
the timeout mechanism is merged.

Bug: 210045267
Test: Dump power stats while video streaming and see no timeout
Test: from dumpsys
Change-Id: I83545d45bb1bbb5bb18ca4bff4bd261f332a4570
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-02-17 10:26:50 +08:00
Darren Hsu
6dffe2029d 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: Ib4b2986adf6cdd0ab74daa086ef843caa250ac84
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-02-10 13:00:20 +08:00
Darren Hsu
77fc18937b powerstats: correct CPU DVFS state residency stats
Bug: 213642474
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I7f4cacc3e3c760c6c420c7e5c82e9fe3dbd9d258
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-01-11 12:19:26 +00:00
Darren Hsu
88f8c4b2b4 powerstats: remove common data providers in specific directory
The common data providers will be moved to gs common directory. So
I removed them in this directory and used gs common library to get
the APIs.

Bug: 206576142
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I81e7a957490fb563fdf25a6434aaf5e886456c5d
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-01-04 06:14:51 +00:00
Darren Hsu
7d9490247f powerstats: add mmWave rail into modem energy consumer
Bug: 211073344
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I9ecd3702605be287e76b8ed584eaba137a482b05
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2021-12-22 03:03:25 +00:00
Darren Hsu
729a55acdd powerstats: add DVFS state residency for INTCAM, CAM and TNR
Bug: 203063331
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I4d765fb9813ead483cc1ba4f159dbb341693ee4c
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2021-12-03 02:26:56 +00:00
Darren Hsu
2dcb8a176f powerstats: add TPU MIF-REQ state residency
Bug: 206913765
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Ifec43d031ec15499547c325afdddd549b1d43179
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2021-11-30 03:17:33 +00:00
samou
21623c73d0 powerstats: correct TPU, GPU, several DVFS buckets and frequency unit
Bug: 197152245
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Ie4f260c643e3d19f8080436b3a0197764196ccfc
2021-08-30 07:09:18 +00:00
Richard Hsu
64c714a88e [Bringup] Enable Darwinn Logging Service on Android T
Enables the EdgeTPU firmware logger on Android T, for both WCH and PRO.
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: I6d3c7fd31046296fb2e87613a97c85a151220217
2021-08-10 17:06:43 -07:00
Thierry Strudel
d045354a90 powerstats: fix ODPM device names
============= PowerStats HAL 2.0 energy consumers ==============
CPUCL0       :       24968.54 mWs
CPUCL1       :        8919.14 mWs
CPUCL2       :       11926.69 mWs
MODEM        :           0.00 mWs
GPS          :           0.00 mWs
Wifi         :           0.00 mWs
BT           :           0.00 mWs
display      :       71299.61 mWs
========== End of PowerStats HAL 2.0 energy consumers ==========

============= PowerStats HAL 2.0 energy meter ==============
                           Channel    Cumulative Energy
     [PPVAR_VSYS_PWR_DISP]:Display         71299.61 mWs
            [VSYS_PWR_MODEM]:Modem             0.00 mWs
          [VSYS_PWR_RFFE]:Cellular             0.00 mWs
                 [S1M_VDD_MIF]:MIF          6768.08 mWs
         [S2M_VDD_CPUCL2]:CPU(BIG)         11926.69 mWs
         [S3M_VDD_CPUCL1]:CPU(MID)          8919.14 mWs
      [S4M_VDD_CPUCL0]:CPU(LITTLE)         24968.54 mWs
                 [S5M_VDD_INT]:INT          6053.63 mWs
                   [S6M_LLDO1]:LDO          4850.91 mWs
                 [S7M_VDD_INT]:INT          3893.55 mWs
                [S10M_VDD_TPU]:TPU          1246.19 mWs
             [L1M_VDD_ALIVE]:Alive          2243.80 mWs
          [S1S_VDD_CAM]:Multimedia          5501.09 mWs
                 [S2S_VDD_G3D]:GPU          6432.73 mWs
                   [S3S_LLDO1]:LDO         15484.51 mWs
               [S4S_VDD2H_MEM]:DDR         11950.26 mWs
                [S5S_VDDQ_MEM]:DDR          5148.75 mWs
                   [S6S_LLDO4]:LDO         13688.50 mWs
                    [S7S_MLDO]:LDO         24895.53 mWs
              [S8S_VDD_G3D_L2]:GPU          6934.05 mWs
                 [S9S_VDD_AOC]:AOC          7403.07 mWs
                  [S10S_VDD2L]:DDR          9040.13 mWs
               [L9S_GNSS_CORE]:GPS             0.00 mWs
              [L21S_VDD2L_MEM]:MEM             0.00 mWs
========== End of PowerStats HAL 2.0 energy meter ==========


Signed-off-by: Thierry Strudel <tstrudel@google.com>
Change-Id: I83053e4e5b1414cf1410b38fe03d8bbadc70e5bd
2021-06-22 01:04:00 +00:00
Pat Tjin
89841bf57a s/gs101/gs201
do a global substitution

Bug: 186836335
Signed-off-by: Pat Tjin <pattjin@google.com>
Change-Id: Ic79e8983d04615be7da70ebb2b5092aae5178495
2021-05-20 17:54:35 +08:00
Renamed from powerstats/Gs101CommonDataProviders.cpp (Browse further)