Commit graph

8 commits

Author SHA1 Message Date
SamarV-121
d0f96fa3da Revert "sdm710-common: Nuke custom power HAL"
This reverts commit 050ba7b364.

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2020-03-13 19:13:36 +05:30
SamarV-121
050ba7b364 sdm710-common: Nuke custom power HAL
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2020-03-12 20:02:31 +05:30
tomascus
1012b94af9 sdm710-common: 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.

Change-Id: I2fbde8b2db6710d262e9a058e0bc9c02e524648c
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-12-01 12:54:38 +00:00
tomascus
18960a4972 sdm710-common: 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
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-12-01 12:54:26 +00:00
Vinay Verma
5b607c28d5 sdm710-common: power: Fix VNDK compilation errors
VNDK restrictions doesn't includes standard headers by
default, add them explicitly.

Change-Id: I4c72a28ffa141ecadcfe47cc7c1f62f2a0c8576e
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-12-01 12:53:47 +00:00
Wei Wang
f945859627 sdm710-common: power: Use monotonic time for interaction boost
Using the wall clock will cause boosts to be disabled
when/if the clock is adjusted backward.

Bug: 29191415
Bug: 29208304
Change-Id: I8af5f40b46d996ce7bccb8324fc186e2f3a5b267
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-12-01 12:53:37 +00:00
BeYkeRYkt
3d731adb1f sdm710-common: power: Handle launch and interaction hints
* 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: I9fedcbaa189147c91d932711c831c2ce038a7ec7
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-12-01 12:53:21 +00:00
Bruno Martins
311ead102a sdm710-common: Import QCOM power HAL
Change-Id: Ia4fe5dd8e0240955b7d2199e3e1d6743138b511d
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2019-12-01 12:52:29 +00:00