lge/g2-open-com: remove intellidemand settings
mdss: ppp: add sync point to ppp, allowing for async ppp blit

It is a requirement that PPP be async and should use sync points
and fences to wait for buffers and communicate that it is done
using release fence

Change-Id: I35663737dd4bd4a52bb12b2a31ed06f3d5a69f31
Signed-off-by: Terence Hampson <thampson@codeaurora.org>

Conflicts:
	include/linux/msm_mdp.h
mdss: display: add edp aux channel support toward link training

Edp aux channel is the communication channel between host and
client (panel). Host reads edid back from panel and issues dpcd
command to panel through aux channel. This patch adds aux channel
support so that edp link training can be done.

CRs-Fixed: 486135
Change-Id: If29dc8257ecc555296c043f2ebcc6dc5cb400d49
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
mdss: display: add mdp core clock to dsi clock control

Since mdss interrupts are generated in mdp core clock domain,
mdp clock need to be enabled to have dsi interrupt be delivered
during dsi dcs command send and receive. Request of bus bandwidth
also needed to allow dsi controller to fetch dcs commands over
AXI bus.

CRs-fixed: 516172
Change-Id: I6e10cc5a193c9eb06803637e0432ec72f069377b
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>

Conflicts:
	drivers/video/msm/mdss/mdss_mdp.c
mdss: display: edp continuous splash support

Both edp main link clock and pixel clock are source from PLL.
This patch add edp clock nodes into system clock tree so that
both main link clock and pixel clock are configured properly
to support different panels with different resolution. Edp
related clocks handoff from bootloader are supported.

Change-Id: I6e4096beb9bff0d39f4f850bbc6d2157ac42e524
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>

Conflicts:
	drivers/video/msm/mdss/mdss_mdp_intf_video.c
mdss: display: Add support for dynamic FPS

Add sysfs entry for dynamic FPS update mode. Add support to
change FPS in the following scenarios:
1. Store the FPS and change the clocks only when Suspend/resume
   happens. This is the default configuration.
2. Change the FPS immediately by updating the clocks. Video
   mode engine is disabled and then enabled when clock rate
   is updated.

CRs-Fixed: 488453
Change-Id: I1722d54d9fbfdfbd7d22e02d8776a0f60dc86141
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>

Conflicts:
	drivers/video/msm/mdss/mdss_dsi.c

Conflicts:
	drivers/video/msm/mdss/mdss_panel.h
msm: mdss: Initial calibration mode implementation

Enable calibration mode to be set via framebuffer ioctl.

Change-Id: I50e7f652b23180553e1706975e7cbffce68ddf55
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>

Conflicts:
	drivers/video/msm/mdss/mdss_fb.c
msm: mdss: Enable assertive display backlight calibration

Allow for assertive display to set the backlight level in calibration mode.

Change-Id: I990c4a191410614bec2d615baaae1a2a34cc48e5
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
msm: mdss: Update notify returns notify state

Change update notify ioctl to return a value describing
the state that caused the update.

Change-Id: I407c73c7b5c24e36410545175cb8723b4c10971e
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>

Conflicts:
	drivers/video/msm/mdss/mdss_fb.h
msm: mdss: Add absolute backlight control for assertive display

Allow for assertive display to disable backlight updates (except for
updates to turn off display) as an option for automatic backlight mode. If
backlight updates are not prevented, flickering can occur when automatic
backlight mode is enabled and system tries to update backlight value due to
assertive display block controlling backlight values.

Change-Id: I250167e3387e3fbc795f7dfe9fc5f20398d6ca8c
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
msm8974: mhl_sii8334: init chip on discovery

MHL driver initializes the chip in probe and enables
irq. These operations are postponed until they're
required. This prevents any interrupts from
being triggered even when there is no real
communication from hardware.

Change-Id: Ifa5c66cfe2fb732d2f8e34b7473ab9ae07937dc7
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm8974: mhl: set hpd, tmds based on path_en bit

Set HPD and TMDS pass-through only after receiving
PATH_EN from the sink and reading all device
capability bytes from the sink.
Making MHL wait until the PATH_EN bit has been set by the
sink/dongle is in conformance with the MHL spec.
This change prevents incorrect behavior in usecases
such as meeting timing requirements in test 1A-02 HDCP
compliance test suite, disabling hpd when TV is powered off
with MHL cable connected to the TX.

CRs-Fixed: 504737
CRs-Fixed: 481930
Change-Id: Id2c1fb9d2dbe10b1310958021cca3533790e7394
Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org>
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm8974: mhl: Add support for sinks with non std DCAP INT STAT

This change enables pass-through of TMDS signals through
MHL Tx for sinks that have non-standard DCAP INT STAT SIZE
in the devcap bytes. This facilitates MHL display on certain
non-standard MHL sinks.

CRs-Fixed: 504730
Change-Id: Id847cd25642e9eac8d559cc5dd3e1ab1046ebcce
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
drivers/video/msm: update mdss (31050170)
msm: kgsl: Add per-context performance counter sampling feature

Add global monitoring ability for GPU performance counters on every command
buffer submission.  This feature is used by user-space via debugfs files.

Change-Id: I428276e5d991ba8bb8b7bdf1fe59432086f05e5b
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>

Conflicts:
	drivers/gpu/msm/adreno.c
	drivers/gpu/msm/adreno.h
	drivers/gpu/msm/adreno_ringbuffer.c
defconfig: automatic update

Change-Id: I4eb690b98959ec4f0b3a40d7cc5c844fd9938609
Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
iommu: msm: Refactor code to separate compilation

Modify the code and update makefile and defconfig to allow us to
only compile one of the two IOMMU drivers that we have. Only one of
the drivers are needed at the same time. This will ensure we are not
compiling and linking code that is not needed.

Change-Id: I7db69f873245e57bddab6625e0b04e2ed48f44b6
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
iommu: msm: Cache whether the soc supports v0 IOMMUs

Currently, each call to determine if the SOC supports the v0
IOMMU makes at least one call to of_find_compatible_node. This
function is not excessively slow usually but
msm_soc_version_supports_iommu_v0 is called on the fast path which
introduces latency. Since v0 support is not something that can be
changed at runtime, cache the status of v0 support in a static variable
to avoid calling the devicetree functions frequently.

Change-Id: I835774a2cecb074f2bf25b1d3acb6fb87a5c0417
CRs-Fixed: 507473
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
iommu: msm: Make regulators optional

Do not error out if regulators aren't specified in the device tree
node for an IOMMU. This allows IOMMU drivers to be used in simulation
environment and for early bringup of hardware.

Change-Id: I9bb6c3faa7ba5aed482bdad6612197497f7a849d
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
iommu: msm: zero out the bus_client in __put_bus_vote_client

The bus_client variable might become stale and re-used later. This is
causing a kernel panic when enabling bus votes on iommu v1. Fix this
by zero'ing out the variable as it's done in msm_iommu_dev-v0.c

CRs-fixed: 483497
Change-Id: Ib34a2f25d9eff0deee2e3809c6736ce2832e445f
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>