msm: display: vsync usage in turning off dsi video

Add timeout to waiting for vsync so that it can come out
when vsync interrupt is not working.
Need not wait for vsync after timing engine is off.

CRs-Fixed: 458419

Change-Id: Ib989e435405613d891024ba15144723730454e34
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
msm_fb: display: issue completion when disabling vsync irq

When vsync irq is disabled, vsync_wait_cnt is reset to zero and
completion is issued out as they are done in isr to make sure all
wait_for_completion is released.

Change-Id: I689f0c8cde43404d0caf5bb4644efa6385798d0e
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
msm_fb: display: get mipi frame rate from panel file

If frame rate value for mipi video panel is coded in panel file it can
be directly used to avoid calculation error.

Change-Id: I6ad86226c81da4bcf36196385f9ff4bea0bef0ca
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Merge "msm_fb: display: get mipi frame rate from panel file"
Merge "msm: display: vsync usage in turning off dsi video"
Merge "msm_fb: display: issue completion when disabling vsync irq"
msm: camera: Enable pixel line buffer for ispif.

Enable pixel line buffer for ispif to handle fast incoming
data. This provides cusion to dowmstream components such as vfe
and helps in preventing UB buffer overflows.

Signed-off-by: Nishant Pandit <npandit@codeaurora.org>
(cherry picked from commit a37f0eda17c3770fe9d1f670ee21e343ee28099d)

Change-Id: I78a2440db0b1004b71756e148b68ff6b660d4937
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
msm: camera: Disable software override for axi wm priority

Remove the software override for write master priority because
hardware assigns priority to write masters based on data rate.

Change-Id: If16b54f05d41a2d78606ae21983aa3248eb2b1a3
Signed-off-by: Nishant Pandit <npandit@codeaurora.org>
(cherry picked from commit a6add94f6d69dc4f8694621403777337ce74510d)
msm: msm_bus: Fix the 64-bit division during interleaving

When interleaving flag is enabled, the bandwidth is divided
between ports. There was an error in the division as the
macro was not correctly updated with the right order of using
bandwidth and port number when 64-bit division function
was used by the bus driver.
Correcting this for fixing the token allocation issues
observed.

CRs-Fixed: 472791
Change-Id: Ie7c7f9557006cbb946eaa9eff4b50771cc60525e
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
(cherry picked from commit 25a07480e9a25a75759d7d6db79b6f29350b8729)
Merge "msm: camera: Enable pixel line buffer for ispif."
Merge "msm: camera: Disable software override for axi wm priority"
Merge "msm: msm_bus: Fix the 64-bit division during interleaving"
msm: msm_bus: Change MDP port interleaved setting

When display driver requests bandwidth on MDP port 0, it was
automatically divided between port 0 and port 1 by the bus driver
as a part of interleaving. Since MDP port 1 was never used,
this did not have any impact.

Now, the display driver needs to use MDP port 1 such that MDP
ports should be able to use the bandwidth non-uniformally.
To enable these ports to use unequal amount of bandwidth,
it is required that bus driver does not divide bandwidth
between port 0 and port 1.
The display team is now responsible for requesting bandwidth
explicitly on both ports.

CRs-Fixed: 474499
Change-Id: I826a4c20a113a32f6d6bcf13f1c6474040f35f46
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
(cherry-pick from Change-Id: I826a4c20a113a32f6d6bcf13f1c6474040f35f46)
(cherry picked from commit a22989b29ed85bccc17f4797f34c477165c8d16a)
(cherry picked from commit 8d8d43ce0dd3a4ef53b1368fe1f8bc30ce1dcfa9)
msm_fb: display: add mdp master port1 bandwidth request

mdp bus traffic go through both mdp port0 and port1, but now mdp
bandwidth request is only for port0.

Change-Id: Ie902de6362cd9225abf6e9c42f260b5af7c3c6f8
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
(cherry picked from commit fb777733e086b86fc53a1cbcbbe7ac386832804f)
(cherry picked from commit a290cb8cd81792a304e584156778d9b445c2716f)
msm_fb: display: balance bus bandwidth on mdp axi port0 and port1

mdp read and write clients are connected on both mdp port0 and port1,
however, the bus bandwidth request is made on only port0. This change
divides mdp bw requests to port0 and port1 based on pipe connections
to mdp ports.
ab - no scaling factor - port0 and port1 split
ib - scaling factor - port 0 and port1 split

Change-Id: I9050d1178f634ca908675fa826d08bee09e2a2f3
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
(cherry picked from commit e3eaae696886994ce007b32bead48900d31d76f2)
(cherry picked from commit b6d83b8160751d400cda8dc5e59e99364e548e8d)
msm: mdp: Revert MDP Port split changes.

Change-Id: I1c687750bd22c8f64ab28a500562cbfbcb6a6048
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
(cherry picked from commit 1597e693567602038b7f30841519a9ea6c3d8659)
(cherry picked from commit d141e630fa3baf86199e1e745531b01a138bac35)
board-8930: Request the correct ab/ib values for camera

Various camera usecases show up bus overflows under
regression. Request right ab/ib values to ensure
camera has required bandwidth.

Increased ab, ib values for 8960 pro to run mmfab
at turbo

Change-Id: I1477fae2f0f6081e943d97ee0ffe9d17198a9b7e
Signed-off-by: Nishant Pandit <npandit@codeaurora.org>
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
(cherry picked from commit 4921f368d22f5202c09725ad6148a391a514374d)
(cherry picked from commit c3f92b9d3a654f2d6e82ad4a3e528988a6f638fe)
Merge "msm: msm_bus: Change MDP port interleaved setting"
Merge "msm_fb: display: add mdp master port1 bandwidth request"
Merge "msm_fb: display: balance bus bandwidth on mdp axi port0 and port1"