msm: iomap: correct shared memory location and size for 9625

The physical location and total size of shared memory on 9625 has changed.
Update macros accordingly.

Change-Id: I92c50948af4f7edeb60503a0617e763a3a3066b3
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
msm: sps: disable cache miss feature in NDP-BAM by default

NDP-BAM has a new feature of cache miss error response. However,
peripherals may not support it. Thus, disable it by default.

Signed-off-by: Yan He <yanhe@codeaurora.org>
msm: cachedump: Add device tree support

Add device tree bindings for the MSM cache dumping driver,
with optional support for reporting the dump areas using
the memory dump reservation table.

Change-Id: Ia89dedd326c1c01d1c7137d7444bf32cdc0096bb
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
usb: ks_bridge: Fix memory leak in tx data path

ks bridge is allocating urb to transmit data to mdm.
This urb is not getting freed after transmit completes.
Hence call usb_free_urb() after urb gets submitted
successfully. Urb will eventually be freed after tx
completion.

CRs-Fixed: 401536
Change-Id: I7e0bc7d1de74613f6b3b019d1513e22ad9765709
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
msm: kgsl: Add MEM_WRITE type for postmortem dump

Add missed memory type to make postmortem dump more readable

Change-Id: I51e90efa24e85250c35d01dc504bde20e86dfc03
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
msm: kgsl: Update log messages for usability

Many of the log messages were outdated and did not tell enough
information about what they were logging.  Update the content
and/or remove log messages.

Change-Id: Ica21510150be034bb3551ef0279d3afa91e559ea
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
video: msm: Ensure idle state before enabling histogram

Disable interrupt, set state flags to false, cancel histogram collection,
and clear the workqueue before attempting to enable the histogram. This
guarantees that this is the only configuration of the histogram running.

Change-Id: I222932db40494724b3efdb2e5bea08a849095c1e
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
msm: kgsl: Improved bounds checking on user specified parameters

Verify that the user specified length for a PMEM region is smaller
than the size of the entire region as reported by the kernel APIs.

CRs-fixed: 380282
Change-Id: Ic0dedbad0127bdaed70eafc00238b44f982b093b
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
msm: 8930-gpiomux: Reduce drive strength for CDC_MCLK

8MA drive strength is causing GSM DCS/PCS RX band desensitization.
Hence, the GSM subsystem needs the drive strength to be 2MA for this gpio.

Change-Id: I4c5412a26edf9e0237942e5e484465ba75cde4b1
CRs-Fixed: 401569
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
msm: kgsl: Fix the address translation ranges for GPU IOMMU

Set the address translation to happen via ttbr0 for GPU IOMMU till
address 0x80000000 instead of 0x40000000. Also, adjust the size of
virtual pool so that it does not allocate an address greater
than 0x80000000.

CRs-fixed: 401364
Change-Id: I268dda47e82e80a7ee0a72a835c7777be8b6f7f5
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
tracing: ftrace events for user faults and undefined instructions

New ftrace events (user_fault and undef_instr) for data, prefetch
or undefined instruction aborts. The new ftrace events are under
events/exception.

Change-Id: Iea328b71a1f623861cac9b45d858c3bbe09e1b82
Signed-off-by: Pushkar Joshi <pushkarj@codeaurora.org>
msm: clock-8960: Add missing cam2_clk entry for 8064

There is a cam2_clk on 8064 so add the default "no-device" entry
so that this clock is properly registered.

Change-Id: Ib0505c7d8cc8499d420b7907a8e07cc6d42b8904
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
msm: smd_pkt: Enable IPC logging in SMD_PKT driver

Log SMD_PKT driver events to an IPC logger. This will allow
debugging the SMD_PKT driver without incurring the kernel logging
overhead.

Change-Id: Ida34d6f466b347ee2e030a88f32d0b9ec23c0b98
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
msm: vidc: Reset data corrupt flag for non-H264 decoder

Core does not set display correctness flag on decoder
output buffers for non H264 video codec. With this change,
we reset the data corrupt flag for non-H264 codec.

CRs-Fixed: 397599
Change-Id: Ibc7f701cf39e41ba6059ab1c1e09f83e77528a69
Signed-off-by: Rajeshwar Kurapaty <rkurapat@codeaurora.org>
block: Adding ROW scheduling algorithm

This patch adds the implementation of a new scheduling algorithm - ROW.
The policy of this algorithm is to prioritize READ requests over WRITE
as much as possible without starving the WRITE requests.

Change-Id: I4ed52ea21d43b0e7c0769b2599779a3d3869c519
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
mmc: Revert BKOPs feature

A newer version of BKOps should be picked from the community.
Therefore the old support is reverted.
Revert the following commits:
9db69fca22bd2970f6b14b50cf8533a1edb64364
8ac659eb3d96e31b8bb6b8d09143ddd6eb83ae19
f886c80ee2f4c29aeaab2d76c9303c00263bb428

Change-Id: I6b97c24cb8328759dc27b36cdbc42259a518fbae
Signed-off-by: Maya Erez <merez@codeaurora.org>
usb: gadget: audio: Add to audio function record functionality

This module enhances the USB audio function driver with
record functionality and adapts descriptors structures
to support compatibility with Win7.

CRs-Fixed: 363272
Change-Id: Ic30944ea117ee96e07eb5769ed5d58bfa53b4769
Signed-off-by: Anna Perel <aperel@codeaurora.org>
usb: gadget: Implement remote wakeup in mbim

Implement remote wake up in mbim.
Add required changes in ecm and rndis to comply to
a new structure of data_port in u_bam_data.

CRs-fixed: 396623
Change-Id: I2e182e78ed0fbd8524a3857f104b951ad5bdff4d
Signed-off-by: Anna Perel <aperel@codeaurora.org>
msm: mpq8064: Improve VP de-interlacing completion time

VP time to de-interlacing for 1080i content was over 20ms. This
was way too long considering content updating at 60Hz requires
latency to be under 16ms. This change allow for de-interlacing
to complete within 7ms.

Change-Id: Iae2be758ef8d5a6fcecb96df93448226c9ed9109
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
arm/dt: msm8974: Add support for panel reset-gpio in dts

The PMIC gpio 19 is used as panel reset for the
toshiba 720p DSI panel. Add support to configure this
gpio in the device tree.

Change-Id: Ie9fd7c9c690f4fdbe311d093a86181e25b964a1f
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>