update defconfigs
mdss: hdmi: Wait for mdss iommu attached on boot with hdmi

If hdmi cable is connected with sink device on boot, external display
HAL tries to open frambuffer device. iommu page fault occurs
if iommu is not attached at this time. So, check if iommu is attached
and wait to complete it when hpd_int_work is invoked.

Change-Id: If774dc9912d11d582c6ac6f82582f2ecd9936661
Signed-off-by: jihyun.seong <jihyun.seong@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
msm: mdss: update bandwidth  requests on clock switches

Bandwidth requests to the bus need to be cleared when clock
is turned off for command panel to save power.

Change-Id: Id952bf191100ec817c7201e8948ce1eefd6cdc8d
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>

Conflicts:

	drivers/video/msm/mdss/mdss.h

Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
msm: mdss: support wfd and rotation simultaneously

Concurrent rotation and WFD usecases need to be supported
using a single writeback hw module for low end targets.
To enable this feature, mixer, ctl and DMA pipe needs to be
shared between block and line mode operations and hardware
programing is synchronized with a shared mutex.

Change-Id: I0fe909dd07006282239c65d5fe92d270069a3920
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>

Conflicts:
	drivers/video/msm/mdss/mdss_mdp_ctl.c
	drivers/video/msm/mdss/mdss_mdp_overlay.c
msm: mdss: Make mdp sync point generic to use

Currently mdp sync point supports buf sync ioctl for
normal mdp overlay operation. So making it more generic
such that it can be used for rotator also.

Change-Id: I04c5f29a5259238ef1de26f6e801269b89cf5fed
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>

Conflicts:
	drivers/video/msm/mdss/mdss_fb.c
msm: mdss: Add rotator sync point support in mdss

Currently rotation activities are blocking and hence hurt
the performance. So, make the calls asynchronous and use
sync point to realize this.

Change-Id: I677097fcaf133b0ed67ae94cfeacf3a0a10bc579
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
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: Add read/write buffer support for calibraiton tool

This change allows to process read/write operation through
buffer instead of single IOCTL call. It is part of
optimization to save DIAG packet processing time.

Change-Id: Iffaab2dd160959f8c7950ebca043b1e0cf25877c
Signed-off-by: Arpita Banerjee <cabane@codeaurora.org>
msm: mdss: support enter/exit DCM for calibration

This change supports the enter/exit DCM for calibration tool.
It blocks the unblank operation if target is in DCM (Display
Calibration Mode).

Change-Id: If65449b9863bb1f9ca0346d736b6939261d1394e
Signed-off-by: Arpita Banerjee <cabane@codeaurora.org>

Conflicts:
	drivers/video/msm/mdss/mdss_fb.c
msm: mdss: free framebuffer pipes on suspend

When going to suspend, need to clear the frame buffer pipes allocated
since these were allocated by driver. These will get reallocated
automatically on resume.

Change-Id: I3c5697277edfc8f976a0720f5f94f10314f5ebe6
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
msm: mdss: Avoid null pointer dereferences

Null check on mfd param in overlay api needs to be performed
to avoid kernel panic.

CRs-fixed: 498973
Change-Id: If37284ab83bc678714fd8eed20f6adcb689846fa
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>

Conflicts:
	drivers/video/msm/mdss/mdss_mdp_overlay.c
msm: mdss: Reset hardware cursor flag on suspend

Reset hardware cursor enable flag while going
to suspend as cursor address doesn't remain
valid after iommu detaching which create
iommu page fault after resume.

Change-Id: I2fd484de72b62f39cdeaee025995afc975b3ba6e
Signed-off-by: Pawan Kumar <pavaku@codeaurora.org>
msm: mdss: Remove deprecated vsync pending variable

vsync pending variable is deprecated and hence remove its
usage from all places in MDSS. Reenabling vsync ctrl once
panel is on now relies on user space application.

CRs-Fixed: 513502
Change-Id: I4b3062012983c1de98a5e59b4368e028eb6b46a5
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
msm: mdss: cleanup MDP interrupt handling logic

Simplify MDP vsync and dma done interrupt handling logic.

Change-Id: Ieac19ce4c6efc42c6005b2c0cab97be8a67ad263
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
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
msm: mdss: detach the SMMU when display goes off

Detach SMMU when display goes off, and attach it when display
goes on.  This prevents clocks left on while display goes off.

Change-Id: I50d96424bb030af55fa502241009ffc2dc1b1575
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
msm: mdss: support FB memory reservation removal on 8x10

User space is allocating its own ION memory for composition
buffer, which makes the FB memory allocation in the driver
redundant.

Change-Id: I79d655bf0dac02fd2c6b9a40dfcc3cc5c6a4343a
Signed-off-by: Radhika Ranjan Soni <rrsoni@codeaurora.org>

Conflicts:
	drivers/video/msm/mdss/mdp3_ctrl.c
	drivers/video/msm/mdss/mdp3_ctrl.h
msm: mdss: add histogram and lut support for 8x10

Histogram control and collection, and look up table
is used by content adaptive backlight algorithm (CABL).
Display driver provides control API for CABL to
start/stop histogram collection.  It also provides
the data API for CABL to collect histogram to analyze
the display content.   After analyzing the histogram,
CABL updates the look up table.

Change-Id: If4777e80d2b58ec0e3c55ee1ec748e281472f503
Signed-off-by: Xiaoming Zhou <zhoux@codeaurora.org>
Signed-off-by: Shivaraj Shetty <shivaraj@codeaurora.org>
msm: mdss: Replace vsync work queue with sysfs_notify_dirent

Since sysfs_notify_dirent() can be called in interrupt context,
use it instead of work queue. This should improve latency of
vsync events, especially as work queues run at normal
priority, and the other threads which transmit vsync events use
a higher priority.

Change-Id: I14de54b455ed5cc17b61e1e9ff9078b8c958cdcb
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>