msm: mdp: Disable early suspend only for the MDP driver

Early suspend is deprecated in the framework but disabling it
completely can affect other subsystems. Disabling only for the
MDP driver.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
msm: mdp: Disable early suspend locally

undefing at the header level could mess with other components.

Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
msm: scm-pas: Provide a strongly ordered buffer to the secure world

The secure world requires that the metadata-containing buffer
be strongly ordered. Use the dma_alloc_attrs API to obtain a
strongly ordered region for this purpose.

Bug: 10750953
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
Signed-off-by: Mekala Natarajan <mekalan@codeaurora.org>
msm: scm: Add scm_call_atomic3

Some drivers need to pass three arguments atomically. Add support
for it.

Change-Id: Id0f962400c5c4f721eef44069fc3db1779248ae3
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
msm: rotator: signal timeline when rotator prepare fails.

When rotator prepare fails, timeline is not signalled causing fence
timeout on the rotator release fence. This patch fixes the issue.

Change-Id: I6023393d768dbb1a0a9095bb1822ac504632ed64
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
msm: kgsl: Add separate GPU shader memory mapping

Add separate kernel memory mapping for GPU shader memory.
Previously, both the register and the shader memory were mapped
as one entity, with the mapping length being equal to combined
size of register memory and shader memory. Now, we separate the
shader memory mapping to help in cases of GPU devices where the
shader and register memory may not be adjacent. This helps to
dump the shader memory in the postmortem snapshot. By having a
separate mapping for shader memory, the snapshot dump routine
simply reads in the shader memory range specified and dumps.

Change-Id: I30e59dffe849fefcfbbaf0e5245cc1024ccedcb1
Signed-off-by: Harsh Vardhan Dwivedi <hdwivedi@codeaurora.org>
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>

msm: Fix mem leak when using per-process pages

When GPU is using per process page tables the code creates
a new page table (domain) for every process. There is also
some associated structures allocated to keep track of each
domain. However, when cleaning up the memory used for a page
table only the domain is freed and not the associated structures.

Add a function to allow a client to properly unregister a domain
which will free all the memory associated with a domain.
Call the unregister function from kgsl driver code.

CRs-fixed: 480801
Change-Id: I9704c12c66a95ce66cea63b619bbdbafa0f1eac8
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>

Conflicts:
	arch/arm/mach-msm/iommu_domains.c

msm: kgsl: Remove nap_allowed variable and functionality

Allow NAP on all targets.  The splitting of the clock enable
and disable calls into enable/prepare and disable/unprepare
allows us to safely make this change for all targets.

Change-Id: I03d909b86aef33631a887d159cf0a807a6d0ae75
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>

Conflicts:
	arch/arm/mach-msm/lge/mako/board-mako-gpu.c
ARM: Add support for 64 bit register reads/writes

Add macros to read and write to 64 bit registers.

Change-Id: Id45d4086aa148ba96df3987c3341c133f1c56541
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Signed-off-by: Iliyan Malchev <malchev@google.com>

Conflicts:
	arch/arm/include/asm/io.h
msm: HTC: Unconditionally enable USB Speaker support

* Enable extra cases for USB Speaker detection.

Change-Id: I7acdd2df84031f00c435b0762ed775013b030d75
mmc: msm_sdcc: Add support for HTC SDC_PAD_PWR_SWITCH

* Needed for HTC SDIO WiFi

Change-Id: I5b482d5578d8b659e165f95eb3f92be924893ec6
msm: mdm2: Add HTC modem initialization code

Change-Id: I49ca00e20fa5c335ab8f323762e91743dfaf85d7
msm_serial_hs_brcm: Add Broadcom high speed MSM serial interface

* Needed to communicate with Broadcom Bluetooth.

Change-Id: I3c4b0445b7f8d0a583367cdc76779226bdf30a38
msm: camera: Update HTC camera stack drivers

* HTC kernel version: m7-jb-3.4.10-e22f38b

Change-Id: Ie3001d30ee46649668708f20ec0a24d5e71889a1
power: pm8921-charger: Update HTC pm8921 drivers

* HTC kernel version: m7-kk-3.4.10-17db3b4

Change-Id: Idaa067e6f46de61b4ba62576142a94c45c08425b

Conflicts:
	drivers/power/pm8921-bms-htc.c
	drivers/power/pm8921-charger-htc.c
msm: HTC: Update emmc partitions code

* HTC kernel version: m7-kk-3.4.10-17db3b4

Change-Id: If4dcf8f9ae8a3a5f103641ad456606f591b6bf1d
msm: HTC: Update devices_htc.c

* HTC kernel version: m7-kk-3.4.10-17db3b4

Change-Id: Idc0477bb7d5f79baceab26ea24380f752525b775
msm: HTC: Update htc_restart_handler

HTC kernel version: m7-kk-3.4.10-17db3b4

Change-Id: Icefd20bcceb28eb04fe02bde139f6e7520818d89
Revert "Fast charge: add fast charge support"

This reverts commit 0b5b6761ff9d13783a00db4a478988f888c507a9.

Conflicts:
	arch/arm/mach-msm/htc/htc_battery_8960.c
msm: HTC: Update HTC battery drivers

* HTC kernel version: m7-kk-3.4.10-17db3b4

Change-Id: I69b7420a33199b5a48119d846c5fdb221abe2d65
msm: HTC: Update HTC headset drivers

* HTC kernel version: m7-3.4.10-g02c7505

Change-Id: Ia35be05ac2e0aed31ee990971aa1afe233b718b1
msm: HTC: Update HTC MSM8960 acoustic driver

* HTC kernel version: m7-3.4.10-g02c7505

Change-Id: I5025374d033a1c711fc95882a9e39b7258a1332a