msm: vidc: Add support for H263 PlusPType flag

Some video players does not support pluptype
flag in H263 video format. This change adds
support in video driver to enable or disable
plusptype flag for H263 format.

CRs-fixed: 420970
Signed-off-by: Shobhit Pandey <cshopan@codeaurora.org>
(cherry picked from commit 8084f4f40b8b6d66d2b5c6a572b4f22c6817d75b)

Conflicts:

	drivers/video/msm/vidc/1080p/ddl/vcd_ddl_properties.c
	include/linux/msm_vidc_enc.h
	include/media/msm/vcd_property.h

Change-Id: Ic4c8c5c3ebbb5208a5adaa96ec92dd8d969a7e83
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
Merge "msm: vidc: Add support for H263 PlusPType flag"
kernel/sys.c: fix stack memory content leak via UNAME26

Calling uname() with the UNAME26 personality set allows a leak of kernel
stack contents.  This fixes it by defensively calculating the length of
copy_to_user() call, making the len argument unsigned, and initializing
the stack buffer to zero (now technically unneeded, but hey, overkill).

CVE-2012-0957

Reported-by: PaX Team <pageexec@freemail.hu>
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: PaX Team <pageexec@freemail.hu>
Cc: Brad Spengler <spender@grsecurity.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Change-Id: I363b83f37e681fcb0c03e1d122b3c6638eb5209d
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
Merge "kernel/sys.c: fix stack memory content leak via UNAME26"
Update copyright to The Linux Foundation

Change-Id: I4f0ad1a689965142222e23c3f87a65fa76f4c8a4
Signed-off-by: Duy Truong <dtruong@codeaurora.org>
msm: kgsl: Turn off the CP_DEBUG dynamic clock

The CP dynamic clock seems to be glitchy when the CP clocks are turned
back on after a power event. Turn off said dynamic clock control at
init time. The impact of leaving the dynamic clock control off is
negligible since the CP clock is only on when the CP is actually in
use.

CRs-fixed: 402119
CRs-fixed: 409253
CRs-fixed: 413224
Change-Id: Ic0dedbad783f8b911d9b57d1602d9b3976af1b3b
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
msm: kgsl: Add CP_WAIT_FOR_IDLE packet before updating timestamp

HW workaround to resolve MMU pagefault caused by memory
freeing early before GPU completes it.

This is race condition where timestamp is getting updated
and the event handler runs before the GPU actually got done
with the timestamp, hence freeing the buffer early while GPU
still not completed with it.

Signed-off-by: Anshuman Dani <adani@codeaurora.org>

Conflicts:

	drivers/gpu/msm/adreno_ringbuffer.c
Change-Id: I6d338d7dca680f57f2c39ed5a14381b261bf8bce

Signed-off-by: Vikram Orre <vorre@codeaurora.org>
msm: kgsl: Add cache flush for A20x

Adding extra cache flush command to make sure that CP block
gets event from RB all the time to avoid race conditions because of
clock switches. this is to improve stability on 8x25 target.

Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>

Conflicts:

	drivers/gpu/msm/adreno_ringbuffer.c
Change-Id: Ie411be46fa166864073d35c50085a8f2506d0eb8

Signed-off-by: Vikram Orre <vorre@codeaurora.org>
Merge "msm: kgsl: Turn off the CP_DEBUG dynamic clock"
Merge "msm: kgsl: Add CP_WAIT_FOR_IDLE packet before updating timestamp"
Merge "msm: kgsl: Add cache flush for A20x"