Commit Graph

25 Commits

Author SHA1 Message Date
Nikhil Kumar Kansal 242a2aa6ac power: Modifying resource IDs for video encode power Hint
Modifying resource IDs for video encode power Hint in power HAL

Change-Id: I9dcce251ef62c1618169e5b6e92cc1bcebae9836
2015-10-11 20:23:22 +00:00
vaibhav bhalla 9fd3410d1b power: Change timer rate to 40ms for video encode
This change is specific to 8952, 8956 and 8976 targets.
This is to reduce CPU scaling in encoding case.

Change-Id: I72627311e1b60aeb29c6b83883932994ca75e53d
2015-10-11 20:23:22 +00:00
Nikhil Kumar Kansal 1c58bd0a02 power: Modify power HAL hint for Interactive governor
Added support for disabling sched guided during video encode.

Change-Id: Ia4a75e437c61b01c9ed52d2a4f77b5889ff7ab5c
2015-10-11 20:23:22 +00:00
Nikhil Kumar Kansal dc9f759ebb common: Change minfreq to 499.2Mhz during display off scenario.
1.Changes to set CPU0 min freq for 8952 target as below:.
          Display off case :  set to  499.2Mhz
          Display on case  :  set to  960Mhz.
        2.Changes to set CPU0 and CPU4 interactive timer rate values
          Display off cases : Set cpu0 and cpu4 to 50ms.

Change-Id: I4a16e37191431f7299791696ab91c12f758c500c
2015-10-11 20:23:22 +00:00
vaibhav bhalla c7efec1e1e common: Change the Hi-Speed freq to 800Mhz for camcorder case
Changes to set Hi-Speed freq for 8909  target as below:
         -Camcorder ON  : set to  800Mhz
         -Camcorder OFF : set to  998.4Mhz.

Change-Id: I8e4ca512c137a137fabe7762695e336a3ed37fdd
2015-10-11 20:23:22 +00:00
vaibhav bhalla 68cc660bfd common: Changed the minfreq to 400Mhz for display off scenario.
1. Changes to set CPU0 min freq for 8939 target as below:
        Display off case :  set to  400Mhz
        Display on case  :  set to  960Mhz.

Conflicts:
	power/Android.mk

Change-Id: Ie8cf31484e70f83594778c899485910b9ff2578e
2015-10-11 20:23:22 +00:00
Pracheer 585f306500 common: update enum value for sched perflocks
Update enum value for changing migrate cost and
prefer idle via perflock.

Change-Id: I66854af0d63647619c98cad89515b503a10cd02d
2015-10-11 20:23:21 +00:00
Pracheer ba92207c32 power: add sched boost enum.
Add enum for enabling sched boost and
core 4-8 in perflock

Change-Id: I049c44d18045d9ab2dce7a96cf73207357e63a18
2015-10-11 20:23:21 +00:00
Vince Leung 35332fc946 common: add sched boost enum
Add enum for enabling sched boost in PerfLock

Change-Id: I252953c79a5194f75384140c20dd413e7518c14e
2015-10-11 20:23:21 +00:00
Vince Leung 17c5fc0f86 common: update opcodes to disable power collapse
Update opcodes to disable power collapse via PerfLock
to fix a bug in PerfLock

Change-Id: I14cb3292b94db90d592905fb344c942e7d61c4f8
2014-12-05 16:01:51 +05:30
Vince Leung a303c88cfc common: add CPU max cores online enums
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
2014-10-29 21:17:15 +05:30
Dilip Gudlur 345e89dd9c power: Modify power HAL hint for Interactive governor
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
2014-02-25 12:37:38 -08:00
Anurag Singh c43182c6be power: vote to turn off io_is_busy for interactive governor
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
2014-01-09 12:41:43 -08:00
Vince Leung 6af746075f powerhal: add opcode to disable sync on thread migration
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
2013-05-17 14:05:33 -07:00
Dilip Gudlur 08d0fda2f6 powerhal: add display off hints to improve power
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
2013-05-13 17:59:06 -07:00
Linux Build Service Account fb6a73b2d7 Merge "power: add display off and power collapse enable opcodes." 2013-04-30 01:32:02 -07:00
Linux Build Service Account 442fd104ce Merge "common: Add comments for CPU_MIN_FREQ usage" 2013-04-26 13:53:05 -07:00
Linux Build Service Account 52d7614c11 Merge "common: Add opcodes to lock the maximum number of cores" 2013-04-26 13:52:52 -07:00
Vince Leung 735a2f98c5 power: add display off and power collapse enable opcodes.
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
2013-04-23 23:50:54 -07:00
Vince Leung a9d32c5034 common: Add comments for CPU_MIN_FREQ usage
Add comments to inform users on how
PerfLock supports CPU min frequencies

Change-Id: I13046c9bff8108a7d43405ca08070be853d1d84b
2013-04-23 13:57:34 -07:00
Vince Leung eb3eea131c common: Add opcodes to lock the maximum number of cores
Add opcodes for PerfLock to support locking of
maximum number of cores online.

Change-Id: Idb4b8313f8518cc5f322d0a7f483922737a3502b
2013-04-22 18:05:25 -07:00
Anurag Singh daa8f718d8 power: introduce 8974-specific handling
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
2013-04-22 13:43:38 -07:00
Vince Leung c44f88778b common: Add opcodes for sync_freq and optimal_freq
Add opcodes for synchronous freq and optimal freq
into PerfLock.

Change-Id: Idb4d4f2194cb34fee5e76614ae1cbe3938534100
2013-02-07 18:15:30 -08:00
Anurag Singh 79ab543c4c power: Process video decode and screen off hints.
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
2012-10-11 18:56:35 -07:00
Vince Leung eaf7493615 common: Add performance header file.
Add performance header file that includes
opcodes required to use PerfLock.

Change-Id: I2b26673499f8427e8db40baf6784b85baddbe869
2012-10-09 18:05:01 -07:00