msm: kgsl: Optimize clock call order

Eliminate the possibility of duplicate RPM calls while using
set_rate in addition to prepare/unprepare.

Change-Id: I74905c2f79b7f78047798b6e8022ded2fce5bf33
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
msm: mhl: hdmi: MHL-HDMI handshake implementation

By default, HDMI driver adds entries for
all the formats that it supports into an internal table.
However, when MHL Tx is present, the max format
supported should be limited based on the maximum bandwidth
supported by the MHL Tx. We implement a handshake between
HDMI and MHL drivers to exchange callback function which
returns the status of HDMI's TMDS lines that is used by MHL
driver before sending RAP messages.

Change-Id: I53b6541307f54309fd53f0062d9be3ef1e15c495
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm: mdss: separate commit and wait for complete

Handle flushing of registers to display separately from wait.
This can unblock some other components such as post processing
to perform additional programming and flushes while waiting
for vsync.

Change-Id: I911a371f09eccedd5da9f4422cb12ddcf20844c8
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
msm: mdss: Lock post processing register writes

Ensure that post processing changes are committed and flushed independently
of other pipe commits. Workaround for hardware bug in MDSS flush
functionality.

Change-Id: I8cc2f044242c978159074040b766db8dca3a42a5
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
msm: mdss: Flush changes to post processing immediately

Current post processing changes wait for a display update to write its data
to registers. Trigger post processing configuration at time of update so
that the updated features will be updated at next vsync. Needed by
destination side post processing features in particular since their updates
are made independently of display updates and effect objective display
quality.

Change-Id: Ib5a2b4c33e45bece74dea2d8e17b5c3d239206b8
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
block: row: Re-design urgent request notification mechanism

This patch updates the ROW URGENT notification policy to apply with the
bellow:
- Don't notify URGENT if there is an un-completed URGENT request in driver
- After notifying that URGENT request is present, the next request
  dispatched is the URGENT one.
- At every given moment only 1 request can be marked as URGENT.
  Independent of it's location (driver or scheduler)

Other changes to URGENT policy:
- Only queues that are allowed to notify of an URGENT request pending
are READ queues

Change-Id: I17ff73125bc7a760cea1116b466115a2df635a14
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
msm: smp2p: Fix multiple registrations for inbound entry

If multiple clients register for the same inbound entry, then the
registration information is overwritten resulting in the loss of the
previous registration.

Fix the inbound entry registration to only perform initialization for
the first registration.

Change-Id: Ibda6a6d62dc82b456d675c3412057033bfe6854f
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
arm: dt: 8226: Add initial support for different boards

Add skeleton files for QRD, FLUID, MTP and CDP board.

Change-Id: I4b59dee24fcbe2bce50d07adfea02d716cf281b9
Signed-off-by: Hanumant Singh <hanumant@codeaurora.org>
msm: 8226: Add machine_is_* for different 8226 boards

Identify FLUID, MTP, CDP, QRD boards using machine_is_*

Change-Id: Ide719f9eea231e2c114f32509f49fcdc59dd6f45
Signed-off-by: Hanumant Singh <hanumant@codeaurora.org>
ASoC: msm8974: Fix the issue accessing memroy after freed

To avoid the future crash, order of clean up functions is adjusted

Change-Id: Ie5450afb5e4195de974dc021aef6d8d43bc3c8ab
Signed-off-by: Fred Oh <fred@codeaurora.org>
defconfig: msm8610: Enable thermal monitor driver in the kernel

Kernel thermal monitoring driver, provides a basic thermal mitigation
at boot, before the thermal daemons start in userspace.

Change-Id: I9fffa1e4cde7f707b2ff6f2e546f02fdbca74c46
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
defconfig: msm8226: Enable Voltage and Current ADC

Voltage and Current ADC USR peripheral is used by clients
to request voltage and current readings.

Change-Id: Id6e57963b83892367f39e7831f0bccd364dd00b9
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
msm: kgsl: Reduce cmd buffer size for adreno_iommu_setstate

Command buffer of size 250 is not required in adreno_iommu_setstate.
Reduce the size to 230 to prevent a big stack frame.

Change-Id: I92bbbce67014255c9e22875491fb4bab64d83766
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>
defconfig: msm8610: enable KGSL

Enable the KGSL GPU driver.

Change-Id: I2af1001e79830b828103da11b10aa7b6d66af4a3
Signed-off-by: liu zhong <zhongl@codeaurora.org>
ASoc: msm: handle underrun in compressed driver

Update the ALSA framework on detecting an underrun.
On the next sync_ptr ioctl, the ALSA framework takes
care of resuming writes to the DSP using the restart
operation.

Change-Id: I1605ab84aad1a3c5e4243caf3b1b214bc83bd233
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
arm/dt : msm : Use pm-8x60 device node for debug counters

IMEM debug PC counters specified by debug-pc-cntr used to have its own
binding. Now that pm-8x60 has other bindings, use pm-8x60 device tree
bindings to handle debug PC counters for 8x26 and 8x10 targets.

Change-Id: I0bcf74e66ff64bf3830d0fcfe514cb11cdb44f6f
Signed-off-by: Priyanka Mathur <pmathur@codeaurora.org>
defconfig: msm8974: automatic update

Update both debug and perf defconfigs for msm8974.

Change-Id: I19cf9540a102bc8cab6c443c052c1c20cc8fec64
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
ASoC: mdm9625: Add support for primary AUX PCM

Primary AUX PCM support is needed when codec is not used.
Add backend DAIs to machine driver.  Multiplex GPIOs for
primary AUX PCM.  Update 9625 device tree.

Change-Id: If56c28d3a93cbc918d288fbb11e8b8225ce85055
Signed-off-by: Prashanth Reddy <pgreddy@codeaurora.org>
msm: 8610: spi: Configure SPI controller on BLSP-1 QUP-1

Add SPI controller device on BLSP-1 QUP-1 and configure
its clocks and GPIOs.

Signed-off-by: Gilad Avidov <gavidov@codeaurora.org>
Change-Id: Ifcf5436575907a1bcf0f84b3f56ad45da9cea554
arm/dt: msm9625: Add RPM log node

The RPM log driver is used to read RPM log via debugfs.
Add node to read RPM log. Also add relevant properties
to read log.

Change-Id: I74ba9428303bb48cb825e14275a25dc3587e89eb
Signed-off-by: Priyanka Mathur <pmathur@codeaurora.org>