vidc: fixes squashed from caf

* 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 c264eed)
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 17ca368)

Change-Id: I7695d4b101d8b769276a73100de9cb2495d1ccb9
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
Signed-off-by: Darescu Ionut <johnny@esi.ro>
Revert "Port "msm_fb: display: fix the hang issue caused by solidfill pipe" to Pyramid"

This reverts commit 6a505d58ca9c54cf00b70aad617f656e03e8ae89.
mdp4 overlay: fixes, squashed, solid fill underrun, formats

* 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 1af8a35)

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

* mdp4 overlay additional pixel formats introduced to handling

* 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 917ed68)

Change-Id: I479285e5036b05b1997e66592fe178803ad990ee
Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
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 917ed68)

Signed-off-by: Ram Kumar Chakravarthy Chebathini <rcheba@codeaurora.org>
Signed-off-by: Darescu Ionut <johnny@esi.ro>
Change-Id: I479285e5036b05b1997e66592fe178803ad990ee