android: ion: add properties to carveout_heap
authorCho KyongHo <pullip.cho@samsung.com>
Wed, 7 Feb 2018 08:01:10 +0000 (17:01 +0900)
committerSangwook Ju <sw.ju@samsung.com>
Mon, 14 May 2018 10:45:23 +0000 (19:45 +0900)
commit829d4c6d40d36b36fd4c07aee6714b828635ce91
tree339585abd3743bec11a5da8c3529b707bf779a3c
parent705cfb09dc5876b073f71c21818f1b0b376e2daf
android: ion: add properties to carveout_heap

Added size, alloc_align, and untouchable properties to carveout heaps.
size property is used for debugging purpose. carvedout heaps are
suffering from the external fragmentations and out of memory when
users do not carefully handle the heaps. When allocation from a carved
out heap happens, the base and the size of the heap is very useful for
debugging.

Some heaps should have restriction of alignment of allocated buffers
to be larger than PAGE_SIZE. alloc_align property specifies this
restriction.

Some special heap has strange property, untouchable. If it is
specified, buffers from the heap should not be accessed from both of
userland and the kernel.

Change-Id: Ib4fd2a4af2e6307bf67aa28d06bbcbca393d4475
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/staging/android/ion/ion.h
drivers/staging/android/ion/ion_carveout_heap.c