msm: vidc: Add NV21 input format type

This change adds the NV21 format in different input
formats for YUV data.

Change-Id: Ide693295ae0cbc6724edfb8cbc0fba30009394b4
CRs-fixed: 448511
Signed-off-by: Deepak Verma <dverma@codeaurora.org>
Merge "msm: vidc: Add NV21 input format type"
msm: kgsl: Prevent missing servicing of events waiting on timestamps

Prevent instances where we miss servicing an event which was waiting
on a timestamp. We do this by looping in the events list, until
we finish servicing all the members of the list, and if we come across
an event which has not been serviced yet, we write a dummy interrupt to
the ringbuffer so that we don't miss when that timestamp's work is done.

Change-Id: Ib7b3554efa0d9a8bdc20d1722d912977f72f3ed5
Signed-off-by: Harsh Vardhan Dwivedi <hdwivedi@codeaurora.org>
msm: display: Add data stuctures for MSM8974 target support

Add data structures for picture adjustment, IGC, QSEED2 sharpening/smooth
feature support on MSM8974.
These data structures are needed by the hardware/qcom/display project,
which is shared between multiple jb branches, including B-family jb
branches.

Change-Id: I0e228c90b70dbe4655173b753032eaae5748f7d9
Signed-off-by: Ping Li <quicpingli@codeaurora.org>
Merge "msm: display: Add data stuctures for MSM8974 target support"
Merge "msm: kgsl: Prevent missing servicing of events waiting on timestamps"
configs: Add CONFIG_SYNC=y in perf-deconfig file.

Required CONFIG_SYNC=y is missing in perf_defconfig,
Beacause of which UI is not coming up properly with perf bootimage.
Also removing few 8064 related settings as this branch is not for 8064.

Change-Id: I2eb13aaf684177ffea8866dc08314b1e844558df
Signed-off-by: Chandrakanth Reddy <cmallu@codeaurora.org>
msm_fb: Avoid backlight scaling during resume until backlight is set

Currently, if we try to perform backlight scaling before we set the
backlight on the target during resume, display doesn't come up
due to backlight level zero set on target. Hence, avoid backlight
scaling until backlight is set on the target during resume.

CRs-fixed: 437550
Change-Id: Icb3db2165a1dd2fb123f293634cb6ba5d56ba2a2
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Merge "configs: Add CONFIG_SYNC=y in perf-deconfig file."
Merge "msm_fb: Avoid backlight scaling during resume until backlight is set"
msm: kgsl: Resolve a potential race in the interrupt handler

In the GPU interrupt handler we attempt to clear the ts_cmp_enable
for the active context so that future interrupts are skipped until
someone needs one again. If for some reason the interrupt handler
is delayed then there is a possiblity that the "current" context in
the GPU isn't the one that fired the interrupt. In that case we
could be accidently clearing a ts_cmp_enable for a context that
needs it. Instead of clearing in the interrupt handler clear it
from the GPU so we can be sure we got the right context.

As a bonus pushing this logic to the GPU side lets us get rid of
some extra register reads/writes in the interrupt handlers.

Change-Id: I3cb3d1a3c626d0594e55bff4535990c1402764fa
Signed-off-by: Harsh Vardhan Dwivedi <hdwivedi@codeaurora.org>
msm: kgsl: Check the current interrupt status before power operations

Sometimes the core will go idle before the interrupt can be handled on
the GPU. If that happens then we could go to a lower power state before
cleaning up the pending interrupt and various entities that might be
waiting for it. Consider the current interrupt status when checking
for idle.

Change-Id: Idd43e56e0162a522e0929df83531aff94beadc19
Signed-off-by: Harsh Vardhan Dwivedi <hdwivedi@codeaurora.org>
Merge "msm: kgsl: Resolve a potential race in the interrupt handler"
Merge "msm: kgsl: Check the current interrupt status before power operations"
Merge remote-tracking branch 'origin/jb_mr1_chocolate' into 3.0.31