Update to showp1984 ville mpdecision as of 5/11
8660: Various changes

* Align framebuffers to 4k page boundary
* Fix MSM_FB_EXT_BUFT_SIZE typo
* Fix compile errors when writeback and hdmi are disabled

Left out:
	arch/arm/mach-msm/board-holiday.c
	arch/arm/mach-msm/board-pyramid.h
	arch/arm/mach-msm/board-shooter_u.h
msm_fb: display: Update video format on fps change

Added check for frame rate change. Corner case if there is no
change in xres,yres and pixclock.

CRs-Fixed: 356328
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
(cherry picked from commit 1b92af6e05320b6f5858a0e4b5c9aa40e54a9b54)

Change-Id: I43cb099068ef4c69a364b142eb3c34a3fc426db6
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
Signed-off-by: Darescu Ionut <johnny@esi.ro>
vidc: Free shared memory when video core is in error.

When the video core is in error, the core times out.
At this instant, all the client buffers are freed,
but the shared memory is not freed. Free the shared
memory in this case.

CRs-Fixed: 357990
Signed-off-by: Deepak Kotur <dkotur@codeaurora.org>
(cherry picked from commit 17ca3688442f000d925287251456ef4a3eb63db3)

Change-Id: I7695d4b101d8b769276a73100de9cb2495d1ccb9
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
Signed-off-by: Darescu Ionut <johnny@esi.ro>
vidc: Send port reconfiguration for interlaced clips.

Component is not getting port reconfiguration request
from driver for an interlaced clip. Fix it by
modifying the condition for triggering the
reconfiguration request.

CRs-Fixed: 352456
Change-Id: I65ce5987f31915f45a13767965918b61e32db7a7
Signed-off-by: Rajeshwar Kurapaty <rkurapat@codeaurora.org>
(cherry picked from commit c264eed1e7debb50c97159784307de23bdfc3a3b)
Signed-off-by: Darescu Ionut <johnny@esi.ro>
msm_fb: display: disable mdp flip when enabling mdp solid fill

If both solid fill and flip mode are enabled, MDP underruns. So for
any pipe, if solid fill bit is set, flip operation modes including
left/right or/and up/done are disabled.

CRs-fixed: 334782
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
(cherry picked from commit 917ed6837ea5a43fe61b39ba0b966ae642fd9c4d)

Change-Id: I479285e5036b05b1997e66592fe178803ad990ee
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
Signed-off-by: Darescu Ionut <johnny@esi.ro>
vidc: Enable error concealment in video core

Without error concealment, there is a bug in video core due to which it
goes in to bad state for certain clips and times out. This change fixes
the issue.

CRs-fixed: 336167
Signed-off-by: Arun Menon <menon@codeaurora.org>
(cherry picked from commit 0a1dfa3ebb6056c8969fd594be998b7e666a74cd)

Change-Id: Ib3f8de2ff96bfe4d0db35197950fe758f9186b03
Signed-off-by: Yen-Pin Hsiao <yphsiao@codeaurora.org>
Signed-off-by: Darescu Ionut <johnny@esi.ro>
msm_fb: display: fix underrun seen due to scaling accuracy

When making scale phase step ratio calculation, accuracy is lost when
sizes are big since calculation is done in 32 bit and some truncation
happens; this leads to underrun in mdp hw since scaling ratio doesn't
match the src/dst rectangle. Increase accuracy by performing division
again on remainder and appending to lsb of ratio.

Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
(cherry picked from commit 1af8a35b8700d507016d6c05488401dbf6af0431)

Change-Id: Ifb2166833db74ae3c37640e5efb9c7a2e0d88209
Signed-off-by: Zhoulu Luo <zluo@codeaurora.org>
msm_fb: Fixing Aspect Ratio

Non-standard resolution, like 531*398, is treated as 720*480 instead of
640*480 , as it has non 4:3 aspect ratio.Chanding aspect ration calculation
to be in a range , rather than absolute.

CRs-Fixed: 320022
Change-Id: Ie3b1ebefe48ef648720f06336239af907c3468d2
Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org>
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
msm_fb: HDMI: EDID > 2 blocks, params not set.

Currently the driver discards one byte from DDC buffer.
In cases where EDID exceeds two block in length we need to discard
a total of 3 bytes before reading from EDID seg.

Change-Id: I60ff039cbc3ff4bbc81ec61de696d25c3ddca92e
CRs-Fixed: 307706
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
Signed-off-by: Abhishek Kharbanda <akharban@codeaurora.org>
Revert "vidc: Enable error concealment in video core"

This reverts commit ddf71c24fba169e7dc1da81a26657fbf14fd999c.