Revert "Revert "msm: kgsl: Add a command dispatcher to manage the ringbuffer""

This reverts commit d95171091bd0e63bc845406a8746bc751f569a64.

Revert "Revert "msm: kgsl: Add a new command submission API""

This reverts commit 684335cb12e18e4d932504e30034465f96453dde.

Revert "Revert "msm: kgsl: Don't process events if the timestamp hasn't changed""

This reverts commit f8ff679de19466e84cfa3b41126e8e027784bae9.

Revert "Revert "msm: kgsl: add kgsl_sync_fence_waiter for server side sync""

This reverts commit b2f6dbe0d44cd88d033537a012aa367102ca8f65.

Revert "Revert "msm: kgsl: Add support for KGSL_CMD_SYNCPOINT_TYPE_FENCE""

This reverts commit 6c370a510dfa7ace5aec7c73eb96fd88c2078e5e.

Change-Id: I24d74e97f982121ca02e47c3fc96143d4e7365e6
video: msm: Use the new fence release logic for video panel too

Change-Id: I51807e458f9db94c3ac05f8f8b108494a7fdd720
flo: fix usb OTG

Change-Id: Iee8a99e9df20805904f950968b01ae70cf0d4322
Signed-off-by: Evan Anderson <evan1124@gmail.com>
msm: msm_fb: wait for VSYNC instead of DMA_P for commit completion.

In the current implementation, we are waiting for DMA_P interrupt
in commit call to signal completion. This can cause 2 commits happening
in the same vsync period due to which IOMMU page faults can happen when
vsync comes while second commit is programming resgisters. To avoid this,
wait for DMA_P is replaced by wait for VSYNC.

Change-Id: I68d4d4b4e7a574f86faecd5b4812e1f5852f4209
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
msm: msm_fb: Replace wait for DMA_P with VSYNC in Pan_display Path.

This is a follow up change on gerrit 442946. Wait for DMA_P has to be
replaced with VSYNC even in Pan Display Path.

Change-Id: I8d600022cfa63f54d5b72ea5f64fc55315079b3a
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
msm_fb: display: Add support to YCBYCR MDP format

Add support of MDP_YCBYCR_H2V1 interleaved YUV format to MDP
for a-family targets.

Change-Id: I5afb84a95693d1ced114152364782a10c4d56bc2
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
msm: rotator: Add support to YCBYCR rotator format

Add support for MDP_YCBYCR_H2V1 interleaved YUV format in rotator
block.

Change-Id: I4bb192aaab1e72f6e5687ae222a5f9ea2c254bd4
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
msm: kgsl: Always Signal event time timeline for every event type

Fence sync seems to react badly when it gets a unexpected timestamp
on a timeline.  When a event expires always send the expected timestamp
even if the event expired because the context was destroyed.

Change-Id: Id1bc18220223c665012df1db21eea78af78d9288
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
Revert "Revert "Revert "msm: kgsl: Add a command dispatcher to manage the ringbuffer"""

Let's try this again, with a larger audience and without breaking
the flo. The previous results were inconclusive and we rushed putting
the dispatcher back in, we need a larger audience to test it.

This reverts commit 2ca12ad5a284e7fe7b9ae904a2cfb8cf8ef10816.
msm: kgsl: Fix error returns in adreno_ringbuffer_issueibcmds

Don't try to free the link structure before it is allocated.
Return the error directly if it happens before the kzalloc()

Change-Id: I6e5bfe47a43c458f20d5799aee32c55a286ee8e3
Merge remote-tracking branch 'cm/cm-10.2' into HEAD