quincy: update board for 3.4

 * untested but matches celox changes
mipi: clean up samsung panels
quincy: compilation fixes
quincy: add config

 ** untested and based off hercules
hercules: update config

 * add evervolv config

Change-Id: I4dbf618b01fabcde5a588a52e8d133c2ed1917e9
msm_rmnet: Fix potential memory corruption

Usage of legacy string manipulation function sprintf could lead to
memory corruption as the number of bytes to be written to the
destination is not bounded. Replace sprintf with snprintf where the
number of bytes to be written is explicitly specified.

CRs-fixed: 672202
Change-Id: I1788d655f048124c6b7cccee4345d8239743ada8
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
msm_rmnet_sdio: Fix potential memory corruption

Usage of legacy string manipulation function sprintf could lead to
memory corruption as the number of bytes to be written to the
destination is not bounded. Replace sprintf with snprintf where the
number of bytes to be written is explicitly specified.

CRs-fixed: 672202
Change-Id: Ic26bea1ddf9570a4970fc8c4373b066aa385e427
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
msm: msm_bus: Fix memory leak during RPM transaction

This is a serious bug that eventually cripples the system due to
lost memory.

CRs-Fixed: 442381
Change-Id: If4d33b35475a33b1602a1d923031345b47af963e
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
Signed-off-by: Sana Venkat Raju <c_vsana@codeaurora.org>
msm_fb: display: reference count base pipe free in dsi and lcdc

During dsi off or lcdc off, base pipe could be freeed if fb device is
closed. Since base pipe allocation and free are managed through
reference counting api functions, so those free functions api should
be called.

Change-Id: I210716a590cde87ee254184a42d9df38c8012ff6
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
msm_fb: display: turn off lcdc timing generator when splash is done

The lcdc timing generator is configured by boot loader for splash
screen. TG should be disabled when kernel is about to configure it
with its own parameters. Otherwise, mdp may hang or underrun while TG
is still active.

Change-Id: Ia2b2947c2759975d02e718edf306c86403bc6d33
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
msm_fb: display: fix pipe solid fill initialization issue

Currently solid fill mode is not properly initialized. Only the base
pipe allocated for the interface is supposed to be initialized before
interface timing generator is turned on. However, the solidfill_init
function initializes all pipes and this could cause underruns on the
pipes already being used.

Change-Id: I6be589c188a2dc285b5dc4a942840c603af6d1be
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
add sysfs interface for vib intensity

Change-Id: I918ca477b796a386605cc799c409ec286b307017
mdm: Fix svlte boot up crash

During boot up in SVLTE target we see a glitch in AP2MDM
err fatal gpio due to which 9K considers 8K apps has crashed
and pulls MDM2AP fatal gpio which results in a contradiction
crash. To overcome this glitch reverse the logic in mdm driver
to keep AP2MDM fatal gpio high during boot up & toggle the gpio
during panic prepare function.

Signed-off-by: Channagoud Kadabi <ckadabi@codeaurora.org>
(cherry picked from commit 92ead2b87b279d4f11f1e65aff1e1d75ca55fa07)

Change-Id: I82168ede19e1d793e09fa770d8c688d112ff5f0b
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
mdm: Fix svlte boot up crash

During boot up in SVLTE target we see a glitch in AP2MDM
err fatal gpio due to which 9K considers 8K apps has crashed
and pulls MDM2AP fatal gpio which results in a contradiction
crash. To overcome this glitch reverse the logic in mdm driver
to keep AP2MDM fatal gpio high during boot up & toggle the gpio
during panic prepare function.

Signed-off-by: Channagoud Kadabi <ckadabi@codeaurora.org>
(cherry picked from commit bb095d1a8469df994c6c31a709b3245b80922c7c)

Change-Id: I032f57dd9eb5a7ef957881b3ab09d848beb3dd89
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
msm8660: Enable config for svlte bootup issue

Signed-off-by: Channagoud Kadabi <ckadabi@codeaurora.org>
(cherry picked from commit c983ca9750d5b09d2ee2fbd86f5f95324cc4c021)

Change-Id: Ie414d6c570a9aa6bee0e0e3bbe5e85a662c3c60f
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
hercules: enable svlte bootup issue

Change-Id: Ieaf8755db80fc1d521a76cb5f54a02f927c64a50
iommu/core: pass a user-provided token to fault handlers

Sometimes a single IOMMU user may have to deal with several
different IOMMU devices (e.g. remoteproc).

When an IOMMU fault happens, such users have to regain their
context in order to deal with the fault.

Users can't use the private fields of neither the iommu_domain nor
the IOMMU device, because those are already used by the IOMMU core
and low level driver (respectively).

This patch just simply allows users to pass a private token (most
notably their own context pointer) to iommu_set_fault_handler(),
and then makes sure it is provided back to the users whenever
an IOMMU fault happens.

The patch also adopts remoteproc to the new fault handling
interface, but the real functionality using this (recovery of
remote processors) will only be added later in a subsequent patch
set.

Change-Id: Ic04659686e72838a0db518e9303dd037191e3879
Cc: Fernando Guzman Lugo <fernando.lugo@ti.com>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
[ohaugan@codeaurora.org: Resolved compilation and merge issues]
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
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>
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>