summaryrefslogtreecommitdiff
path: root/power-libperfmgr
AgeCommit message (Collapse)Author
2021-06-22adpf: clean up ADPF trace pointsJimmy Shiu
clean up ADPF trace points and use vendor.powerhal.adpf.uclamp.boost_cap instead of vendor.powerhal.adpf.uclamp.cap_ratio. Bug: 191551452 Test: build Change-Id: I457710b1bd9a7adbb55749d7bb915c736dde2751
2021-06-17Adpf: honor window setting for P,D caculationWei Wang
Also change default window setting to 0 Bug: 191409203 Test: Build Signed-off-by: Wei Wang <wvw@google.com> Change-Id: Ieadf50a64e795d9942373c411189adf9daaee779
2021-06-17power-libperfmgr: improve adpf logicWei Wang
Cache active state and reduce log spam Add value tracing into libperfmgr Use adaptive stale timeout based on rate limit Bug: 191331719 Bug: 191296994 Bug: 177493042 Test: boot Signed-off-by: Wei Wang <wvw@google.com> Change-Id: I1c1484c9277209bf68bd287ceae83e2b37684c62
2021-06-15Fix objects that are derived from refbaseWei Wang
Fixes: ag/14313466 Bug: 177493042 Bug: 191163855 Test: Build Change-Id: I94812997a8214b77a2e1d0bcf90ef62205c5adf6 Signed-off-by: Wei Wang <wvw@google.com>
2021-06-12ADPF: use PID algorithm to control cpu resourceJimmy Shiu
The patch includes: 1. Move from folder adpf to aidl. 2. Add PowerSessionManager class to maintain hint status. And PowerHintMointor looper thread for monitoring or updating PowerHintSession status. 3. Use PID algorithm to replace the step-wise alogrithm for cpu resource control. Test: build, boot to home, trace analysis Bug: 177493042 Change-Id: Ib7d3f414225b18954350341ca22b7be87a6202e7
2021-05-04Add flag to bypass uclamp syscallWei Wang
Test: boot Bug: 170650323 Signed-off-by: Wei Wang <wvw@google.com> Change-Id: I9ae71827b6039c4363ca038062599eb75234b75a
2021-04-14Update with more ToDoWei Wang
Bug: 177492680 Test: build Change-Id: If72b81539f082756643e06467b12933a22a65276
2021-04-14power: reduce log spam and refine trace titleWei Wang
Add bunch of TODO for team as well. Test: build Bug: 177492680 Bug: 185368789 Signed-off-by: Wei Wang <wvw@google.com> Change-Id: Ic1d5ecea10a60b23343866cd62519fda37bd6ec5
2021-04-13power: add PowerHintSession for ADPF implementationJimmy Shiu
Adapted from PoC from ag/13100800 Added more ATRACE for further tuning and debug Test: APPPID=$(adb shell pidof com.prefabulated.touchlatency); watch -n 1 adb shell grep uclamp /proc/${APPPID}/sched Test: atest VtsHalPowerTargetTest Bug: 177492680 Change-Id: I6bfd61b21dc1cde04f6ba9ae8d3533cd263ad814 Signed-off-by: Wei Wang <wvw@google.com>
2021-03-30libperfmgr: reduce log during bootWei Wang
Bug: 180923613 Test: build Signed-off-by: Wei Wang <wvw@google.com> Change-Id: I250e60b672ae8f6c69c16009f3274ef1a6bfff09
2021-03-15DO NOT MERGE resolve merge conflicts of ↵Bob Badour
0c82fe16a1f5f956cc4906e55230fa8921644a52 to sc-dev Change-Id: Ia4cbb3e2b746c9c19a3084085c4f2c4fbc8297ca
2021-03-12[LSC] Add LOCAL_LICENSE_KINDS to hardware/google/pixelBob Badour
Added SPDX-license-identifier-Apache-2.0 to: atrace/Android.bp bootctrl/Android.bp dynamic_partitions/Android.bp fastboot/Android.bp health/Android.bp kernel_headers/Android.bp misc_writer/Android.bp mm/Android.bp perfstatsd/Android.bp pixelstats/Android.bp power-libperfmgr/Android.bp power-libperfmgr/libperfmgr/Android.bp powerstats/Android.bp powerstats/aidl/Android.bp pwrstats_util/Android.bp radio/Android.bp radio/gril_carrier_nv_headers/Android.bp recovery/Android.bp usb/Android.bp vibrator/Android.bp vibrator/common/Android.bp vibrator/common/bench/Android.bp vibrator/cs40l25/Android.bp vibrator/cs40l25/bench/Android.bp vibrator/cs40l25/diag/Android.bp vibrator/cs40l25/tests/Android.bp vibrator/drv2624/Android.bp vibrator/drv2624/bench/Android.bp vibrator/drv2624/tests/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: Android.bp thermal/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I58efe8db7cc3f22a585c6e3a80bef41c48b49c8d Merged-in: I58efe8db7cc3f22a585c6e3a80bef41c48b49c8d
2021-03-03Print error message am: 7a38f410ad am: c938f616d5 am: e47b5ba63dHaibo Huang
Original change: https://android-review.googlesource.com/c/platform/hardware/google/pixel/+/1612362 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Id8a917b53d0e5c06bcf283efe8b7689dc90fbe21
2021-03-02Print error message am: 7a38f410ad am: c938f616d5Haibo Huang
Original change: https://android-review.googlesource.com/c/platform/hardware/google/pixel/+/1612362 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ibdb3f15455a39d16036ecaaab1e07efc3456282f
2021-03-02[libperfmgr] Use new jsoncpp API am: ec83112177 am: 2bbc79220b am: a20a88dbe2Haibo Huang
Original change: https://android-review.googlesource.com/c/platform/hardware/google/pixel/+/1607556 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I856ef661a5c2b494c80911f1b364e9d62c34abb9
2021-03-02[libperfmgr] Use new jsoncpp API am: ec83112177 am: 2bbc79220bHaibo Huang
Original change: https://android-review.googlesource.com/c/platform/hardware/google/pixel/+/1607556 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ib8f572d0fc8ac016d2fe21bd6b2e3f01592f1f3b
2021-03-01Print error messageHaibo Huang
Change-Id: I543566a916eade86a8dff540b516df3677dcfc76
2021-03-01[libperfmgr] Use new jsoncpp APIHaibo Huang
Reader / StyledWriter are deprecated upstream Bug: 170642246 Change-Id: Idda98ab653ea64a6e305382ff519c7005ac8f80b
2021-02-23libperfmgr: introduce HintActionWei Wang
Provide flexibility to make power hint cross referenced. With proper configuration, we can mask some power hint if another power hint is on. e.g. we can stop launch hint under thermal conditions or battery saver mode etc. or we can end the current active hint earlier if another hint comes, e.g. display idle. below configuration is added into unit tests { "PowerHint": "MASK_LAUNCH_MODE", "Type": "MaskHint", "Value": "LAUNCH" }, { "PowerHint": "END_LAUNCH_MODE", "Type": "EndHint", "Value": "LAUNCH" }, { "PowerHint": "DO_LAUNCH_MODE", "Type": "DoHint", "Value": "LAUNCH" } Bug: 180923613 Test: /data/nativetest64/libperfmgr_test/libperfmgr_test Change-Id: I6e3fac0d8768b271955b1a474b02b934666c154a
2021-02-02Specify version for aidl_interface explicitly am: 372e9358aa am: 117ef9b040Jeongik Cha
Original change: https://android-review.googlesource.com/c/platform/hardware/google/pixel/+/1560470 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I13e578f794388e800d8578f702835c80848bc764
2021-01-28Specify version for aidl_interface explicitlyJeongik Cha
Bug: 150578172 Test: m Change-Id: I77f3363e26b19aceb72b8db9d7c93d6b22b08ca1 Merged-In: I4a9bf218b92252403e9ebbe8f89b10ee1899283f
2021-01-28Specify version for aidl_interface explicitlyJeongik Cha
Bug: 150578172 Test: m Change-Id: I4a9bf218b92252403e9ebbe8f89b10ee1899283f
2020-12-29power: add a property for config fileWei Wang
Test: build Bug: 173222103 Bug: 174725590 Signed-off-by: Wei Wang <wvw@google.com> Change-Id: I14e7e0aa349e446f6889cbfc9a914f5314438e6b (cherry picked from commit cbfc4ab32a43ec59a70c0f7bd9bded591d0d3047)
2020-11-13power: add a property for config fileWei Wang
Test: build Bug: 173222103 Signed-off-by: Wei Wang <wvw@google.com> Change-Id: I14e7e0aa349e446f6889cbfc9a914f5314438e6b
2020-10-22Power: advertise power headers are deprecatedWei Wang
Test: Build Bug: 169065024 Signed-off-by: Wei Wang <wvw@google.com> Change-Id: I3cef3aff4bb2394571a3de13e535283722c308ed
2020-10-22Power: add support for devices without display idle signalsWei Wang
To workaround b/141025174, adding support for devices without display idle signals. Also added a property to override idle display function. Besides the idle signal support, this CL also makes touch boost duration tunable through several new vendor properties. It also named display idle monitor thread and cleans out the obsolete HIDL Power HAL implementation. Bug: 168080943 Bug: 169065024 Bug: 171494137 Test: Boot and trace Change-Id: I76067d10958654d539624ec4cac8f346103e67bc
2020-09-25libperfmgr: Add stats for powerhintJia-yi Chen
Collect the counts & duration for each powerhint sent and add the collected stats to DumpToFd. Bug: 156780872 Test: adb shell dumpsys android.hardware.power.IPower/default Change-Id: Ied07762aa88d715830d657a2c6a42bf49d89fadd
2020-08-19libperfmgr.rc: let power hal start earlyKyle Lin
Bug: 162791243 Bug: 72471476 Test: build and using emul temp/running burn8 to verify it Change-Id: I5ca475be8b73b940e4858634595a7918ae92f6ef
2020-08-19libperfmgr.rc: let perfmgr can change dex2oat prioritiesKyle Lin
Because perfmgr is a vendor process, it cannot adjust system priority directly. Bug: 162791243 Test: build and using emul temp/running burn8 to verify it Change-Id: I55e49cb7d0b2d4c0e42dff8398b5d42c6546cafa
2020-06-30display: cache display lpm state to avoid set it againandroid11-devMidas Chien
If current foss state same as desired state, doesn't set it again. Bug: 148656663 Test: stress on/off battery saver and check foss state Test: enable battery saver, stress on/off screen Change-Id: I6298361fd6a5d6a86c94eabb71ab254507136fd3
2020-04-17libperfmgr: add atrace when update nodesWei Wang
Bug: 147833210 Test: build Signed-off-by: Wei Wang <wvw@google.com> Change-Id: I88cbf2bf6977e4bd65fbdccd3a1252ea467ec196
2020-03-31Merge "Power: rename namespace for Pixel power HAL" into rvc-devTreeHugger Robot
2020-03-30Power: rename namespace for Pixel power HALWei Wang
Bug: 152811907 Test: Build Change-Id: I6848e929d8a26b540fcee9145376b896c3cd9799
2020-03-27Add device.mk for power HAL common sepolicyRick Yiu
Use aidl for android.hardware.power-service.pixel-libperfmgr, and use hidl for android.hardware.power@1.3-service.pixel-libperfmgr. Bug: 151873153 Test: selinux_policy build pass Change-Id: I0cefab08a334fd26de6c75665df66931e39c32cd
2020-03-26OWNERS file maintenanceWei Wang
Bug: 111098032 Test: build Change-Id: Ib809ce7378a986ca3cac331296f5a5fe4cfde6e6
2020-03-26Add TEST_MAPPING for libperfmgrWei Wang
Bug: 137581945 Test: Build Change-Id: Ib30703876fb4cfe7c3b70cb0cefe9b55fb751178
2020-03-26Move libperfmgr into hardware/google/pixelWei Wang
Bug: 137581945 Test: Build Change-Id: Idc03c7b9819f4aaed65233795107cd8c5c20aacb
2020-03-20Power: allow powerhint calls as soon as service startsWei Wang
Bug: 147840817 Test: boot Change-Id: Ic1d6e04109683b999bb99484930e95dc9813fc59
2020-03-20Power: add aidl extension serverWei Wang
Bug: 151896829 Test: boot flame Change-Id: Ie951008cabe2a5680fbc546a21bdc9a428864ef9
2020-03-15Power: support LOW_POWER unconditionallyWei Wang
Bug: 147840817 Test: boot and check power hint Change-Id: I276e0008f18b0067a10a3c2cf239e3bf4c6f609b
2020-03-14Add OWNERS files for power and thermal HALWei Wang
Bug: 111098032 Test: build Change-Id: I8765d04f850336fe62159f51b3802df8f3eaf5bf
2020-03-13power: Hook with display handlerWei Wang
Bug: 147840817 Test: boot and check power hint Change-Id: I9c0c98e76ef4b5f4756f63ed5122efc366737869
2020-03-12Add power hal aidl implementationWei Wang
Bug: 147840817 Test: boot and check power hint Change-Id: I2a78f0428acd1110f2004db94f3feb6eaf2090b7
2020-02-22Split PowerHAL into HIDL impl and libraryWei Wang
Bug: 147840817 Test: boot Change-Id: Ieb394e0433c4775e84e11e881898933ef93fd08d (cherry picked from commit 2bcf2514fd608493f4d7c6306bb933f7fec6ee24)
2019-10-02Remove libhwbinder/libhidltransport depsSteven Moreland
Since these were combined into libhidlbase. Bug: 135686713 Test: build only (libhwbinder/libhidltransport are empty) Change-Id: Ife609bf7eddeae2fba81625d92de7d8ecddf60e6
2019-07-23PowerHAL: add 60fps streaming hintKourosh Derakshan
Test: Pixel test suite Bug: 136608042 Change-Id: I8b3b1149dc12ce84b03622a0ec3db601f89ffb75
2019-06-17Power: set PowerHAL hwbinder thread to high CFS priorityWei Wang
NodeLooperThread is running as -20, and this CL brings the binder thread running as the same priority. Bug: 134843942 Test: Build and jank test no regression on hwui test Change-Id: I16dfc185e16ffe5c937eabd6f17e371bc9511622
2019-05-29PowerHAL: add CAMERA_STREAMING_SECURE modeJia-yi Chen
Extend CAMERA_STREMING hint to add CAMERA_STREAMING_SECURE mode for secure use case. Bug: 131263055 Test: Boot and test on both typical & secure streaming modes Change-Id: Ifde1414e3535c8744990fe5b3b3e944ecff88ae7
2019-05-23Remove CPU0 governor checkWei Wang
This leads to additional latency in processing hints. Also some tests have small cores shut off. Now for testing need to skipping powerhint: setprop vendor.powerhal.init 0 setprop ctl.restart vendor.power-hal-1-3 Test: Build Bug: 129495482 Fixes: 133425880 Change-Id: I8ede2f2ee70a3df4f1b353ee9c07ab10752973e2
2019-05-22Remove additional 2.5s boost for camera launchWei Wang
We can remove this additional boost as b/65034076 resolved. Test: Build Bug: 129495482 Change-Id: Ice34de0b3900b190c937b321f59c4ce4c97d9a64