msm: kgsl: Do not detect faults when GPU core is idle

Do not detect GPU faults when GPU hardware status is idle,
this leads to incorrect fault detection.

Change-Id: I7a9f8c49eb819241698f99fd50aaed400aadd4f4
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>
msm: kgsl: The memory entry pending flag should be guarded

Guard the memory entry free pending flag with the process
private lock. This usage of this flag is guarded everywhere
else in the code with the same lock.

Change-Id: Iac27f08876bfe8ff6205edc8233b9c27c6e9a599
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
msm: kgsl: Remove now uneeded GPU event code

_mark_next_event() stopped being useful when the dispatcher was added.
Remove the last vestiges of the code.

Change-Id: Ic0dedbad7b27122513d93993cad2984989295224
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
msm: kgsl: Modify readtimestamp to return read status

Modify readtimestamp() to return the read status instead of
timestamp value. An additional parameter, a pointer to
timestamp is passed in and the timestamp is instead
returned at that pointer address. This will catch instances
where an invalid type timestamp read request is
issued or otherwise to catch any error that might
occur.

Change-Id: Ib709466877d3ad6adf3bd826979ddb4ef8696bd4
Signed-off-by: Harsh Vardhan Dwivedi <hdwivedi@codeaurora.org>
msm: kgsl: Add a timer to detect possible syncpoint deadlocks

Use timers to detect when a syncpoint stays active for too long. This
won't avoid deadlocks but it sure will make it easier to debug them.

Change-Id: Ic0dedbadde07abcc1d39563c3b141591cbf2f634
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
msm: kgsl: Clean-up unneeded power code

No platforms with direct ebi1 connections exist, nor
is idling before changing the frequency needed.

Change-Id: I80911c81ef7303e229494ce6ba3df57ee25b24a5
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>