summaryrefslogtreecommitdiff
path: root/power/power.c
AgeCommit message (Collapse)Author
2017-03-27Angler no longer supports vr.high_performance in Android OCraig Donner
Test: ran a VR app and verified VR mode is unsupported Bug: 36570787 Change-Id: I0c546a3d42b71d852e6705cb2446fa5ba8854275
2016-11-04power: Fix hal_api_version initializationAjay Dudani
Test: Compile for angler Change-Id: I3f20e7c046b3dd2dedc9a219532366826d9896b0 Signed-off-by: Ajay Dudani <adudani@google.com>
2016-10-10power: Make powerHAL compatible for passthrough HIDL designRuchi Kandoi
Bug: 31177288 Change-Id: Ia65f6b50d091a02199565af1d8855ec7473e7323 Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-06-09angler: fix powerHAL to use monotonic time am: 6613a8e6d5Wei Wang
am: f0303193a1 Change-Id: Ib2150e469f74fc09316bbcb206dcc3978fa2fdbd
2016-06-08angler: fix powerHAL to use monotonic timeWei Wang
Using wall clock will cause boost disabled when clock adjusted backward Bug: 29191415 Bug: 29208304 Change-Id: I7d4cb371b73371e3b2746a8a888b2292eb74e1fa
2016-05-24fix power hint commentsWei Wang
BUG: 28220567 Change-Id: I006b68d67e625b8905e94d645d33088f035c7986
2016-05-12Power: Send perfd requests for hotplugging big cores.Ruchi Kandoi
Instead of writting directly into the sysfs files to hotplug out big cores, requests should be sent to the perfd. This will prevent thermal-engine over-writting these values. Bug: 28747042 Change-Id: Ibcd1d1b87af892bd8ae421b83f0f74481dae6e71 Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-05-03Merge "power: Tune Sustained Performance Mode" into nyc-devRuchi Kandoi
2016-05-03power: Tune Sustained Performance ModeRuchi Kandoi
CPUfreq for the little clusters will be capped to 960MHZ instead of 864MHz while the device is in Sustained Performance Mode. Bug: 28452458 Change-Id: I7bac32c33090a7640fd23aa991e5f1109f663abe Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-04-27Merge "power: Add Platform-level sleep state stats for angler" into nyc-devBadhri Jagan Sridharan
2016-04-25power: Add Platform-level sleep state stats for anglerBadhri Jagan Sridharan
Change-Id: I12ff2260a28584d2db6289f062ce44d7d486b18c
2016-04-18power: Check if the Sustained Performance/VR mode is already set.Ruchi Kandoi
Writing into sysfs files for bringing the cores online or hotplugging them out when they are already in that state gives a EINVAL error, causing the logs to falsely indicate errors. This happens if powerHAL receives multiple hints to enable/disable the mode. Bug: 28170760 Change-Id: I3eb040e82b517b5329a08e4337f80b25fa70c3e5 Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-04-05power: Sustained Performance Mode tuning.Ruchi Kandoi
Cap max GPU clocks to 305MHz instead of 390MHz. Bug: 22864186 Change-Id: If4b29b39971505171fd5007f217d1818419bf389 Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-03-22power: Adds the implementation for sustained performance mode and VRRuchi Kandoi
mode. Implementation for sustained performance Mode is as follows: - Hot plug out big cores - Lower the CPU max frequency for little cores - Lower the GPU max frequency Implementation for VR mode is as as follows: - Hot plug out big cores - Set minimum CPU clocks - Set minimum GPU clocks - Set minimum bus speed Change-Id: I31c1125f53f604fdd6e5cd28374afd6995c68e47 Signed-off-by: Ruchi Kandoi <kandoiruchi@gmail.com>
2015-10-05Enable touch boost during camera.Tim Murray
Previously, the video encode hint would hotplug the big cores off while the camera was running in order to improve thermals and power consumption. Instead, have the camera run the big cores at 384MHz so we can still apply POWER_HINT_INTERACTION. This also restricts mm-qcamera-daemon to the small cluster in order to prevent it from being boosted by touch boost. bug 24583227 Change-Id: Ifb32729f4bc47bf71ea868d22589fa37b40a3007
2015-09-23Fix rate limiting for flings.Tim Murray
We were incorrectly limiting sched_upmigrate on a fling. Instead, allow a fling to use the lowest sched_upmigrate. bug 24332559 bug 24328959 Change-Id: Ic090b12093fdefbefd04773337148560a97bdf3a
2015-09-21Change touch boost behavior: extent and handles.Tim Murray
This patch does three things: 1. Changes the upmigrate/downmigrate values based on the last boost. Any touch within 750ms will result in higher upmigrate/downmigrate values. This is used to approximate detection of constant input (typing). 2. Moves to multiple handles for handling touch boost rather than reusing the same handle for each successive component of the boost. 3. Rate limits the boost such that we don't boost more than every 250ms. bug 24113279 bug 24064601 Change-Id: Ib81e478f17191a1a27e64774e4132fe97e18f124
2015-09-17extend little core freq boost during flingTim Murray
bug 24059298 Change-Id: I283daa015ebc0bdb77652c9ea2a1018caa2e9003
2015-09-16support duration hint to improve fling behaviorTim Murray
bug 24059298 Change-Id: I0f9b50d5ff7ab8b7c5263286ed2a995f9f624181
2015-09-11Modify touch boost to impact sched migration.Tim Murray
bug 23331135 Change-Id: I62b36364e9fa0d4c28d7b9cfe5fdea0b8e989338
2015-07-03angler: Add Power HALNaveen Ramaraj
Change-Id: I538dc00b28d3bda87c4696d2a0ec811bdbeaafad