backporting msm/kgsl updates from codeaurora msm-3.4 - part 1
__________

msm: kgsl: return correct error code for unknown ioctls

Unknown ioctl code errors are supposed to be ENOIOCTLCMD,
not EINVAL.

Change-Id: Id38529e4ec70d63091a9273a780585aea6ae9d9a
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
_____________

msm: kgsl: fix size checking in adreno_find_region

This function is supposed to return the memdesc that
contains the range gpuaddr to gpuaddr + size. One of the
lookups was using sizeof(unsigned int) instead of size,
which could cause false positive results from this function
and possibly kernel panics in the snapshot or postmortem
code, which rely on it to do bounds checking for them.

Change-Id: I65dc48108f2010887e620a252a6afbd88473ac6e
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
________________

msm: kgsl: Make sure kmemleak tool does not report incorrect mem leak.

Certain memory allocations are not properly tracked by kmemleak tool,
which makes it to incorrectly detect memory leak. Notify the tool by using
kmemleak_not_leak() to ignore the memory allocation so that incorrect leaks
report are avoided.

Change-Id: Id3beea7d99aedc10d9d8d74e5dad384e03abf4f2
CRs-Fixed: 334294
Signed-off-by: Anshuman Dani <adani@codeaurora.org>
__________________

msm: kgsl: Remove DRM specific gpu cache flush

DRM specific gpu cache flushing was causing kernel
crashes (NULL dereferences) and is no longer necessary.

Change-Id: I47d82baa9454a29e7f21b9ac5365921379bfb09d
Signed-off-by: Michael Street <mstreet@codeaurora.org>
_________________

msm: kgsl: Cleanup header file macros

Remove macro logic for macros that are always defined.

Change-Id: Iecbc8418102205559aa551af96b79579d1b3aa4d
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
__________________

msm: kgsl: Add GMEM size configuration in gpu list

To avoid msm or gpu specific code in the driver, added
GMEM size configuration parameter as a part of gpu list.

Change-Id: I3a0c4efdfbc607f3a0a87fc2350e7b40864f9f73
Signed-off-by: Sudhakara Rao Tentu <srtentu@codeaurora.org>
____________________

msm: kgsl: Remove unused debugfs files

istore, sx_debug, cp_debug and mh_debug have been deprecated. Remove
them.

Change-Id: I34364f8987a74e68244015992af39842342d0489
Signed-off-by: Harsh Vardhan Dwivedi <hdwivedi@codeaurora.org>