Commit Graph

283 Commits

Author SHA1 Message Date
Junjie Wu 5536ae7136 init.qcom.post_boot: Enable LPM after all cores are onlined
Only enable LPM after all cores are onlined. This avoids potential
race between code boot sequence and low power modes on A57 cluster.

Change-Id: I95202f4ffe62dd8889efcc42085c8792b9ec04ba
2015-01-06 11:49:04 -08:00
Junjie Wu a42f8b9388 init.qcom.post_boot: Change boot freq of A57 to 960MHz
Change boot freq of A57 to 960MHz to prevent scheduler from treating
A57 as little cluster due to reduced capacity.

Change-Id: Id9aa8a2802b49cbeb83d28c9badd9027ac27b3f1
2015-01-06 11:48:55 -08:00
Rohit Gupta 2d1aae987f init.qcom.post_boot: Set A57 max freq limit from msm_performance
Thermal mitigation may cause A57s to go offline and their cpufreq
folders might be unavailable which may cause writes to their
scaling_max nodes to be unsuccessful.
Set A57 max freq from msm_performance which provides a usperspace
interface to set frequency limits regardless of core online status.

Change-Id: I734d178f6e05d152444846c7048fd661d1ee7150
2015-01-05 19:18:28 -08:00
Vince Leung 61bc3433ea init.qcom.post_boot.sh: enable io_is_busy on MSM8994
Enable io_is_busy on MSM8994 to improve IO workloads.

Change-Id: I89593271107d7b0db6c434bac72402ccb7863d79
2015-01-05 19:18:18 -08:00
Junjie Wu 8c2c925e3a init.qcom.post_boot: Offline CPU5-7 before disabling thermal hotplug
post_boot script is also executed during framework reboot, where all
A57s might be online running at max frequency. Disabling thermal
hotplug then could lead into thermal runaway.

Explicitly offline CPU 5-7 to make sure at most one A57 is online, and
limit its frequency to 960MHz when thermal hotplug is disabled.

Change-Id: I53b7541348ba0b14303006dba4b3c21770d36225
2015-01-05 19:18:07 -08:00
Rohit Gupta fc7d402fd7 init.qcom.post_boot: Set interactive gov params for A53s and A57s
Set interactive governor parameters to achieve power-perf balance
for both the clusters on msm8994.

Change-Id: I43c66b5153378f01caa21176765297a9d5f6f0b5
2015-01-05 19:17:47 -08:00
Shiju Mathew 3419965c7e init.qcom.post_boot.sh: Disable core control during governor config
Disable core control from BCL SOC condition during
governor configuration on MSM8994.

Change-Id: Iec2db8526d4846d097886a6ebbe8d55223a3ca92
2014-12-29 14:04:07 -05:00
Mahesh Sivasubramanian ebbbec333d init.qcom.post_boot.sh: Remove energy-awareness
Enery-awareness is started as a service in init.target.rc. Removing it from
the init.qcom.post_boot.sh

Change-Id: If604b0b91904c94e5642da8e6f45e7d469914c6f
2014-12-15 23:48:49 -07:00
Murali Nalajala b0f9c3aabd init.qcom.post_boot: Enable LPM modes for 8992
Enable LPM modes for 8992 and bring A57 cores online

Change-Id: Ifb22b84ea45d8b79f5a2f54391d69ffc68bf3375
2014-12-08 18:38:49 -08:00
Linux Build Service Account 4824dc1f2a Merge "init.post_boot: Optionally start QDSS debug agent" 2014-11-25 10:59:20 -08:00
Junjie Wu 0a84f370d6 init.qcom.post_boot: Minimize time period that disables thermal hotplug
Changing governor needs to be protected against hotplug. However,
disabling thermal and BCL hotplug for too long would cause potential
stability issue. Minimize the time that thermal and BCL hotplug is
disabled in post_bost script.

Change-Id: I9cb356914c3d019e4c3c5ee502f86b4e63292e3a
2014-11-19 11:50:07 -08:00
David Ng 4f554361c4 init.post_boot: Optionally start QDSS debug agent
Pull in changes from QDSS team.  Start QDSS debug agent
if the QDSS feature is enabled.

Change-Id: Id80ff161c38ef61e6fab7330f1d69107d408aabd
2014-11-17 19:29:18 -08:00
Linux Build Service Account f4e71e65b3 Merge "init: qcom: post_boot: start hbtp_daemon on 8939 MTP improveTouch" 2014-11-15 03:58:31 -08:00
Linux Build Service Account 94529fb802 Merge "init.qcom.post_boot: update path to default_values" 2014-11-14 14:23:52 -08:00
Linux Build Service Account cd80592e76 Merge "init: qcom: post_boot: start hbtp_daemon with ARM solution" 2014-11-13 18:57:35 -08:00
Chun Zhang de898fbb10 init: qcom: post_boot: start hbtp_daemon on 8939 MTP improveTouch
Enable Host Based Touch Processing (HBTP) service at device boot
up on MTP improveTouch platform.

Change-Id: Ibc5fbd893cc16ca21734de9affb29f957bf0c012
2014-11-13 11:21:39 -08:00
Vince Leung 88aa7a9674 init.qcom.post_boot: update path to default_values
Path to default_values file has been changed and so the rm
command should be updated with new path for both APQ8084
and MSM8994.

Change-Id: I368bfe96e8b6f0fab9235fb70833e19ae2a15440
2014-11-11 16:00:35 -08:00
Linux Build Service Account 1e09fa822c Merge "Revert "init: create native cgroup"" 2014-11-09 11:32:59 -08:00
Linux Build Service Account 8dd8db0c0e Merge "init.qcom.post_boot: Enable input boost for A53 cluster" 2014-11-09 11:32:56 -08:00
Linux Build Service Account d0450b601e Merge "init: qcom: post_boot: Enable BIMC HWMON for MSM8909" 2014-11-05 20:52:57 -08:00
Chun Zhang 86ad196ea0 init: qcom: post_boot: start hbtp_daemon with ARM solution
Enable Host Based Touch Processing(HBTP) service at device boot
up on selected platform.

Change-Id: I31b2304040e0f3fdd0d849918040f71e57c593c4
2014-11-05 16:47:00 -08:00
Rohit Gupta 712e096187 init.qcom.post_boot: Enable input boost for A53 cluster
Enable the input boost feature on A53 cluster such that on touch
events the CPU frequency is raised to 1.3GHz for 40 ms

Change-Id: Ic2e4e893ecfc92d796ec4cec71eeddeacf3fa92e
2014-11-04 10:23:33 -08:00
Vince Leung 6d32a9a939 Revert "init: create native cgroup"
This reverts commit 3f8c938fa4.
Reverting this change because the limit of CPU shares
is causing stability crashes

Change-Id: I6066a6afb2846dfe0e448199c27359d0ee3d72ea
2014-11-03 13:25:31 -08:00
Vinay Roy f91d408d2a init.qcom.post_boot: Enable interactive governor for 8909
Change-Id: Ife82d2c266a463a3bde20047cd2a0d0acbde650c
Signed-off-by: Vinay Roy <vroy@codeaurora.org>
2014-10-27 18:07:52 +05:30
Taniya Das 01fd744f5e init: qcom: post_boot: Enable BIMC HWMON for MSM8909
enable devfreq bw_mon for bimc scaling for msm8909.

Change-Id: Ife88f70ca8e404d4a2efd0213b12d70435caca9c
2014-10-27 05:00:28 +05:30
Anil kumar mamidala 1d3542c245 init: qcom: post_boot: Enable low power modes for 8909
Enable low power modes and bringup all the cores online for
msm8909 target.

Change-Id: I8805bb547b523cc0bcd1885f77bca473d95215ce
2014-10-21 05:39:24 -07:00
Linux Build Service Account 76c62e1560 Merge "init: qcom: post_boot: update soc IDs for 8916, 8936 and 8939" 2014-10-15 07:56:18 -07:00
Linux Build Service Account 2a83418d0f Merge "init.qcom.post_boot.sh: Add scheduler packing settings to 8994" 2014-10-12 08:40:35 -07:00
Linux Build Service Account 226f9dd880 Merge "init: create native cgroup" 2014-10-12 05:42:07 -07:00
Rohit Gupta dcfc342932 init.qcom.post_boot: Enable scheduler inputs to governor
This change enables interactive governor to use CPU runqueue loads
for each CPU over the last window from scheduler instead of just
getting CPU busy time. Task migration fixups are also enabled so
that task load can be adjusted at the source and destination CPU
runqueue during a migration.

Change-Id: I7a5c285c5061322dbb0b6d07d86520a981552d2e
2014-10-09 14:39:11 -07:00
Shiju Mathew e93f8f4451 init.qcom.post_boot.sh: Disable core control during governor config on MSM8994
Disable core control from thermal(KTM and BCL) during
governor configuration on MSM8994 in post boot script.

Change-Id: Id6d7058b2e6d2bd5bb240fe9397f65525d6ad5db
2014-10-07 18:10:13 -04:00
Linux Build Service Account 984c8363fa Merge "init.qcom.post_boot: Enable bw_hwmon for MSM8939" 2014-10-06 22:53:41 -07:00
Vince Leung de38a15237 init.qcom.post_boot.sh: Add scheduler packing settings to 8994
Enable Task Packing logic for 8994 and set small_task definition
to 30.

Change-Id: I2421dcfc8b92fde2042ae91d781c7362956b00ca
2014-10-02 16:56:41 -07:00
Srivatsa Vaddagiri 3f8c938fa4 init: create native cgroup
Cgroup feature provided by Linux kernel is one of the means used by
Android framework to control cpu usage of applications. Android
framework creates /apps and /apps/bg_non_interactive cgroups and
manages migration of tasks between those two cgroups. Tasks created
outside the scope of Android framework (kernel threads, mpdecision
etc) are however left in "root" cgroup, where each task is considered
to be a cgroup of its own, thus giving each such task more CPU
resource than desired. Such tasks have been found to interfere with
smooth functioning of Android application and have been responsible
for effects such as increased janks or bad user-experience.

Fix this problem by creating a /native cgroup to encapsulate all tasks
at bootup. /native cgroup is assigned shares of 1024 and real-time
bandwidth of 15% (150ms out of every 1sec). The real-time bandwidth is
unchanged (from what currently exists) while the combined shares of
1024 for all "native" tasks will help curb interference between native
and Android tasks.

Change-Id: I988b6145ab7cfbd94cbbab4d63fadc3bab6551fa
2014-10-02 16:37:42 -07:00
Linux Build Service Account c44b239dd1 Merge "post_boot.sh: Parameters tuning for conistent IO performance" 2014-10-02 15:59:50 -07:00
Venkat Devarasetty fc3fe46467 init: qcom: post_boot: update soc IDs for 8916, 8936 and 8939
Add the new soc IDs for 8916, 8936 and 8939

Change-Id: Ieccf6a4dcb3dc1c59320aabae55d6ab5582692e7
2014-10-01 15:38:41 +05:30
Taniya Das 9187464f69 init.qcom.post_boot: Enable bw_hwmon for MSM8939
Modify devfreq governor from cpufreq to bw_hwmon for MSM8939.

Change-Id: I04b61648ef4d6700d50589801e989ef2dbc87cad
2014-09-29 22:49:37 -07:00
Varun Garg 6cf62ab72e post_boot.sh: Parameters tuning for conistent IO performance
Changing packing parameter and interactive setting for consistent
and improved IO related performance on 8939 target

Change-Id: Ia4bd1d509109050dd2b518cdb11ec90fee94935a
2014-09-25 12:20:22 +05:30
Vince Leung c7fc2974a4 msm8994: set min_freq prop and rm default_values file
Remove the default_values file and set the min_freq
prop to the correct freq value prior to start of perfd.

Change-Id: If0508d5e5d51b2ab3b7e62f81c0be8331d897fef
2014-09-24 11:31:21 -07:00
Linux Build Service Account 4eb07a6782 Merge "init.qcom.post_boot.sh: Setting rps mask value to 10 for 8939" 2014-09-15 05:58:35 -07:00
Subash Abhinov Kasiviswanathan ff1462d2a1 init.qcom.post_boot.sh: Setting rps mask value to 10 for 8939
Enabled rps with the mask value of 10 during the time of initialization.

CRs-fixed: 707518
Change-Id: If2155646c291f4996f0e9037b627cb1f1836714b
2014-09-12 13:53:06 -06:00
Hazari PraveenKumar bf29e53a9e msm8916,8939,8936:start perfd
Start perfd for 8916,8939, 8936
For 8916,8936:define ro.min_freq_0
For 8939:define ro.min_freq_0 and ro.min_freq_4

Change-Id: I53e7afb6f29d9987c22e2c52d91cd25b614f9eeb
2014-09-10 16:39:58 +05:30
Chitti Babu Theegala e2864c28a5 post_boot.sh: Interactive settings for 8916, 8936 and 8939
Apply interactive governor settings for 8916, 8936 and 8939

Change-Id: Id6ce05e0e4fa356b6d2fa3271ee58d3bbce000ec
2014-09-08 19:23:58 +05:30
Linux Build Service Account 177ef5386d Merge "init.qcom.post_boot.sh: Enable RPS configuration for 8994" 2014-08-27 12:52:40 -07:00
Dilip Gudlur 99860c50e7 init: qcom: post_boot: use interactive gov for msm8994
Set cpufreq governor to interactive (without load input from scheduler)
for both clusters on msm8994. Also set tunables per cluster for optimal
power/performance.

Change-Id: Icea285b3ecf14d70b02cf7bc004fc9578102ec51
2014-08-25 16:49:35 -07:00
Linux Build Service Account 1e5e839362 Merge "init.qcom.post_boot.sh: Add scheduler packing settings" 2014-08-24 13:52:56 -07:00
Linux Build Service Account 0506e4737a Merge "init: qcom: post_boot: Enable low power modes for 8916, 8939 and 8936" 2014-08-24 13:52:55 -07:00
Linux Build Service Account 9bb28d1165 Merge "init.qcom.post_boot: Disable io_busy for 8916" 2014-08-24 13:52:55 -07:00
Linux Build Service Account d638d80e77 Merge "init: qcom: Install SWE_Browser.apk on first bootup." 2014-08-24 13:52:54 -07:00
Linux Build Service Account 78efa63b0b Merge "init.qcom.post_boot: Tuning the interactive governor parameters" 2014-08-24 13:52:54 -07:00
Linux Build Service Account 039f29f67f Merge "init.qcom.post_boot: Enable idle pc for secondary core." 2014-08-24 13:52:53 -07:00
Linux Build Service Account abdf598d58 Merge "init.qcom.post_boot: Setting minimum freq for 8916 to 800MHz." 2014-08-24 13:52:52 -07:00
Linux Build Service Account 36149a8ac3 Merge "init.qcom.post_boot: Correcting the interactive governor parameters." 2014-08-24 13:52:52 -07:00
Krishna Vanka 91e0d6de4c init.qcom.post_boot.sh: Add scheduler packing settings
Enable Task Packing logic for targets with HMP Scheduler.

Change-Id: Ib499e149c02944a2896aedd92c63758a6b35bd0b
2014-08-23 16:05:13 +05:30
Anil kumar mamidala aa0066b998 init: qcom: post_boot: Enable low power modes for 8916, 8939 and 8936
With cluster architecture the low power mode sysfs nodes are changed.
Enable all low power modes through single control now for both these
targets.

Change-Id: I5ea404490742f679bf08fe1053854941afa9453c
2014-08-23 16:04:39 +05:30
Shirish Kumar Agarwal f45a812490 init.qcom.post_boot: Disable io_busy for 8916
Disable io_busy for 8916 target with interactive governor. This will help
save Gfx power.

Change-Id: I1a211e3fb8dee5803013fe0b7a524767d51d72ce
2014-08-23 16:03:34 +05:30
Stewart Chao 1cefca7a51 init: qcom: Install SWE_Browser.apk on first bootup.
Install SWE_Browser.apk from /data/prebuilt if it is not already
installed.

CRs-fixed: 657017
Change-Id: I48c9acbf3257121b3d89dec2f779aa61b50eff43
2014-08-23 16:02:55 +05:30
Vinay Roy 47b588ae64 init.qcom.post_boot: Tuning the interactive governor parameters
For 8916 the interactive governor parameters are tuned for
power/performance.

Change-Id: I8aa55e945a58f6b1df4ca91cb4444cdddc1e170d
2014-08-23 16:01:53 +05:30
Archana Sathyakumar b4aa38a18e init.qcom.post_boot: Enable idle pc for secondary core.
Currently, idle pc is enabled only for core 0. Enable them for secondary
cores for supported targets.

Change-Id: I1cc29b5ad99653f709832076cf7a2e2868141206
2014-08-23 15:58:30 +05:30
Vinay Roy e527e281fe init.qcom.post_boot: Setting minimum freq for 8916 to 800MHz.
For 8916 the acpu scaling_min_freq should be 800MHz.

Change-Id: Icbde45ffa230b3217e35ae5883eac8944ab2a5d2
2014-08-23 15:55:44 +05:30
Vinay Roy a98982f564 init.qcom.post_boot: Correcting the interactive governor parameters.
Updating the 8916 interactive governor parameters as per available
frequency.

Change-Id: I674ca353b5c909425e4500d8504b092e5fa3a52f
2014-08-23 15:55:08 +05:30
Linux Build Service Account 420a446686 Merge "init: qcom: post_boot: use interactive gov with sched input for msm8994" 2014-08-22 23:35:54 -07:00
Linux Build Service Account fcd001142f Merge "init.qcom.post_boot: enable perfd for msm8994" 2014-08-22 05:37:40 -07:00
Subash Abhinov Kasiviswanathan e60dbe2ab8 init.qcom.post_boot.sh: Enable RPS configuration for 8994
Enable RPS configuration on 8994 by statically assigning it to
core 3. In stock configuration, we are observing worker queue
starvation due to contention with network stack and this leads
to data stalls.

CRs-fixed: 711771
Change-Id: I3933aea9d5495053adcd4854c76e53b2ed0fd551
2014-08-20 17:05:55 -07:00
Amir Vajid 610654967b init: qcom: post_boot: use interactive gov with sched input for msm8994
Set cpufreq governor to interactive for both clusters on msm8994. Also set
up tunables per cluster to query the load from the scheduler and enable
migration notifications from the scheduler.

Change-Id: I24e197ee6ec4e2e94bbc6e8499f819be3a951cf4
2014-08-20 11:14:23 -07:00
Vince Leung 9475b00122 init.qcom.post_boot: enable perfd for msm8994
msm8994 will use perfd instead of mpdecision
to host PerfLock

Change-Id: Ib95952fdd6b8eea472cdb50694e959658eff9a42
2014-08-18 15:07:42 -07:00
Archana Sathyakumar daef8c8ce9 init: msm8994: Initialize energy-aware driver
Estimate per core power consumption and initialize
the energy-aware driver with these values.

Depends-on: 885673
Change-Id: I85fb4a1029d3dc1f8f1d38247a7e4a2117986771
2014-08-15 18:03:29 -06:00
Linux Build Service Account c0fa3cbf70 Merge "init: qcom: post_boot: Online big cluster after boot complete on 8994" 2014-07-26 12:42:10 -07:00
Amir Vajid f5aa23c6f6 init: qcom: post_boot: set cpubw devfreq governor to bw_hwmon for 8994
Enable CPU to DDR bus scaling using hw counters by setting cpubw
devfreq governor to bw_hwmon.

Change-Id: Iadc997a615afd5ec27ae85ba5a0c30f7b689d5f6
2014-07-23 10:16:05 -07:00
Karthik Parsha 954b95f2bd init: qcom: post_boot: Online big cluster after boot complete on 8994
8994 boots up with cores from the little cluster, Online the rest of
the cores from the big cluster after bootup is complete.

Change-Id: I483321a502ce9dd1bd556292ba9dc7a00f88be47
2014-07-21 18:34:24 -07:00
Vikram Mulukutla 1692f3175c int: qcom: post_boot: Correct min frequency of A53/57 to 199.2 MHz
The cpu scaling drivers now specify 199.2 MHz as the minimum
rate; switch from 200MHz to 199.2Mhz.

Eventually, this code should go away since there is no point
overriding the minimum frequency with an identical value.

Change-Id: I74a2062081936bc64010596cde89d7c3d3550e8c
2014-07-16 04:29:01 -07:00
Karthik Parsha 801fa549b2 init: qcom: post_boot: Enable L2 and CCI low power modes for 8994
L2 and CCI low power modes have been validated and verified. Enable L2 and
CCI low power modes along with CPU low power modes on android boot
completion.

Change-Id: I5430fda0712801478abb3d6cc55c830b4e7ec9a1
2014-07-14 12:06:04 -07:00
Patrick Cain 9ea128011b init: qcom: post_boot: use interactive_pro governor for msm8994
This change sets the cpufreq governor to be interactive_pro and
configures the parameters for both clusters in msm8994. If
interactive_pro doesn't exist the fallback will be interactive
with default configuration.

Change-Id: Iedc979ff2824f88d782d5d1da2dd733f62df6bd7
2014-07-02 09:23:51 -07:00
Amir Vajid 9e803cce80 init: qcom: post_boot.sh: enable low power modes for 8994
Enable CPU low power modes and disable L2 and CCI
power collapse.

Change-Id: Ie8de9ebe8b6b69c5e455d7926f4e42b29662ddae
2014-06-16 15:12:42 -07:00
Vince Leung a96aab8a78 init.qcom.post_boot: set min freq to 787 Mhz for 8610
For 8610 target, set the property that will enable
the device to have its scaling_min_freq set to
787 Mhz indefinitely.

Conflicts:
        rootdir/etc/init.qcom.post_boot.sh

CRs-Fixed: 630893
Change-Id: I3bcd04206443e0c855663fc8411ff41b48f97f55
2014-03-24 15:06:12 +05:30
Sravan Kumar Ambapuram fb0261da61 init.qcom.post_boot: enabling differable timer for ksm
power savings are observed for less load use cases by
making ksm timer deferrable.

Change-Id: I734cd89035f9b7ab25ba131c601505910c496d27
2014-03-19 10:17:26 +05:30
Linux Build Service Account df3c41b72b Merge "init.qcom.post_boot: Enable Interactive governor for MSM8916" 2014-03-18 01:29:44 -07:00
Linux Build Service Account e605e7c228 Merge "init.qcom.post_boot: lock two cores online for 8974 pro and 8084" 2014-03-17 18:22:35 -07:00
Linux Build Service Account 865fce640c Merge "mpdecision: Start mpdecision service on msm8916" 2014-03-14 07:43:17 -07:00
Anji Jonnala a80eccc88c init: qcom: post_boot.sh: enable low power modes for 8916.
Enable A53 supported low power modes(wfi, standalone power collapse,
power collapse) by default for 8916.

Change-Id: If1dd6bba4b57b11589fb6286fb6f68f29814f8d8
2014-03-12 06:53:24 +05:30
Vince Leung 0c4d90dfeb init.qcom.post_boot: lock two cores online for 8974 pro and 8084
MSM8974 pro and APQ8084 targets require two cores to be online
when the display is on to meet performance requirements.
Set ro.qualcomm.perf.cores_online property to a value of 2 to
enable this feature for said targets.

Change-Id: I054fee2c247b00bca3a129f86b488b2f77104ec7
2014-03-11 16:57:36 -07:00
Krishna Vanka 6609bf176f init.qcom.post_boot: Enable Interactive governor for MSM8916
This patch enables interactive governor for msm8916.

Change-Id: I6a5be4b9f6c03e65857c71a4367105fd4aed6bb2
2014-03-07 13:28:08 +05:30
Manaf Meethalavalappu Pallikunhi 457b3b7534 mpdecision: Start mpdecision service on msm8916
The new change allows to start mpdecision after Android post bootup

Change-Id: Idf10688aba555fd837fb9043dd88213e1bc8c6fa
2014-03-05 19:56:10 +05:30
Anil kumar mamidala a3affaa772 init.qcom.post_boot: remove lpm_resources sysfs entries
Recently lpm_resources implementation has changed and moved
to lpm_levels. Hence remove the unnecessary sysfs entries of
lpm_resources and add lpm_levels sysfs entries.

Change-Id: I3a5c2c979e25ae2efcc85e0fb16daf018ef65a35
2014-02-21 16:04:07 +05:30
Yulian Shandorov 77eb8a537b init.qcom.post_boot.sh: Add support for image version info
- Send APPS image version info to kernel through sysfs nodes.
- Image version node contains: "ro.build.id:ro.build.version.incremental".
Image variant contains "ro.product.name". Image oem version contains:
"ro.build.type:ro.build.version.codename". E.g:
image_version - > JLS36C:eng.julian.20131022.045853
image_variant - >
image_crm_version - > REL

Change-Id: Ib3e6e06a681249998acab8e3ac27980d43028702
2014-02-12 22:38:48 +02:00
Pawan Kumar Nimmagadda 47bbb955c8 init.qcom.post_boot: Include Low power modes for MPQ8092
Enable Low power modes in MPQ8092

Change-Id: I49a0297e00701d9263d4cedc9dd9cfdd01f1086f
2014-01-26 22:03:38 -08:00
Amir Vajid d2e87e3061 post_boot: modify hispeed_freq for 8974 pro
The interactive governor is configured with a hispeed
frequency of 1.5 GHz. This causes L2 to be bumped up to
1.5 GHz as well, which requires a turbo CX voltage and
affects power. To save power when the hispeed frequency
is triggered, change the hispeed frequency to 1.2 GHz,
which has the highest L2 frequency that can be supported
by a nominal CX voltage.

Change-Id: I6742770b79e9d9e929766c1039a73da99b3a89fc
2014-01-20 16:41:36 -08:00
Linux Build Service Account a33db10cb9 Merge "init.qcom.post_boot: Enabling cpu-boost and input boost for 8084" 2014-01-18 22:18:38 -08:00
Linux Build Service Account 491009af19 Merge "post_boot: set devfreq governor to cpubw_hwmon for 8084" 2014-01-16 13:27:45 -08:00
Rohit Gupta 899c44aace init.qcom.post_boot: Enabling cpu-boost and input boost for 8084
1. Enable thread migration notifiers from scheduler
2. Enable input boost with boost frequency as 1.49 GHz and boost
   duration of 40 ms

Change-Id: Ic8443905bba658234a5ceaad775d2c5369153660
2014-01-16 10:58:01 -08:00
Linux Build Service Account df146be698 Merge "init scripts changes to support new PM code" 2014-01-16 10:19:44 -08:00
Linux Build Service Account 8a2ec82515 Merge "post_boot: Set devfreq governor to cpubw_hwmon for 8974 Pro" 2014-01-14 18:00:36 -08:00
Amir Vajid 632de5921b post_boot: set devfreq governor to cpubw_hwmon for 8084
System will boot up with static mapping governor,
"msm_cpufreq". Change this to "cpubw_hwmon" to
enable Krait Bus DCVS.

Change-Id: I04b41e0acab7dcd1992f49145ee99217f85095d3
2014-01-14 12:55:57 -08:00
Linux Build Service Account 8dc9e8023e Merge "qcom: init.qcom.post_boot: 8084: Enable Interactive governor" 2014-01-13 19:41:57 -08:00
Girish S Ghongdemath a6f9f99f50 qcom: init.qcom.post_boot: 8084: Enable Interactive governor
Enables Interactive governor and set the recommended parameteres for 8084

Change-Id: I1deb726805d1adb2b834ccffe6d1bb764a5f899e
2014-01-10 10:26:20 -08:00
Mahesh Sivasubramanian 1731446096 init scripts changes to support new PM code
A new Power management driver has been add a new module and the sysfs
modules are no longer valid.

Change-Id: Ice97d56d966fda46176a81736194ea33ee368c9f
2014-01-10 11:26:18 -07:00
Anurag Singh c2140b83b8 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-07 14:11:01 -08:00
Amir Vajid 777bf76b7c post_boot: Set devfreq governor to cpubw_hwmon for 8974 Pro
Remove line that enables krait bus dcvs and replace it
with one that sets the devfreq governor to "cpubw_hwmon".

Change-Id: Ie1b3e7ff232ff06232e1dbada2ab762c95196c2d
2014-01-02 09:48:08 -08:00
Linux Build Service Account abfcfde70a Merge "CPUFreq: Set optimal frequency for msm8610" 2013-12-24 00:01:00 -08:00
Krishna Vanka 396223e124 CPUFreq: Set optimal frequency for msm8610
The ondemand governor has the ability to adapt to multicore
targets to render better scaling. This change sets one of such
parameters i.e optimal frequency to the nominal max frequency
to achieve best perf/power. Along with that, this change also
tunes the down_differential_multi_core to a reasonable value.

Change-Id: I4fe76224f0166a3a6db2a79c18637e0ab760ceac
CRs-fixed: 561456
2013-12-19 10:20:38 +05:30
Linux Build Service Account f4ae8fdaa6 Merge "CPUFreq: Set optimal frequency for msm8226" 2013-12-16 07:32:34 -08:00
Krishna Vanka ab3b2116dd CPUFreq: Set optimal frequency for msm8226
The ondemand governor has the ability to adapt to multicore
targets to render better scaling. This change sets one of such
parameters i.e optimal frequency to the nominal max frequency
to achieve best perf/power. Along with that, this change also
tunes the down_differential_multi_core to a reasonable value.

CRs-fixed: 561456
Change-Id: If0ea8e2f663982201f7d680144def44fbfd62c50
2013-12-16 11:00:20 +05:30
Linux Build Service Account 6ea8b0de60 Merge "init.qcom.post_boot: Modify above_hispeed_delay for 8974 pro" 2013-12-09 15:45:32 -08:00
Rohit Gupta 90d5b2b127 init.qcom.post_boot: Enable input boost for 8974 pro
Enables the following parameters for input_boost:
1) input_boost_freq is set to 1.49 GHz
2) input_boost_ms which is the time for which the boost is effective
   is set to 40ms

Change-Id: I697ddb1c2511ec3aa8cf9168bca392c7480a9a3d
2013-12-06 17:14:05 -08:00
Ramakrishnan Ganesh 57ee22a273 Revert "init scripts changes to support new PM code"
This reverts commit 838fe5acdd.
2013-12-05 17:57:01 -08:00
Mahesh Sivasubramanian 838fe5acdd init scripts changes to support new PM code
A new Power management driver has been add a new module and the sysfs
modules are no longer valid.

Change-Id: I1f5b2bafce1c5a034f31b9268d9dee574907dae0
2013-11-27 13:36:17 -07:00
Dilip Gudlur 4a3911388f init.qcom.post_boot: Modify above_hispeed_delay for 8974 pro
This change enables 40ms above_hispeed_delay parameter
for Interactive governor to apply for frequencies above
1.4 GHz.

Change-Id: Ib021da2fbfeac42cfa961d86357cfca67b090687
2013-11-25 15:58:33 -08:00
Linux Build Service Account a344967667 Merge "init.qcom.post_boot: Performance parameters for 8974 pro" 2013-11-24 16:17:04 -08:00
Linux Build Service Account b34838ce06 Merge "init.qcom.post_boot: Interactive Governor for 8974 pro" 2013-11-21 23:13:47 -08:00
Linux Build Service Account db815e1519 Merge "Enable Krait Bus DCVS Driver for 8974 Pro" 2013-11-21 23:13:46 -08:00
Dilip Gudlur 3c5703b59c init.qcom.post_boot: Performance parameters for 8974 pro
Enables the following paramters in post boot file for 8974 pro
1. Synchronize frequencies on thread migration for at least 20ms.
2. Limit frequency synchronization on thread migration to below 1.7GHz.
3. Enable SDF for interactive governor for 100 ms.

Change-Id: I6cbde98e16bb00f35a7ee5cc1913968530fa0df9
2013-11-21 20:18:13 -08:00
Dilip Gudlur 66e40e3ada init.qcom.post_boot: Interactive Governor for 8974 pro
Enables Interactive Governor for 8974 pro.

Change-Id: Ia42023bdf97302b900079c689377677bf36c4b83

Conflicts:

	rootdir/etc/init.qcom.post_boot.sh
2013-11-21 20:05:11 -08:00
Amir Vajid 6ccd6fee74 Enable Krait Bus DCVS Driver for 8974 Pro
Enable Krait Bus DCVS if soc_id matches 8974 Pro
(includes Pro AA/AB/AC)

Change-Id: Ib8799cc9c404378bb1ebc8607df1ca23ee40f435
2013-11-21 12:00:07 -08:00
Biswajit Paul 2e2d79df93 Modified chown/chmod to not follow symlink.
Enable symlink to not follow target file if "-h" option is
provided.

CRs-fixed: 545883
Change-Id: I94dbc32e7635d06a2121b3a1b07cc2616d06b5a4
2013-11-20 13:53:51 -08:00
Dilip Gudlur 558256068c init.qcom.post_boot: Enable L2 power collapse for 8084
This enables L2 power collapse during APPS suspend.
The change is introduced to accomodate an intermediate
level for L2 power collapse.

Change-Id: I5d01bb5f2c9bdde94cca7d4a758788a097dd22a5
2013-11-08 20:54:29 -08:00
Karthik Parsha 080216de2c device/qcom/common: Remove SOC check for Retention.
Enable Krait Retention on all 8974.

Change-Id: I21ddff0ecdde7fbac7eafab14b8e2d965dbfc6b0
2013-11-05 18:17:19 -08:00
Linux Build Service Account 2689b0e687 Merge "ondemand: Modify Sampling Down Factor to 2" 2013-10-21 00:24:41 -07:00
Roy Vinay 24af77081a ondemand: Modify Sampling Down Factor to 2
Change needed to help improve frequency scaling in ondemand
governor. Sampling Down Factor is set to 2 in the
init.qcom.post_boot.sh

Change-Id: If9f7ed11af0056851e19121d79eb8eb08776c215
2013-10-17 10:44:51 +05:30
Linux Build Service Account 86453f864d Merge "init.qcom.post_boot: Enable thermal core control for 8084" 2013-10-08 14:39:03 -07:00
Krishna Konda 47281d430c init.qcom.post_boot: change readahead value for mmc block device
For apq8084, change the readahead value to 512 from the default 128.

Change-Id: Idefebde08a2e4a8ac72acc2daa51056b46c771c6
2013-10-07 14:45:40 -07:00
Dilip Gudlur e1ea203be7 init.qcom.post_boot: Enable thermal core control for 8084
This change enables thermal engine to control hotplug of
secondary CPU.

Change-Id: I36b9ebf17d7aa25ad6c53d73475770e4b6adf0f1
2013-10-04 11:10:27 -07:00
Yaniv Gardi 06bca55025 rootdir: etc: change max readahead size to 512K in init
Change the VM_MAX_READAHEAD value from the default 128K
to 512K in the init script. Do this only for apq8084.

Change-Id: I2131c171d94b1c949b69d889506d6d97a1719bc6
2013-10-02 20:16:01 -07:00
Dilip Gudlur 0dcff5da9d init.qcom.post_boot: Enable post boot file for 8084
This change initializes apq8084 target specific features
in post boot file.

Change-Id: I2713657fba9331df9a363ee6fbcd8e045734f900
2013-09-26 19:39:22 -07:00
Satya Durga Srinivasu Prabhala b1b89e15db Replace sysdev path
sysdev gets deprecated in 3.10 Kernel. Hence, replacing
sysdev path with relevant path/s.

Change-Id: Ia951a720fb7012ca7e0c034935024b9f69faf1f3
2013-08-16 21:19:20 -07:00
Linux Build Service Account 2512a26eab Merge "init.qcom.post_boot: 8974: Set input_boost value" 2013-08-12 22:38:05 -07:00
Dilip Gudlur 49700f2668 init.qcom.post_boot: 8974: Set input_boost value
Currently input events like touch, boost the CPU to max frequency.
Instead of scaling to max freqeuncy, this change adds a node called
input_boost to the post boot file and sets its value to 1.19 GHz.

Change-Id: Icbc9b08055e23b746ec1ef008aa4bba179d42a9c
2013-08-12 13:08:21 -07:00
Matt Wagantall 405c7c8b49 Disable XO shutdown for 8226v1.0
Events surrounding XO shutdown may cause voltage droop on the MX
rail on 8226v1 hardware. Avoid this by disabling XO shutdown.
This has been fixed in hardware for 8226v2.

Change-Id: I99866e292247c1e575d122256de7fa97f3672e95
2013-07-12 19:26:21 -07:00
Linux Build Service Account c60503da93 Merge "ondemand: Modify Sampling Down Factor to 2" 2013-06-17 12:56:49 -07:00
Dilip Gudlur c300fcca0b ondemand: Modify Sampling Down Factor to 2
Change needed to help improve frequency scaling
in ondemand governor. Sampling Down Factor
is set to 2 in the init.qcom.post_boot.sh

Change-Id: I1f8eb4fabce24ed7076251f2cc1ac96e8dc79dd4
2013-05-22 15:29:48 -07:00
Veena Sambasivan 466d013095 Enable synchronization of cores on foreground thread migration
Turn on the cpu.sync_on_migrate node to synchronize target cpu frequency
to that of source cpu frequency on foreground thread migration. To ensure
no impact on power, lowering sync_freq value to 960MHz

Change-Id: Ib61f7f4c17736fd4f44deeeccc6b01f05830d130
2013-05-17 14:29:56 -07:00
Linux Build Service Account 44bd02a0e7 Merge "init: qcom: Install SWE_Browser.apk on first bootup" 2013-05-10 20:59:52 -07:00
Karthik Parsha 07b3724f15 device/qcom/common: Enable Krait Retention on SOC > 1.0
Enable Krait Retention on all MSM SOC greater than 1.0.

Change-Id: If97dbd7863fa4c5b749c4e10fd76be3d5eedc307
2013-05-09 10:30:11 -07:00
Priyanka Mathur d74a3a7059 msm8610: init: Enable low power modes
Enable stand alone power collapse and power collapse
for 8610 during idle and suspend.

Change-Id: I260655a8ab7f1fa9e2dadc05114aa1ace09ddff8
2013-05-03 11:10:55 -07:00
Stewart Chao 4b308c7717 init: qcom: Install SWE_Browser.apk on first bootup
Install SWE_Browser.apk from /data/prebuilt if it is not already
installed.

Change-Id: I48c9acbf3257121b3d89dec2f779aa61b50eff43
2013-05-03 11:52:53 -04:00
Linux Build Service Account cd972c3665 Merge "mpdecision: Start mpdecision service on msm8610" 2013-04-26 04:00:53 -07:00
Siddharth Verma 78c9d2a215 mpdecision: Start mpdecision service on msm8610
The new change allows to start mpdecision after Android post bootup

Change-Id: I5bd5f4a70209faeb2da734fd795872344579ba62
2013-04-24 16:10:29 -07:00
Linux Build Service Account 1ee9db6c2f Merge "Modifying sync_freq and optimal_freq for 8974 v2" 2013-04-22 18:56:31 -07:00
Rohit Gupta 1aa050c98e Modifying sync_freq and optimal_freq for 8974 v2
Initializing the sync_freq_value to 1.1 GHz in sysfs
in accordance with the new frequency table available
for 8974 v2. Also correcting the value of optimal_freq
from 918000 (not available on this device) to 960000.

Change-Id: I2a69b6afbf924536fb57ac21fa39fb880d0ebb0c
2013-04-18 17:30:36 -07:00
Harry Yang 4ba13520fc mpdecision: Start mpdecision service on msm8226.
The new change allows to start mpdecision after Android post bootup.

Change-Id: Ic3450beed0177ce73c4ecd82a33f676b4b667912
2013-04-18 16:27:07 -07:00
Linux Build Service Account f136a4a960 Merge "msm8226: init: Enable low power modes" 2013-04-18 11:32:33 -07:00
Priyanka Mathur d802dd2048 msm8226: init: Enable low power modes
Enable stand alone power collapse and power collapse
for 8226 during idle and suspend.

CRs-Fixed: 472591
Change-Id: I708d1fd3b37662e1cb5f40cfd421725671d589a8
2013-04-17 12:33:06 -07:00
Praveen Chidambaram 2e55408016 init.qcom.post_boot.sh: Disable core_control when setting cpu params
Kernel thermal migitation restricts the number of cores that can be
onlined, when in certain thermal situations. To set cpufreq parameters,
the core should be online. If the core_control feature is not disabled,
the cores cannot be brought online and the following commands will fail.
Enable core_control after the parameters are set.

CRs-Fixed: 460083
Change-Id: Icb8f073547483a1acdf97937cc1b6fae3add33a6
2013-04-16 17:33:47 -06:00
Linux Build Service Account 15ada6c039 Merge "init.qcom.post_boot: set ondemand as the default CPUFreq governor in 8x26." 2013-04-12 01:32:46 -07:00
Harry Yang e74d8183fc init.qcom.post_boot: set ondemand as the default CPUFreq governor in 8x26.
Setting both optimal_freq and sync_freq to 300000.

Change-Id: I2cb2748cfcee30cadd9743f21df1af9df9803b14
2013-04-11 15:29:29 -07:00
Lee Susman 9519840ca6 rootdir: etc: change max readahead size to 512K in init
Change the VM_MAX_READAHEAD value from the default 128K
to 512K in the init script. Do this only for msm8974.

Change-Id: I29cdea3116574f6ca9eba8dfb9b4db7c9b2d5e13
2013-04-10 20:22:54 +03:00
Linux Build Service Account 9216cc4db6 Merge "device/qcom/common: Enable Krait retention" 2013-03-18 19:16:46 -07:00
Karthik Parsha c12bdb2722 device/qcom/common: Enable Krait retention
Enable Krait retention for all the cores on 8974 V2.

Change-Id: Ic8cae0ee0ed0d7740cd7d540dfa4f9a9499b0ba7
2013-03-05 13:14:28 -08:00
Veena Sambasivan b996ab28bc Raise sync_freq to 1.026GHz from 918MHz
This sysfs node was created as part of the ondemand changes
for multi-core performance.

Change-Id: I42b065a394df70544a2208f4808391c060383c3f
2013-03-01 10:53:23 -08:00
Linux Build Service Account f43f686d5e Merge "CPUFreq: Sysfs values for ondemand multi-core performance" 2013-02-20 11:57:52 -08:00
Linux Build Service Account 9a81319658 Merge "init.qcom.post_boot.sh: Online secondary cores at boot for 8064" 2013-02-11 20:28:39 -08:00