msm: mdm_common: mdm2ap gpio status during boot

Before the mdm is sent the power on ioctl, we check
for the mdm2ap gpio status. Print the status so as
know whether it is already booted "high" or is it
"Low".

Change-Id: I12f5b503fd00311579638cfabd517241d99c24ed
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Merge "msm: mdm_common: mdm2ap gpio status during boot"
msm: mdm_common: Add check for the mdm_ready flag

There could be a possibility that mdm2ap_status change
interrupt triggered before mdm_ready flag is set to 1
due to a glitch on the GPIO line. This could be safely
ignored as the MDM is not completely powered on.

Change-Id: I63779858bf20747bb96b12d61073c04c42ee04ec
Signed-off-by: Ramesh Gupta Guntha <rggupt@codeaurora.org>
Merge "msm: mdm_common: Add check for the mdm_ready flag"
ARM: 7809/1: perf: fix event validation for software group leaders

It is possible to construct an event group with a software event as a
group leader and then subsequently add a hardware event to the group.
This results in the event group being validated by adding all members
of the group to a fake PMU and attempting to allocate each event on
their respective PMU.

Unfortunately, for software events wthout a corresponding arm_pmu, this
results in a kernel crash attempting to dereference the ->get_event_idx
function pointer.

This patch fixes the problem by checking explicitly for software events
and ignoring those in event validation (since they can always be
scheduled). We will probably want to revisit this for 3.12, since the
validation checks don't appear to work correctly when dealing with
multiple hardware PMUs anyway.

Change-Id: Ic1722ba7463c9836f1ff595d7e8da1d0fc0e32b0
Cc: <stable@vger.kernel.org>
Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Tested-by: Vince Weaver <vincent.weaver@maine.edu>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Git-commit: c95eb3184ea1a3a2551df57190c81da695e2144b
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[joonwoop@codeaurora.org: fixed merge conflict]
CRs-fixed: 529735
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
msm: kgsl: Avoid turning on GPU clock if already off

In adreno_idle(), check if the GPU clock is already
turned off. If so, the GPU is already idle,
so don't turn on the clocks again.

Change-Id: I27ae939253ee71830466e3117bed0230d7ff67d5
Signed-off-by: Ananta Kishore K <akollipa@codeaurora.org>
Merge "ARM: 7809/1: perf: fix event validation for software group leaders"
Merge "msm: kgsl: Avoid turning on GPU clock if already off"