summaryrefslogtreecommitdiffstats
path: root/power-8937.c
Commit message (Collapse)AuthorAgeFilesLines
* power: msm8937: Support power profilesBeYkeRYkt2019-10-231-0/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Author: BeYkeRYkt <beykerykt@gmail.com> Date: Sun Dec 23 22:55:35 2018 +0900 power: Add specific powerhal for msm8937 * msm8937 is on the same CAF line along with msm8953 and msm8996 and also supports the MPCTL_V3 commands, in contrast to msm8952. Separate it from msm8952. Change-Id: I58b0d7563cd3896ee4484ed0e0f38a6ef7eb01b2 Author: BeYkeRYkt <beykerykt@gmail.com> Date: Sun Dec 23 23:21:50 2018 +0900 power: msm8937: Update power profile settings * msm8937 supports the MPCTL_V3 commands. Change-Id: Ibeaaf3d4577a8378f1d9a495b87ac58f75b1da73 Author: dianlujitao <dianlujitao@lineageos.org> Date: Sat Feb 23 20:24:57 2019 +0800 power: Pass NULL parameter in powerHint if data is zero * This restores the behavior in AOSP and CAF power HAL to avoid confusion. Change-Id: I72f5bb9286e2f57121e39eea82d2fe8854989393 Change-Id: Ibaaf9a8a4398dfac12c901835f2f7aae9eefec3b
* power: Handle launch and interaction hints for perf HAL platformsBeYkeRYkt2019-10-231-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Author: BeYkeRYkt <beykerykt@gmail.com> Date: Thu Dec 13 06:42:35 2018 +0900 power: Handle launch and interaction hints for perf HAL platforms * MP-CTL does not handle POWER_HINT_INTERACTION and POWER_HINT_LAUNCH directly. Requests for processing are sent by Qualcomm BoostFramework (QPerformance) at the framework service level. Since we do not have BoostFramework, process POWER_HINT_INTERACTION and POWER_HINT_LAUNCH in PowerHAL to ensure a sufficient level of performance. * For proper operation, perfboostsconfig.xml file is required. Change-Id: I4c67d886c9dd74ae07094d32bdffc8ef403e04e7 Author: tomascus <arbiter1000@gmail.com> Date: Wed Feb 13 14:42:27 2019 +1100 power: don't use SCROLL_PREFILING The current use of the SCROLL_PREFILING hint hurts scroll performance and results in a lot of dropped frames. The hint ID corresponding to SCROLL_PREFILING only takes into effect for a default timeout value of 80 ms (as found in perfboostsconfig.xml), while the duration value in the process_interaction_hint function runs for a much longer time, from 1500 ms up to 5000 ms (bounds of kMinFlingDuration and kMaxInteractiveDuration). During the period of time, when the timeout value has elapsed and current time is less than duration, another interaction hint cannot be processed. Therefore, if the user decides to scroll during this period, high frame drops can be experienced as the CPU freq isn't raised by processing another hint to account for this additional scrolling. By only using SCROLL_VERTICAL, fluidity can be maintained, improving user experience. Furthmore, kMinInteractiveDuration has been lowered to 400 ms for some platforms as it is more than sufficient to maintain fluidity (minimal frames dropped) while scrolling. Change-Id: I42edd07a67c7dca43a10ae2fa1b44b64b7794b43 commit e9063a6956974a2e33652e2df0ecac991ee84c80 Author: tomascus <arbiter1000@gmail.com> Date: Tue Feb 19 17:15:58 2019 +1100 power: Release launch boost perflock when launch is completed Currently, the launch boost perflock is held for a fixed duration, either specified in perfboostsconfig.xml for perf HAL platforms or hardcoded in the powerHAL for non-perf HAL platforms. Using a fixed duration for this perflock has two shortcomings: * perflock can be held for too long, causing the CPU freq and other resources to be boosted for too long even if the application has finished launching, resulting in excessive battery drainage * perflock can be held not long enough if it takes more than the timeout time to finish launch The framework sends out a powerhint for both when launch starts and when launch ends. The launch finish hint can be used to signal when to release the perflock. Reference: Wahoo power-libperfmgr Change-Id: I405cc453c5f58d9fb2583b9c6017f3964a0ce024 Change-Id: I8ef6a890bc191f9504980707107750a720b50da3
* power: Use declared enums where possibleMichael Bestas2019-10-231-9/+15
| | | | Change-Id: I079490f8ff61bf278dd69eb89b9dae5ce42e6052
* power: Clean up and fix set_interactive_overrideMichael Bestas2019-10-231-15/+5
| | | | | | | | | | | * Remove debug logs and useless comments * Consistent return values * Add back display hints for legacy platforms, they used to live in power-common.c but removed in commit 561cffcbfa66192e839e040d2da3bff2ecf8dcac * Check if set_interactive_override handled hints and print info message if it didn't Change-Id: Iff9f7327ba71c282e34ff3143c45a3f40f72fc92
* power: Clean up and fix video encode/decode hint handlingMichael Bestas2019-10-231-91/+86
| | | | | | | | * Unify code style for non legacy SoCs * Restore legacy SoC handling which used to live in power-common.c but was removed in commit 561cffcbfa66192e839e040d2da3bff2ecf8dcac Change-Id: Ieb84e6d6c8d762614e21267e81e6057aa64b36dd
* power: Find online CPU core and get scaling governornico2019-10-231-18/+6
| | | | Change-Id: I90aed1aaee8d3819d1de921674da924efd0a6c4f
* power: Rename power-8952.c to power-8937.cMichael Bestas2019-10-231-0/+246
* Latest power-8952.c is used for msm8937 with mpctl V3. Rename the file so we can add back the legacy msm8952 handling. Change-Id: Iccd2a3c0abed2ef10d5f6c2182c0509a2fbe611d