msm: kgsl: replace vmalloc with kmalloc

There is no point using vmalloc for small temporary allocations.  kmalloc will
allocate more quickly and will not fragment the vmalloc space.

Change-Id: I61107fc5cbcf721eb103598900cc2106ed865a07
Signed-off-by: Iliyan Malchev <malchev@google.com>
msm: iommu_domains: replace vmalloc with kmalloc

There is no point using vmalloc for small temporary allocations.  kmalloc will
allocate more quickly and will not fragment the vmalloc space.

Change-Id: I47ef6f5a31a9bb2e558d62c7e3eb4331550f1b46
Signed-off-by: Iliyan Malchev <malchev@google.com>
hdmi: able to build kernel without hdmi feature

If not using HDMI, compiling errors occur. it's fixes to build
kernel without HDMI feature

Change-Id: Ida5babdc2f8ebaf73cd5c52b3f4686b27f6f1aa1
hw_breakpoint.c: fix unused variable warning

Change-Id: I998828bd37007cdf3dd7991f23d777c120883118
Signed-off-by: Iliyan Malchev <malchev@google.com>
msm: add PICE clock table when enabled PCIE

if not enabled PCIE, kernel makes a warning which is pcie_phy_ref_clk
stuck at 'on'

Change-Id: I791ffaba0a661f104a2047ea39ba70c6baa0732e
msm: ramdump: fix duplicated sysfs ramdump

subsystem creates sysfs for ramdump. In some cases, it tries to create
same name sysfs which is created previously in other subsystem. To fix
duplicated sysfs, if sysfs is already existed when creating ramdump node,
return previous device handle but not create new sysfs.

Change-Id: I1aa020aa50ec487a1d3041f3d6e24366988f0289
msm: do not crash when subsystem not initialized

Change-Id: I7839db0323015642d05c3a70ff6b1962f8f9209a
Signed-off-by: Iliyan Malchev <malchev@google.com>
Add heap_mask to ion_allocation_data

Change-Id: I928e912fadc9bdb8fe8c1215c08e62d13902d53c
gpu: ion: Add compatibility with future changes

Several changes are pending to be pulled in which are
not compatible with our changes:

* a new field to the allocation ioctl is added
* the ioctl numbers for cache flushing need to be changed.
* the size of the structure passed to ION_IOC_IMPORT
has changed

Add these changes now until full changes can be pulled
in the future.

Change-Id: I9540495e25c7b6c414a6e3719f66f2cd9f78c585
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
persistent_ram: check PERSISTENT_RAM_SIG before writing

if the PERSISTENT_RAM_SIG was corrupted, do not write something
to the persistent_ram buffer. this may cause the abnormal crash.

Change-Id: Ibd3082f7abeaa0e2e4b8f5022360977ec29add6f
msm: pm-8x60: fix timeout bug issue in suspend processing

if msm_rpm_request is not NULL, it is not expected to enter the
power collapse of CPU0. msm_rpm_local_request_is_outstanding is
check if msm_rpm_request is NULL or not. this check routine is
added to msm_pm_idle_prepare for fix timeout issue in suspend
processing.

Change-Id: I02cb344e451a0893f4c8dce88d0a564d55839f01
msm: mdp: Fix reserved field usage

An earlier commit(ec5b2f)increased the number of reserved fields
in the kernel standard fb.h header changing the struct size.
This caused issues with userland applications using the corresponding
bionic header. This patch revert the earlier increas in size
and makes corresponding adjustments to the reserved field usage.
A follow up patch will remove usage of reserved fields entirely.

Change-Id: I3ae4a49b607a7fc57297c4a1ab123b54648dc99d
mdp: Fix incorrect reserved[3] usage

Change-Id: I036f1f9d707fd17bf208c9ae074b7fb6b39164dd
persistent_ram: fix wrong error code

need to be "return -EINVAL" on error

Change-Id: Ie465ecc4ebf64e205994829af8b33481c6139b64