msm: vidc: Fixes a bug in firmware download.

Fixes a bug in firmware download for secure
playback.

Change-Id: Ie93361c508f350363ec01f1c807859b6feec0618
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>

Conflicts:

	drivers/video/msm/vidc/1080p/resource_tracker/vcd_res_tracker.c
msm_fb: display: Report correct fps to user space

There are only 30 pan updates per second due to MDDI
Type 1 interface bandwidth limitation. Hence, 30 fps
needs to reported to user space for MDDI Type 1 Panels
though the panel refreshes at 60Hz. Make change to all
type 1 panels to report only 30 fps to userspace.

CRs-fixed: 330584
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
(cherry picked from commit 033ee132dd50dfb4ca11f8c87d1a3f1c988b0a74)

Change-Id: Iadb9ab77179b373e417a565d26581ebab5799661
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
vidc: Check for proper buffer handle before free.

Check for proper buffer handle and client handle
before unmapping and freeing the buffer.

CRs-Fixed: 351100
Change-Id: I88f5e142839f12cc19360dbe26a8d4e6a7ec99de
Signed-off-by: Deepak Kotur <dkotur@codeaurora.org>
(cherry picked from commit 974a96c1634659213f7d226fa5092398ddd46398)
(cherry picked from commit 222e467f121840d69ff2701682bc7ece7420a502)

Conflicts:

	drivers/video/msm/vidc/common/dec/vdec.c
	drivers/video/msm/vidc/common/init/vidc_init.c

Signed-off-by: Zhoulu Luo <zluo@codeaurora.org>
(cherry picked from commit a46d7d966ce99a55a5806f48de50d407c1dbb77a)

Conflicts:

	drivers/video/msm/vidc/common/dec/vdec.c
	drivers/video/msm/vidc/common/init/vidc_init.c
Changes about heaps
Revert "msm: vidc: Fixes a bug in firmware download."

This reverts commit cf8fa2c934a67b6d3f67b4f3fb06a014af4a553a.
Changes in s7 heaps :-)
msm_fb: display: disable pan display and memory access to fb1 and fb2

The native fb1 and fb2 framebuffer memory is not used and not
allocated on the board file. So on the driver side, pan display ioctl
or other operations on fb1 or fb2 framebuffer memory is checked and
invalidated.

(cherry picked from commit ca61dbb1d9f0d8fe2c4d5871d9934379708c1091)

Change-Id: Ie3e85e20f5675f9cfe02c4587f0fe119e8d57e76
CRs-fixed: 357242
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
(cherry picked from commit 722c3f5d85f95a5f6bf6b94dfb39cc8813ceb572)

Conflicts:

	drivers/video/msm/msm_fb.c

Signed-off-by: Zhoulu Luo <zluo@codeaurora.org>
(cherry picked from commit c5bbffec2019ad4f4f574f0719a1a98d4c7fa5f7)

Conflicts:

	drivers/video/msm/logo.c
	drivers/video/msm/msm_fb.c
msm_fb: display: prefill two writeback frames for lcdc.

Pre-fill two writeback frames before enable writeback mode
to avoid flickering for lcdc.

CRs-fixed: 325327
Change-Id: I2ae6edea4578441f2027cc7657c851cf9646a28c
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: display: Update Toshiba DSI-to-LVDS to support WUXGA panel.

Add 1920x1200 WUXGA panel support to the Toshiba DSI-to-LVDS driver.

Change-Id: I2de71377f83de9847ef6b25b89dc5ae563279d1b
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: display: Read DSI platform's data lane swap for Novatek panel

Read DSI platform's data lane swap setting for Novatek panel and
set it in panel info for programming internal lane control
register

Change-Id: I762ed4a526e205803ff64c8eb92ce7758ab1d946
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: display: Add Chimei MIPI-DSI WUXGA panel driver.

Add Chimei MIPI-DSI WUXGA (1920x1200) panel driver.

Change-Id: Ie5d55309efa81e237215de4d79b0bc84ce5072ef
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: display: Add write permission for 3D barrier file.

Allow user space application to write to 3D barrier for control.

Change-Id: Ia58597ad3707faa3f2d89de5f53fc77cfd97530a
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: display: Featurize pm operations for external display

Featurize suspend/resume operation of the external display
to resolve compilation error in cases where external display
features are not defined.

Change-Id: Ifae276f514b67314a22e50fd80237e2168482d3f
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: display: add mixer2 writeback userspace support

Apps, e.g. fbtest can access mixer2 writeback functionality in
userspace by providing ion writeback buffers.

Change-Id: Ia56ac5275854231f1f28066f78db6dda97bb7b85
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: display: Add mutex during display turn off

There is a possibility that suspend operation trigger during
a display update. Add mutex to serialize suspend and display update
operations

Change-Id: I52dea1bd718e8c54d894ae3830e86105f951efab
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
Update config
msm_fb: display: Fix Chimei WUXGA panel driver for 60 fps.

Fix front porch blanking according to the panel EDID
for 60 frames per seconds.

Change-Id: I3de0a238f5d08e14073a409bfcf2ec20002048b7
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: display: Add I2C interface to Toshiba DSI-to-LVDS driver.

The Toshiba bridge has both DSI and I2C interfaces.
The DSI interface is used for configuring the bridge registers
during setup.
However, when video is running via the DSI interface
then the I2C interface is used for read/write
the Toshiba bridge registers.

Change-Id: I6e90244948e09710fb9f55f1d828e73e1218e266
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb: display: Initialize work queue for MIPI command mode panels

Initialize workqueue for MIPI command mode panels for s/w refresher
mechanism to work in x-window type architectures.

Change-Id: Id67c54452aa0b02a39f480709fc4bcd6c7bde2eb
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
msm_fb:display: add display support for mdm platform

add setting for no mdp hw case
add ebi2 epson qvga panel setting

Change-Id: I91b9ef1890a66eb95c14f8a393b89baa757904a5
Signed-off-by: Zhang Chang Ken <kenz@codeaurora.org>
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>