mdss: ppp: Correct bg start address cacluation

Calculation for bg address offset when there is a rotation or flip
has been corrected.

Change-Id: I74ad7f7ffc882d1f35b28445d9e1aeb634c67154
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
mdss: ppp: Remove unnecessary code from ppp

This code should have never been there in the first place.

Change-Id: Ifde6a3d0c2aa15399a36b49d72e37981385aba4b
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
mdss: ppp: Increase accuracy of scaling factor calculation in ppp

Due to the scaling factor not being accurate enough the pixel
repetition logic for yuv content did not match the scaling logic.
With a more accurate scaling factor we are avoiding problematic
cases with scaling yuv content.

Change-Id: I0b5cb67cff731d02a14c20f658d168f57b350d49
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
mdss: ppp: Fix ppp parse error out sequence

Put was called on fence twice, second time with a NULL pointer,
which was causing a crash.

Change-Id: I3f8f0f01a390ee6eeb66612e0b8448d9b9b79013
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
mdss: ppp: Add support for MDP_Y_CBCR_H2V2_VENUS format

Currently support to handle MDP_Y_CBCR_H2V2_VENUS format is
not present in driver. Adding the same.

Change-Id: I2e5f0f30662777ffb48f875f858d58b94577825e
Signed-off-by: Radhika Ranjan Soni <rrsoni@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
mdss: ppp: free ppp bw when not in use for some time

For every request ppp was toggling on and off bw and clock.
This behavior was not for ideal bw driver and would also increase
the total time to process ppp request. Now ppp request for bw and
keeps it until there has been no additional requests for over
50ms.

Change-Id: I09e27d2ecba5ed7f9af4fef2f3722bfa90967944
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
mdss: ppp: Correct ppp bw request

Integer overflow occurred in calculating ib, this value was then
given to bw request resulting in an invalid request.

Change-Id: I71c56ecb7b412a8343ac400295a97f00207316e2
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
mdss: ppp: Add support for MDP_BGRX_8888 in mdp3 ppp

Support for MDP_BGRX_8888 is required, so we are adding it in.

Change-Id: I43e9b6ccc63f7fd7b83fa4b3b24828f58b56b1fc
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
mdss: ppp: Fix arithmetic error

Width was not calculated properly. This would cause ppp to go
into bad state and hang.

Change-Id: Ie70db84802d668ea169cbb42025cb3e5aab230da
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>