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)
msm_fb: Make buffers aligned to 4K page boundary

This change makes the frame buffers aligned to the page
boundary. Improves GPU performance since accessing the
frame buffer from page boundary is faster.

Change-Id: I17879437dd7cbb9a1758d82321c6e68dbd88b9e0
CRs-Fixed: 325134
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/board-msm8x60.c
msm_fb: Clean up of frame buffer 4KB alignment changes

Remove redundant code from the 4 KB alignment patch
and reduce the overhead of calculation of the hole
size by using bitwise operators in its calculation.

Change-Id: I1706484249bf8e01b250e91fa87e00f6021d9a72
CRs-fixed: 325134
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>

Conflicts:

	drivers/video/msm/msm_fb.h
msm_fb: display: Call footswitch control from overlay dtv on/off

Instead of dtv on and off, call footswitch control during
overlay dtv timing generator on and off calls

Change-Id: I186955d9c6b07608e77b599c23d9a6593faba6e3
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
msm: display: Add proper flags for secure/non-secure writeback buffers

For MDP writeback buffer allocations, use appropriate heap id flags
for secure and non-secure sessions

Change-Id: I619d0a00325c4ee7f2d86b276c89473f75118ff5
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/board-msm8x60.c
msm: ville: align buffers to 4K page boundary

Change-Id: I295bc10449696bcd4c30ed1ab3c7207b67ac3ed2
msm: ville: use appropriate heap id flags for sessions

Change-Id: I35d2002ff6b6385892740b2dce7d7a02f164a7e4
msm_fb: display: Enable timing generator during first update

During first display update through pan_display or overlay_play,
enable the timing generator for pull modes like LCDC, DSI Video
and DTV interfaces

Change-Id: I69ba1361586f0b461dcc50a7c6b96fa26347152c
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>

Conflicts:

	drivers/video/msm/mdp4_overlay.c
	drivers/video/msm/mdp4_overlay_dtv.c
msm_fb: display: Wait for external vsync before turning off DTV

Wait for external vsync interrupt before turning off the timing generator
for DTV display

CRs-Fixed: 341400
Change-Id: Ibd380f8e20a7ebb250669fcabf4233e9e526d22f
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>

Conflicts:

	drivers/video/msm/mdp4_overlay_dtv.c
vidc: Caching support for Video Encoder/Decoder.

Added support for cache flushing when the ion
buffers are allocated in cached mode for encoder
and decoder.

Change-Id: Iad44023108de41074eb2ce96bf0d0b89e2533812
Signed-off-by: Arun Menon <menon@codeaurora.org>

Conflicts:

	drivers/video/msm/vidc/common/dec/vdec.c
vidc: convert line breaks to unix style

Change-Id: I66ea16ff5116f0eede5250ed1c45029087243688
vidc: Migrate to ion_map_iommu() API.

Migrate video driver to use the ion_map_iommu() api,
this api provides the physical address if IOMMU is
not enabled.
If IOMMU is enabled in the system it provides the
virtual contigious address.

Change-Id: I0f6f7c50865cb3da88a0ee13425e3973037c846a
Signed-off-by: Arun Menon <menon@codeaurora.org>