msm_fb: display: Assign proper destination rectangles to mdp blit

Add check for (90 + Flip Horizontal) and Flip Vertical cases to assign
proper destination rectangle parameters to avoid corrupted frame
buffer content.

CRs-Fixed: 344807
Change-Id: I7e7b0b8d26f08f63a6f9c55eedd37f31cf0348d7
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
(cherry picked from commit 07c82d6ca63c6be28ab897fdb3ccfc1a448c342f)
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.

CRs-fixed: 325134
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
(cherry picked from commit ede0a63aaa49024ac4a0a304bd5e32f34f6b6180)

Conflicts:

	arch/arm/mach-msm/board-msm7627a-display.c

Change-Id: I70d910a2f1afc484ee097dbacb6275f61ac38665
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/board-8930-display.c
	arch/arm/mach-msm/board-8960-display.c
	arch/arm/mach-msm/board-msm7x27a.c
	arch/arm/mach-msm/board-msm8x60.c
	drivers/video/msm/mdp4_overlay_dsi_video.c
	drivers/video/msm/mdp_dma_dsi_video.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.

CRs-fixed: 325134
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
(cherry picked from commit 0473d05091f0df4d85e4f6a162f55a9af8d3307b)

Change-Id: I05f8a6a5eb421b81da7e033cd1b0442067b0aed6
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>

Conflicts:

	drivers/video/msm/mdp4_overlay_dsi_video.c
	drivers/video/msm/mdp_dma_dsi_video.c
msm_fb: Fix error in y-offset check logic in FB driver

After 4 KB alignment changes, the frame from 3rd buffer doesn't
get updated since during PUT_VSCREEN_INFO ioctl, the driver
returns -1 to userspace due to error in logic because the hole
size is not considered in calculating the logic for validity of
the y-offset. Change fixes this error.

CRs-fixed: 325134
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
(cherry picked from commit d37b52404236bf4cadf530a238cafc5d6499d32a)

Change-Id: Ifccfa25a37fe0f8d86bf5b822d9affe7fa41203a
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
msm_fb: Clean up the fix for error in y-offset check in FB driver

There is a failure observed in yres_virtual offset check and every
third frame gets skipped without an error message. Due to this high
fps is noticed in the test applications. Correct the yres_virtual
offset check.

CRs-fixed: 325134
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
(cherry picked from commit 2bd101d5bed1729b317114456360605e86289c15)

Change-Id: I35af570df2d6d2609562203f30f3caa1506b9b1d
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
msm: kgsl: Fix when GMEM is saved for A2xx

Saving GMEM is set when doing context switching and should not
be set when creating the gmem shadow.

Change-Id: I743a7287f105dd50955727c4f0dcaf8de363a1dc
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
msm: kgsl: Write the retired timestamp on resume

Write the retired timestamp into the expected location. This fixes
userspace crashes after resume when the retired timestamp is read
as 0 instead of the expected last timestamp.

CRs-Fixed: 350556
Change-Id: Iaa487ba8be427c29b9f7e9b30b251cf26fcff95a
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
msm: clock-7x30: Fix missing and incorrect CSI0 clock rate test vectors

Change-Id: I92208968f71b1b04ed1528d67fe3ddff30c7c9b3
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
msm: clock-7x30: Correct MND divider settings for spi_clk

Change-Id: Ic32707685307ffcabe30c2b3c0a8f0ca463be781
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
msm: clock-7x30: Add 24.576MHz rate from LPXO for SPI_CLK

Change-Id: I9af2b59fb5d971f17100b4c4cb5ee5439eed60ac
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
msm: clock-7x30: Remove unsupported ebi1_usb_clk

Change-Id: Ie75f70de33da45b77c755d5a88f4c2c2976b9ff4
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
msm: clock-7x30: Add missing sdac_m_clk to msm_clocks_7x30 table

Change-Id: I19ec3ef58a7a01edf2685ecdbbf7a45cb8902b65
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
pm_qos: Remove system bus constraints and users

Now that all users of the system bus pm_qos constraints
are gone we can safely remove all the related code.

Change-Id: I2a049546449c5b51c4eb20685528f739e1e9ad8e
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/clock.h
msm: clock: Remove unused clk_get_max_axi_khz()

This should have been removed when the pm_qos code was removed
from clock.c. Remove it since it has no callers.

Change-Id: I971e7fcabf429ee8ffa5447700de889c8d9bbd76
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/board-msm7x27.c
	arch/arm/mach-msm/clock-dummy.c
msm: pm: remove obsolete CLOCK_BASED_SLEEP_LIMIT code

Change-Id: I5867ed1dd86e9f389f63c53d37e50a0779e6e18d
Signed-off-by: Ai Li <aili@codeaurora.org>

Conflicts:

	arch/arm/mach-msm/pm2.c
msm: audio: qdsp5v2: Update ACDB driver to copy proper values of MBADRC

Update ACDB driver to copy 196 bytes of MBADRC external buffer
Parameters

Change-Id: I6453886eace2b5f79a216e4451f5439451240a5c
CRs-fixed: 279497
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
msm: audio: qdsp5v2: Update mvs driver to support back to back enable

The existing mvs driver wait for command acknowledgement
immediately and also it tries to open the control handling
thread on open. This results in failure when back to back
driver operation executed. Updated MVS driver to open control
handling thread on init and wait for command acknowledgement
on approriate place

Change-Id: Ic29925db5d921fac4702292e4a5b621006303eac
CRs-fixed: 270332
Signed-off-by: Neema Shetty <nshetty@codeaurora.org>
Signed-off-by: Rajesha Kini <rkini@codeaurora.org>
msm: audio: qdsp5v2: Add set mode function in mvs driver

Previously each mode has one function to set, all these functions
are combined to one single function which operates based on mode type.

Change-Id: Ic4eb78e60dee0960a672303f1c99b19f6bdcee85
Signed-off-by: Deepa Madiregama <dmadireg@codeaurora.org>
msm: audio: qdsp5v2: Add G711 support in mvs driver

Change-Id: I8152adce2241209c52de9e1775e30eb305652ad4
Signed-off-by: Deepa Madiregama <dmadireg@codeaurora.org>
msm: audio: qdsp5v2: Add G729 support in mvs driver

Change-Id: I2cdde3d3c45ba49a33a4c49e93f957c50b7da7db
Signed-off-by: Deepa Madiregama <dmadireg@codeaurora.org>