msm: remove fmem support

This functionality is no longer supported.

Change-Id: I52df01acc7deebcfd84e78c333d860e3f3c2eb32
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/board-8064.c
	arch/arm/mach-msm/board-8930.c
	arch/arm/mach-msm/board-8960.c
	arch/arm/mach-msm/include/mach/msm_memtypes.h
ion: tracing: add ftrace events for ion allocations

Add ftrace events for ion allocations to make it easier to profile
their performance.

Change-Id: I9f32e076cd50d7d3a145353dfcef74f0f6cdf8a0
Signed-off-by: Liam Mark <lmark@codeaurora.org>

Conflicts:
	drivers/gpu/ion/ion.c
Fixup board.h for ION

Change-Id: Ic5f1bc7122b7c1101cde52b6bc8703a49fb4c345
gpu: ion: Add Tracepoints to iommu/system heap

Add trace events to kmem.h and set up trace points in ion/system
heap to keep track of information pertaining to page allocations.

Change-Id: I35c0bd1c0c2032dba6ea80b060b05bdb847d58ad
Signed-off-by: Adrian Alexei <aalexei@codeaurora.org>
gpu: ion: Copy client name into trace event

ftrace saves the information from events into a buffer to
be parsed out later. If the Ion client dies between the time
the event happens and the events are parsed, the reference to
the client name may have become invalid. Fix this by making a
local copy of the client name for event parsing.

Change-Id: I608103c763526aef0e8dd5a563be1949643e4199
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
msm: scm: change svc id SCM_SVC_CP to a more generic SCM_SVC_MP

Change-Id: Ie30c7eb5f9d67a6fde4db7cbc00d2945d944d204
msm: clock: Update memory retention clock flags

Introduce CLKFAG_{NO}RETAIN_PERIPH, which will eventually be used on
8974 to control collapse of the core memory periphery. To avoid
confusion with CLKFAG_{NO}RETAIN, rename those existing flag to
CLKFAG_{NO}RETAIN_MEM, to better indicate that they control retention
of the core's memory.

Change-Id: I078bcc7026095ab4b94dc57362220a5b05621bec
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
msm: footswitch-8x60: Allow specification of per-fs reset delays

Custom reset rates can be specified for clocks via fs_clk_data. If
these rates are very low, then the default reset delay of 1us may
not be sufficient. Address this by allowing custom reset delays to
be specified on a per-footswitch bases.

Change-Id: Id9b9377d79436a7fe5007a8f37216a456d66ce1a
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
msm: footswitch-8x60: Skip GFX memory power collapse on 8064

Update footswitch_disable to skip GFX memory power collapse on
8064 to avoid any voltage droop on vddmx during GFX3D footswitch
toggling.

As per hardware designer recommendations this would help to
improve system stability when responding to the inrush current
event.

Change-Id: Ifa2f62629f0639d29f882d009dc5f4c10da46ca8
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
Update to msm-3.4 IOMMU

Change-Id: I1d1bd3425907af11e2bc7c61196f7f158976b9f2
mm: highmem: Add definitions for kmap_atomic_flush_unused

kmap_flush_unused does not flush kmap_atomic mappings which
are handled separately. Architectures may have use cases to require
these to be flushed. Add an option to let architectures define
kmap_atomic flushing to get rid of extra mappings.

Change-Id: I5a338ed9e215f0f0ad3ab58a3066d2f4c8ce3ba7
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Remove reference to 8625q in Adreno driver since our kernel does not support it and it would be a waste of time to do that

Change-Id: I0ffbbc98330c6b3cd058b70f51828af24912baf1
msm: Remove subsystem map api files

Subsystem map api has been deprecated and is no longer
being used.

Change-Id: Id7c8f1410719fd00ea8b8ca1819d7a6f3fd40d8a
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>

Conflicts:
	arch/arm/mach-msm/Makefile
	arch/arm/mach-msm/subsystem_map.c
base: genlock: Add new functions to get the fd

Add new API to get the file descriptor reference to a lock suitable for
sharing with other processes.

Change-Id: I1b61f44b6d5745a628eb98dfdc876767c46552ea
Signed-off-by: Alex Wong <waiw@codeaurora.org>
base: genlock: Correct the lock file reference count.

genlock_get_fd_handle API creates a new FD and attaches
it to lock file and shares this FD to second process.
Now, two file descriptor are pointing to same file.
If one FD is closed, lock file will be closed. This
changes add a extra reference to lock file as new FD
has been attached. Taking this reference will make sure
that file doesn't get close. This refrence will go when
client will call close on this FD.

Change-Id: I3524bed5ededd89d43ca6d8b85df11c85c03c1e3
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
msm: Remove unused subsystem map api includes

Remove all unused subsystem map api includes.
Subsystem map api is being deprecated.

Change-Id: Ia2de8aeb2b0b08aa55ad2f25818e0c1ac138af14
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>

Conflicts:
	include/sound/q6lsm.h
	sound/soc/msm/qdsp6v2/msm-pcm-afe-v2.c
	sound/soc/msm/qdsp6v2/q6lsm.c
iommu: msm: Change driver name

Change the driver name used in the code and device tree for
IOMMU. The driver and compatible string formerly known as iommu-v1
is now called iommu-v0 and the one formerly known as iommu-v2
is now called iommu-v1 to match file names.

Change-Id: Ida38a0a788e28e820907b93e05187cd61235400c
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>

Conflicts:
	Documentation/devicetree/bindings/iommu/msm_iommu_v0.txt
	Documentation/devicetree/bindings/iommu/msm_iommu_v1.txt
	arch/arm/boot/dts/msm-iommu-v0.dtsi
	arch/arm/boot/dts/msm-iommu-v1.dtsi
	arch/arm/mach-msm/clock-8960.c
	arch/arm/mach-msm/clock-8x60.c
	arch/arm/mach-msm/include/mach/iommu.h
	drivers/gpu/msm/kgsl_iommu.c
	drivers/gpu/msm/kgsl_mmu.h
	drivers/iommu/msm_iommu_dev-v1.c
Add MSM-3.4 IOMMU Domains

Change-Id: I0520542f05229ff8ebb6d6a62c3443a1eaf85425
iommu: msm: Add support for 64 bit GFAR register

msm_iommu_v1 supports both short and long descriptor
page tables. Hence GFAR should be 64-bit long with
LPAE mode. So, extend GFAR support for the same.

Change-Id: Iedfc11c948d3983058a33344ed8358676760b47c
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
Add msm-3.4 iommu_hw-v1.h

Change-Id: Ia3908f38045d5fafd7c81f4dbde27728669b5ed1