mach-msm: Use ION_CP_MM_HEAP_ID instead of ION_CAMERA_HEAP_ID

Since some msm7x30 devices can't use ION_CAMERA_HEAP_ID on rom side,
we have to change the ion heap used for video encoding/decoding from
ION_CAMERA_HEAP_ID to ION_CP_MM_HEAP_ID.

On rom side, the following commit must be applied on media-caf side:
http://review.cyanogenmod.org/#/c/62863/
Revert "msm: pm2: Setup memory for save/restore cpu registers early"

This reverts commit d00e920c5b1e7ad50bbc8eb3fe62b66c35903c2b, seems
to be not needed anymore.
msm7x30: Use CMA for MM ION heap

By switching from carveout heap type to DMA heap type for the ION heap
targeting MM features (camcorder, video recording/playback/encoder),
the memory area will be allocated via CMA framework. This heap area is
under system memory space and can be re-allocated when it's not being
used by any client.

The option CONFIG_CMA should be enabled to use this feature.

This commit is based on the following commits:
https://github.com/LegacyXperia/android_kernel_semc_msm7x30/commit/36effbe894be25d3a56dbdd76774757f1afaabbf
https://www.codeaurora.org/cgit/quic/la/kernel/msm/commit/?h=jb_rel_2.0.3&id=fc6e1100600fabdaa3a9a15941bd33d06e132557

Thanks to Blefish, Chintan Pandya and mikeNG for them.
msm7x30: Update defconfigs to enable CMA
Squashed update of kernel from 3.4.91 to 3.4.92
mm: try_to_unmap_cluster() should lock_page() before mlocking

CVE-2014-3122

A BUG_ON(!PageLocked) was triggered in mlock_vma_page() by Sasha Levin
fuzzing with trinity.  The call site try_to_unmap_cluster() does not lock
the pages other than its check_page parameter (which is already locked).

The BUG_ON in mlock_vma_page() is not documented and its purpose is
somewhat unclear, but apparently it serializes against page migration,
which could otherwise fail to transfer the PG_mlocked flag.  This would
not be fatal, as the page would be eventually encountered again, but
NR_MLOCK accounting would become distorted nevertheless.  This patch adds
a comment to the BUG_ON in mlock_vma_page() and munlock_vma_page() to that
effect.

The call site try_to_unmap_cluster() is fixed so that for page !=
check_page, trylock_page() is attempted (to avoid possible deadlocks as we
already have check_page locked) and mlock_vma_page() is performed only
upon success.  If the page lock cannot be obtained, the page is left
without PG_mlocked, which is again not a problem in the whole unevictable
memory design.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Bob Liu <bob.liu@oracle.com>
Reported-by: Sasha Levin <sasha.levin@oracle.com>
Cc: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Cc: Michel Lespinasse <walken@google.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Acked-by: Rik van Riel <riel@redhat.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Hugh Dickins <hughd@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Conflicts:
	mm/mlock.c

Change-Id: Iba4e59fae240ce8863cf6b7e12d01796619cf677
msm:vidc: Amend error checks on ION API failures

This change will validate the ION API failures
to fix target freeze issues.

Change-Id: I00fee94955ba9f0e72734daccd22aa7d0bf86dda
CRs-fixed: 412958
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
ion: cma: Add debug heap ops for CMA heap

For tracking CMA allocation by address and fragmentation
(if any), add debug heap ops which gives buffer allocation
info.

Change-Id: Ia8bed38034b85b2d4dcf84811a348bbbe50dc16b
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
ancora : update board
ancora: Increased audio volume on board side
ancora: Lowered WIFI voltage
ancora: Lowered display panel voltage
ancora: High Memory
ancora: Lowered Vibetonz voltage
ancora_tmo : update board
ancora_tmo: Lowered WIFI voltage
ancora_tmo: Lowered display panel voltage
ancora_tmo: Lowered Vibetonz voltage
ariesve: Revised high memory configuration descriptions
msm7x30: Update default and custom configs