msm_fb: remove dump_stack and warning  call from overlay_semaphore_lock

Change-Id: I4ebc5b08a82152a09956bc3dd4e053f4b8a8b885
vivow: update config

Change-Id: I973e0b7c288b831fddc39b1ecd36e0e3a779aa6c
msm: kgsl: Set requested power state to NONE after resume

When GPU resumes from suspend requested state is not cleared to NONE.
Due to this idle reporting is not done and GPU stays at MAX freq. As
a fix if the current power state is already ACTIVE and request is
made for active power state then clear the requested state immediately.

CRs-fixed: 424682
Change-Id: I7f0d7fa819308f166cbbbf30b2c20aee73644cfb
Signed-off-by: Vinay Roy <vroy@codeaurora.org>
msm: kgsl: Detect and avoid malformed ioctl codes

Because we were using _IO_NR, one could construct a malformed ioctl
code that would avoid allocating memory yet go to a function that
expected that memory. Still use _IO_NR to index the array of ioctls,
but check that the full values match before jumping to the helper
function.

CRs-fixed: 385592
Change-Id: Ic0dedbaded469035bd0a2bb0f20fecb2a3045ca5
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
(cherry picked from commit 1e76f61bb001b93795a227f8f808104b6c10b048)
msm: kgsl: Check for valid pointer before dereferencing

Check to make sure that there is a valid context pointer before
dereferencing it when adding commands to the ringbuffer.

Change-Id: Icf9824de8f62a28cdeeef4378246d9fb334d39fa
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
msm: kgsl: Always submit an interrupt request to the GPU

A context does not have to be present to send an internal dummy
command to the GPU.  Remove BUG() in this case and instead send
a NULL context which will still cause the interrupt to get submitted
to the GPU.

CRs-fixed: 392688
Change-Id: I66b6eebe899ab09e6615d08faddea7ea73de5c6d
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
msm: kgsl: Make the GPU device aware of the next pending event

The adreno core needs to know what the next event pending for
any given context is so it can mark the interupt to be fired.
If this isn't done then some timestamps that don't have a
matching waittimestamp call won't fire an interrupt. This is
dangerous on the last interrupt/event before a context goes
away.

Change-Id: Ic0dedbad71f6de07b43b0656128c76509326d645
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
vivow: add mdp_color_enhancement (port from 2.6)

Change-Id: I1daa60b503ab67ef8f09bfae24eca0b5c573abd5
mach-msm: remove unused device headers

Change-Id: I4a197d7e9252f60caaef1ac8ffae03a3e0c73c83
media: video: msm: move gemini back to its respected location

Change-Id: I81602ecc1510db1e3ce221d782c3dd0ae0f22f2b
Merge "msm_fb: remove dump_stack and warning  call from overlay_semaphore_lock" into jellybean
Merge "vivow: update config" into jellybean
Merge "msm: kgsl: Set requested power state to NONE after resume" into jellybean
Merge "msm: kgsl: Detect and avoid malformed ioctl codes" into jellybean
Merge "msm: kgsl: Check for valid pointer before dereferencing" into jellybean
Merge "msm: kgsl: Always submit an interrupt request to the GPU" into jellybean
Merge "msm: kgsl: Make the GPU device aware of the next pending event" into jellybean
Merge "vivow: add mdp_color_enhancement (port from 2.6)" into jellybean
msm: qdsp5v2: more gentle way to handle audio record based on _1x driver
qdsp5v2: do not trigger BUG() if something went wrong