diff options
author | Suman Anna <s-anna@ti.com> | 2011-08-30 21:42:39 -0700 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-08-31 20:02:33 -0700 |
commit | 91d468a87f160f325439ab737da2fc805be718d8 (patch) | |
tree | 89f347485c451179210f24fb18f1c5cb445b222a | |
parent | dd2bfd7014620322dfaba5e0cec481f6e085cb25 (diff) | |
download | hardware_ti_omap4-91d468a87f160f325439ab737da2fc805be718d8.zip hardware_ti_omap4-91d468a87f160f325439ab737da2fc805be718d8.tar.gz hardware_ti_omap4-91d468a87f160f325439ab737da2fc805be718d8.tar.bz2 |
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 <s-anna@ti.com>
Signed-off-by: Sarthak Aggarwal <sarthak@ti.com>
-rw-r--r-- | domx/omx_proxy_common/src/omx_proxy_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |