gpu: ion: exynos: add phys() operation for user_heap

This adds phys function for user_heap that returns the first address
of collected physical memory information if it is a single contiguous
memory.

Change-Id: I78fc4d41ae746357b0124febd6b20eea9b72767c
Signed-off-by: KyongHo Cho <pullip.cho@samsung.com>
gpu: ion: exynos: fix "error: double free of pages"

This patch fixes double free of 'pages' array when pfnmap_digger()
fails.

Change-Id: I25518b3bc758fee13143d67457b3d682b526d1e8
Reported-by: Jonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: KyongHo Cho <pullip.cho@samsung.com>
gpu: ion: exynos: Comment out MSYNC code

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
ion: exynos: Modify to reflect changes to ion api

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
ion: Add reserve function to ion

Rather than requiring each platform call memblock_remove or reserve
from the board file, add this to ion

Change-Id: Ie418a692c13e9e0cfe93ecc83d253d3ce860fc83
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
ion: Switch map/unmap dma api to sg_tables

Switch these api's from scatterlists to sg_tables

Change-Id: I8b99e39633df009d472ce24704fa26af7bb50fa2
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
ION + MALI fixes.
gpu: ion: exynos: fix map_dma() for EXYNOS_CONTIG heap

sg_init_one() expects a virtual address

Change-Id: I2f95c99c090666ec65aea0cdf2a389d8642c6533
Signed-off-by: Greg Hackmann <ghackmann@google.com>
gpu: ion: Use alloc_pages instead of vmalloc from the system heap

With this change the ion_system_heap will only use kernel address
space when the memory is mapped into the kernel (rare case).

Change-Id: I8702cf89ffec0bd5c337bd88d7444013d4d94bc8
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
gpu: ion: ion_system_heap: Change allocations to GFP_HIGHUSER

Previously the ion_system_heap was using GFP_KERNEL, forcing all allocations
to be in lowmem.  This quickly causes us to run out of lowmem.

Change-Id: I6d502a5f1c20c8a8e44fb5903fcb228f8435a564
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>