Revert "mdss: Notify userspace of changes to blank status"

This reverts commit 4a1b9be9ff7f5b092cd659dddb487918612a5944.
Revert "mdss: Add newline to VSYNC timestamp"

This reverts commit cb7b26e15816582c5574ad602ca6592e05e2e2a4.
Revert "msm: mdss: Add SMP per pipe parameter into hw capabilites"

This reverts commit fc6cf41f9b1a150781b150d32f10e6289d9f38a3.
Revert "msm: mdss: implement overlay prepare ioctl"

This reverts commit a37f1a4585a22c46a9aaa77c0214dc546d6c8deb.
msm: mdss: remove interruptible timeout waits

Currently display driver contexts are not utilizing interruptible
wake-ups while using wait_for_completion_interruptible_timeout. This
can lead to incorrect context wake-up and un-predictable outcome. Since
there is already a timeout attached to these kind of context sleeps, it
is safe to replace them with wait_for_completion_timeout.

Change-Id: Ia528debf34aef0acdda2bea1219a128c200c3651
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
msm: mdss: Add support to halt pipe fetches

Add a utility to halt any pipe fetches and wait on it until all fetches
are completely halted. Use this utility during staging and un-staging
of the pipe.

Change-Id: Id865970063dffc2870be5fd2cf51b9711134dc89
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
msm: mdss: esd recovery support for 8x10 targets

This patch adds kernel side support for esd recovery for mdp3
targets. This patch adds the functionality to driver to check
the panel status periodicaly and send event to HAL if it detects
that panel has gone bad.

Change-Id: I901e2908beb5de3f557da7d75cca876a40532efe
Signed-off-by: Shivaraj Shetty <shivaraj@codeaurora.org>

Conflicts:
	drivers/video/msm/mdss/dsi_host_v2.c
msm: mdss: esd recovery support in command mode for 8x10 targets

This patch extends support for esd recovery for command mode panels
on 8x10 targets.

Change-Id: Icf289918e46f5c975d459355823ff62916cb66d1
Signed-off-by: Shivaraj Shetty <shivaraj@codeaurora.org>
msm: mdss: Add an extra write of zero to clear dsi-ack-err bit

In addition to writing 1 to clear dsi-ack-err bit, an extra write
of 0 is also needed to clear error bit completely.

CRs-fixed: 574066
Change-Id: Ib9df9fe5f993605372ced8766874fa00538f505a
Signed-off-by: Shivaraj Shetty <shivaraj@codeaurora.org>
msm: mdss: Add six zone LUT size as PAv2 parameter

Added six zone LUT size as a parameter to PAv2 in order for the size to be
specified by the user. This size is sanitized based on the required LUT
size.

Change-Id: Iaf1b418ce1a3ec4b5013b1192c7f3b7de5827e3d
Signed-off-by: Benet Clark <benetc@codeaurora.org>
msm: mdss: Fix error in BL linearity inverse LUT check

Associate the maximum index for the BL linearity inverse LUT with the
table size and not the maximum backlight value. The maximum backlight
value can cause an out of bounds index for the BL linearity inverse LUT.

Change-Id: I35fb276f8f1cc6be3be158fa25e6442be438cbf0
Signed-off-by: Benet Clark <benetc@codeaurora.org>
msm: mdss: Fix error cases in AD config

The BL linearity LUT was not being copied correctly. This change allows
AD config to exit with errors correctly if the BL linearity LUT is not
passed correctly.

Change-Id: I491a7cc4b168b7691c65cbc2d2963f8a7a3f804d
Signed-off-by: Benet Clark <benetc@codeaurora.org>
msm: mdss: Sanitize read of panel properties

Check panel property's values properly before operating on
them.

CRs-Fixed: 562887
Change-Id: I26ce51e8b3a8e9328e7b6370b9c56d67fcdd1901
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
msm: mdss: enable vsync event during continuous splash

Currently when continuous splash screen is enabled the vsync
event reports are delayed until first frame update. This blocks
boot animation. To fix this issue, after user space enables
vsync through vsync_ctrl, mdp driver will start sending vsync
events.

CRs-fixed: 567649
Change-Id: Ifb35e3479805e595d950ab7c38c26de201aa2d16
Signed-off-by: Ray Zhang <rayzhang@codeaurora.org>

Conflicts:
	drivers/video/msm/mdss/mdss_mdp_ctl.c
msm: mdss: Do not force commands on HS mode by default

Do not force the commands to be sent in HS mode, and let the
caller function set the mode as required. Make sure that the
panels which can recieve panel on/off commands only in LP
mode wont go to bad state due to this forcing.

Change-Id: I093978cb3bfd3022e4158c93d154e5c9fcb32e66
Signed-off-by: Shivaraj Shetty <shivaraj@codeaurora.org>