enable ram_console in celox
video: msm_fb: Increase display timeout to 2 seconds

One second time out for no frame update, as in current implementation,
does not allow CABL to reach minimum backlight level possible because
histograms dont get generated after one second. So increase time out
period to two seconds which seem to be sufficient for complete black to
complete white and vice versa transitions.

CRs-Fixed: 370804
Change-Id: I0712924d669abcb820654cd6ca5f7da37bed57e6
Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org>
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
(cherry picked from commit 1bb4edf9242b0397975636a4442318713a53b5e6)

Signed-off-by: Dhivya Subramanian <dthiru@codeaurora.org>
skyrocket: minor defconfig update to bring in line with quincy
quincyatt: Update defconfig

 * Turn off uniprocessor DVFS. How the eff did that get enabled?
 * Enable Netfilter options needed by Jelly Bean
 * Turn off Samsung's MTP mode, it's broken with our userspace.

Change-Id: I7f8ba362f0300facac47a9a4ac338ea722a24550
msm_dcvs: Update interface to get updated timer on IDLE_EXIT

TZ DCVS algorithm is updated to give a new timer value on idle_exit
in order to catch smaller CPU bursts correctly. Also protect
against a timer race condition between IDLE_EXIT and CLOCK_FREQ_CHANGE
events.

(cherrypicked from commit id 76af983bbd08458eb74d7752c668c561bce2fd22)
Change-Id: I1ab414e9cd582c0eb8f86f0d87fa132d709da100
Signed-off-by: Eugene Seah <eseah@codeaurora.org>
msm: pm-8x60: Don't restore ACPU frequency for hotplug cases.

During hotplug if power collapse fails don't try to restore the
ACPU clock frequency. For normal hotplug exit ACPU drivers save
and restore as part of hotplug notifications.

CRs-fixed: 334002
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
(cherry picked from commit 4e025d9b72f771e30e1803871ac21dbf9d1a366f)

Change-Id: Ifcba558b17a72c232c60ed38d7849f196db1ad44
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
msm_fb: display: alloc/free writeback buffer done at do_blt()

To avoid double freeing writeback at end of blt mode, let
both alloc and free writeback buffer done at do_blt().

Change-Id: I1f89eb87cf9084db570aa71f23c71c648543ec40
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: display: Enable pre-multiplied alpha for MDP303

For images which are pre-multiplied with alpha, driver
support is now added to blend them properly

Change-Id: I1c07496f9d85c50f1df9eb8d70362ff23dbd90f8
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
msm_fb: display: resolve compilation issues for 7x27a

Resolve compilation issues for 7x27a

Change-Id: I294e59a1829eb91b48e1ceff510ff589675e496f
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
cpufreq: Add cpu utilization statistics to aid decisions made by userspace.

Understanding system load as seen by cpufreq can help userspace
algorithms make better decisions to improve system responsiveness.
One such example would be the MP decision algorithm which mines
various system info to make decisions on hotplugging in/out
the additional cores.

Signed-off-by: Anitha Anand <anithas@codeaurora.org>
(cherry picked from commit cbeef6aafc4964c4a6cfafd26b23eaccd40804b4)

Change-Id: I8a5fb95380af898076fe0e246fb21e3aa48b33b1
Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>
cpufreq: fix utilization statistics for sync cpus

If the cpus are using related_cpus policy, then the
current implementaion will overwrite the the calculated
load for every iteration in the for loop. Hence, mpdecision
will read incorrect value, if the cores are using related
cpus policy. With this change mpdecision will read the
sum of the loads of all cpu's, if related cpu policy is
used.

Change-Id: I242c8fe39fd75dc3e48750a5b78a5d218b536ddd
Signed-off-by: Narayanan Gopalakrishnan <nargop@codeaurora.org>
Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>
msm: kgsl: Faster GPU hang detection

Check global GPU status registers in intervals of 2 seconds,
if the registers did not change after 2 seconds trigger a hang.
When there is an actual GPU hang and GPU is stalled, this reduces
the current hang detection time from 10 seconds to 2 seconds.
Faster GPU hang detection reduces the overall time to recover
from GPU hang.

CRs-fixed: 384922
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>
(cherry picked from commit 3335f14d31f5078f1de12774e08e1321e40d093a)

Change-Id: I57f363364eb76056cc65cf9ae9d686a8dad5283d
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>
msm: kgsl: Create a separate pagetable for priv bank of IOMMU

The IOMMU registers should only be accessed by priv bank. Create a separate
pagetable for priv bank and map the IOMMU registers to only this pagetable.
This is only supported for devices which can use the priv bank for
performing in stream pagetable switches.

CRs-fixed: 380834
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
(cherry picked from commit 19ca4a6cec18c35d8e2dc1cbde68f636341b5f5e)

Change-Id: I13026b8999dd882f3e4eb02997fa99645ba8b5fa
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
msm: kgsl: Add idle after writing SMMU ASID register

Add an idle for synchronization after writing the SMMU ASID register.

CRs-fixed: 380834
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
(cherry picked from commit be39728459a2b7a9c0a5b1faf11e7406976ddcc7)

Change-Id: I143d045cd94d575b59da6fe6d8f1ccef71d16e69
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
msm: kgsl: For IOMMU only decide to flush when memory is unmapped

In case of IOMMU memory needs to only be flushed when it is
unmapped and not mappped. Also, when an application is running
the number of unmaps would in most cases be less than number of
maps, so this way the number of flushes wil be fewer.

CRs-fixed: 380834
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
(cherry picked from commit 0c811269372d83d18538c74ace76554ac77ce933)

Change-Id: I7ae96adab7b336221fc6bd4e6e085180122c79e3
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
msm: kgsl: Remove additional idle commands

Remove unneeded idle commands from the command stream when updating
pagetables and doing TLB flushes.  Ths cuts down on the number of
commands in the ringbuffer during switches.

CRs-Fixed: 380834
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
(cherry picked from commit 5462907f72ddcc7d337ce9431d54428c8dc486eb)

Change-Id: Id930be772075f5ac099046544c80266c5fc03a07
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
Merge in Samsung changes for SGH-T879

 * Merge changes for TMO Galaxy Note
 * Add CM defconfig

Change-Id: Idcc14867c4caed03b87415cea0ee8b3ac25badbd
defconfig: update hercules defconfig

Change-Id: I672ebea0327c183eb13922aac01079b86666d33b
block: Add Simple I/O scheduler
Makefile: KBUILD_CFLAGS optimizations