From 91d468a87f160f325439ab737da2fc805be718d8 Mon Sep 17 00:00:00 2001 From: Suman Anna Date: Tue, 30 Aug 2011 21:42:39 -0700 Subject: DOMX: Align ion 1d buffer allocations to 4K Set the alignment parameter for ion allocations to 4K. The allocation size is already configured to be a multiple of 4K. This ensures that all the DOMX buffers can be mapped into the user-space, and ensure that allocations are not returned on a 4K boundary due to extraneous ion client allocations from the same ion heap. Change-Id: Ief40a6f30f48fccb315e073d28a2591d027e8243 Signed-off-by: Suman Anna Signed-off-by: Sarthak Aggarwal --- domx/omx_proxy_common/src/omx_proxy_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domx/omx_proxy_common/src/omx_proxy_common.c b/domx/omx_proxy_common/src/omx_proxy_common.c index 28f92ff..2002ceb 100644 --- a/domx/omx_proxy_common/src/omx_proxy_common.c +++ b/domx/omx_proxy_common/src/omx_proxy_common.c @@ -200,7 +200,7 @@ static OMX_ERRORTYPE PROXY_AllocateBufferIonCarveout(PROXY_COMPONENT_PRIVATE *pC int ret; struct ion_handle *temp; - ret = ion_alloc(pCompPrv->ion_fd, len, 0, 1 << ION_HEAP_TYPE_CARVEOUT, &temp); + ret = ion_alloc(pCompPrv->ion_fd, len, 0x1000, 1 << ION_HEAP_TYPE_CARVEOUT, &temp); DOMX_DEBUG("ION being USED for allocation!!!!! handle = %x, ret =%x",temp,ret); if (ret) return OMX_ErrorInsufficientResources; -- cgit v1.1