msm: vidc: Send resolution along with output buffer

Send the resolution along with output buffer to the client
to avoid a race condition where resolution might be changed
multiple times in driver before client requests for updated
resolution.

Change-Id: I8ebb99e3baa04da09f153195a674babcebcfea78
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
Linux 3.4.1

Change-Id: I73d45b470031bbd07b3f079ae2e77b6ea3f627e4
Linux 3.4.0 - 3.4.99

Change-Id: I33b50eff049208ce42de98c1c57fab5ec7fd9534
Linux 3.4.99 > 3.4.100

Change-Id: I1ad56ec31b4e97d4c51eb78da630ad96056a5e9b
Linux 3.4.101

Change-Id: I11ad5f2d276fe33aa67c576e1564687d5b877af3
Linux 3.4.102

Change-Id: Ia59bba742ec17b88c9e54efd3409601a73d74a85
Linux 3.4.103

Change-Id: I69e77f15b4654dfdb0a4a398e7bdef1f820ed1dc
Linux 3.4.104

Change-Id: I1642500b6e8ce565eaca106cf0fc167dd5be0981
Version 1.1

Signed-off-by: Fusion-Rom <dragon7780@hotmail.nl>
msm: kgsl: Fix the NULL context submission size

When submitting commands with a NULL context the size may not be
calculated properly. Fix this calculation.

Change-Id: Idcc37772349673da8a9b9d5127f88946ced8fff6
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
Merge "msm: kgsl: Fix the api type in adreno drawctxt flags"

Change-Id: I4593b9d4138a1d1ad1b38390bc70a6b477113be4
Merge "msm: kgsl: protect syncpoint events with a reference count"
Merge "msm: kgsl: fix race condition setting the event->handle"
Merge "msm: kgsl: Don't block on detach if the context is invalid"
Conflicts:
	drivers/gpu/msm/adreno_drawctxt.c

Change-Id: Ib08724372df9cbd8cbed8b1e8b045e5db9690fca
Merge "msm: kgsl: Add a power constraints interface"
Conflicts:
	drivers/gpu/msm/adreno_ringbuffer.c
	drivers/gpu/msm/kgsl_pwrctrl.h
	drivers/gpu/msm/kgsl_pwrscale.c

Change-Id: I0766b5086b8e6de5f3e76865a18898d53acb617f
msm: kgsl: Protect SMMU registers from being written by the GPU

Put the SMMU register range in protected mode to shield them from
IB1/IB2 writes from userspace.

CRs-Fixed: 599971
Change-Id: Ic0dedbad8c03fc1c54ff73221231e2440d3c34dd
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
msm: kgsl: Refcount mmu clock calls and allow multiple disable events

Allow each mmu clock enable call to enable the clock and let the
clock driver refcounting mechanism deal with switching the clock
off at the right time. This also means that each enable call should
have a disable call or a disable event registered, so allow for
multiple disable events to be registered. This simplifies the mmu
clock handling mechanism which is better for multiple ringbuffer
implementation. With multiple ringbuffers each global timestamp is
tied to a specific ringbuffer and with a single clock disable event
it is hard to figure out when the clock should be turned off.

CRs-fixed: 597193 592485
Change-Id: I924c545140bd19d95890a5fdfd0382c511abe973
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>

Conflicts:
	drivers/gpu/msm/kgsl_iommu.c
msm: kgsl: Delay the first devfreq status read

No reason to read status when there hasn't been any activity
yet.  Wait at least one sample period after the GPU has been
turned on before pinging devfreq to read status.

Change-Id: I65633a76f0bbf0bded51f1d6ffbb7808d57f7884
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
msm: kgsl: Treat 0x0 as valid GPU pagetable physical address

Iommu driver could be allocating a valid GPU pagetable at
physical address 0x0, remove assumption from GPU kernel driver
that 0x0 is invalid pagetable address.

Change-Id: I213c0fbc1d90a13bef83c7d7589ad9e5729771fd
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>
msm: kgsl: Fix memleak in IOMMU clock disable

IOMMU clock disable on timestamp allocates memory and passes
the pointer to event created, this memory should be freed
when the event fires.

Change-Id: Ia714550ce8a05958fb6668293cd0400a0f69d4af
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>