msm: kgsl: Add KGSL_IOCTL_GPUMEM_ALLOC

Add a general purpose GPU memory allocation ioctl.  This takes the
memory type decision out of the hands of the userspace and puts it
into the kernel.  Future code can mainipulate kgsl_gpumem_allocate
to point to the appropriate memory allocation function for the
bus type and MMU state.

Change-Id: Iab6eed5e823b92a26fc64cda85c74414f1ed0b14
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
6 files changed