Previously the enums to limit the maximum number
of cores online were using the same resource as
minimum number of cores. Separate the min and max
to each have their own resource.
Change-Id: I3d2e8ebe1bba61a0d63ee79972cbe78c972b2bd8
Currently power HAL sets display off hint to 500ms for
Interactive Governor, this change modifies the hint to 50ms
to enable CPU to sample and scale better.
Change-Id: I611f7d318c78f85fb345852b8e2c82ec1cbda006
This change is specific to 8084 and has been
modeled based on 8974 pro changes. Use PerfLock
to keep two cores online when the display is on.
Change-Id: Iffea0f9afbb3743cec2804da5884ec6d977b662a
If the interactive governor is being used, vote to turn off
io_is_busy when video encode starts to reduce power consumption.
Change-Id: I69738b989af3d6e0f1a708c21875b935b435cd91
This change is specific to 8974 Pro only.
Use PerfLock to keep two cores online
when the display is on.
Change-Id: I6c694df43ad884f00209b5afa6ed862357312261
Change the method signature of interaction function
to allow input arguments for the optimizations
requested and the duration.
Add msm8226 and msm8610 specific power files for
interaction power hint override.
Change-Id: Iac6762d2864021d35981fee11496bda39f8f82fe
Mutlicore SPC is enabled for both display_on and display_off
scenarios. Hence removing the PWR_CLPS_ENA flag from display_off
hints list.
Change-Id: I4a6794b540dba5c619f069b346720332fd3369f4
It is possible, although very unusual, for more
than one display off events to reach the power HAL
without any intervening display on events. In
this case, do not perform any actions. Multiple
consecutive display on events are already handled.
Change-Id: Id7cd51c2fdc804aa7ebb8322a236077b1785f45f
Add and use the opcode to disable synchronization
of cores on foreground thread migration.
Synchronization of cores on foreground thread migration
feature is on by default so we will disable
when the display is off and encode/decode hints.
Change-Id: Ib52b894059b030b9a711c98e0dab41793c99276f
Change needed during display off use cases to improve
power with specific hints to enable power collapse and
set sync/optimal frequency to 650 Mhz
Change-Id: I44442779310aee316b0175478629bd92741f17f0
Change needed by powerhal to be able to send display off hint
to perflock to enable power collapse for all cores
Change-Id: I79cabc469055fe263b4b702f8d28263f2de36778
Display off opcode used to inform PerfLock the display is off.
Power collapse enable opcode allows users to enable power collapse
modes on all cpus.
Change-Id: I5dc01f47c9df0aa70d34bb8519de115e8c12588a
When the display turns off, the MSM8974
needs to set ondemand governor's sync_freq
and optimal_freq parameters to values different
from other targets. To accomplish this, override
the handling for set_interactive. Also refactor
power HAL to remove unnecessary macros.
Change-Id: I009ee88886abfb4f8423de3b2d85549fd0e65205
Perform initialization (or cleanup) in a special
constructor (or destructor) function that gets
invoked when the power HAL library is loaded
(or unloaded). Remove code that is made redundant
by doing this. Also remove other parts of the code
which are no longer used.
Change-Id: I6a08c998c32fb57d0c7975bc814f7d87cd1104d1
Replace multiple instances of string literals with
macros so as to minimize the risk of typos. Also fix
a check for max/min DCVS slack node values.
Change-Id: I9fa80a41dffba88d144d100d146726f2c18e7540
When the display turns off, set the ondemand sampling rate
to 500ms. Restore it to whatever it was when it turns back on.
Change-Id: I5cab3cbb993fae1aafb8323a3b47d0569badb9ee
Process video decode hints and display-off hints
in the power HAL. Also move to using the perflock
API to request system-level parameter changes.
Change-Id: I42e33d6d22016b02d85572a69fee64aadf36da58