aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBuddy Liong2015-04-09 12:40:16 -0500
committerBuddy Liong2015-04-21 10:01:18 -0500
commit7345eec3dfe9cd5d255703aef881c2d08a99a8a3 (patch)
treecd59cc5446b6d9f1fa6485899e05221603f1434d /libdce.c
parentf8df435c9936f632c4aea63316eafa569bcbbc52 (diff)
downloadrepo-libdce-7345eec3dfe9cd5d255703aef881c2d08a99a8a3.tar.gz
repo-libdce-7345eec3dfe9cd5d255703aef881c2d08a99a8a3.tar.xz
repo-libdce-7345eec3dfe9cd5d255703aef881c2d08a99a8a3.zip
[QNX] Remove dependency on QNX TILER for memory allocation
Previously dce_alloc() call will always reserve the memory from QNX TILER 1D. The same case happens when it calls memplugin_alloc since the definition of DEFAULT_REGION is set to MEM_TILER_1D for QNX. Since there is a known issue of DMA lockup due to MPU side performing memory copy into the TILER memory, this patch limits the use of QNX TILER. With this patch, dce_test and dce_enc_test can be executed without QNX TILER allocation. DCE test apps are also updated to allocate the memory through shmemallocator instead of QNX TILER. The capability to: allocate TILER output buffer for decoder and allocate TILER input buffer and output buffer for encoder are still existed as part of the dce_test or dce_enc_test input parameter 'tiler' vs 'nontiler' Change-Id: I33e2a9dd83c791cc2621e548628715abaeae871d Signed-off-by: Buddy Liong <buddy.budiono@ti.com>
Diffstat (limited to 'libdce.c')
-rw-r--r--libdce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdce.c b/libdce.c
index 881516e..7704613 100644
--- a/libdce.c
+++ b/libdce.c
@@ -153,7 +153,7 @@ void *dce_alloc(int sz)
153 Beware: The last argument is a bit field. As of now only core ID 153 Beware: The last argument is a bit field. As of now only core ID
154 is considered to be there in the last 4 bits of the word 154 is considered to be there in the last 4 bits of the word
155 */ 155 */
156 return (memplugin_alloc(sz, 1, MEM_TILER_1D, 0, IPU)); 156 return (memplugin_alloc(sz, 1, DEFAULT_REGION, 0, IPU));
157} 157}
158 158
159void dce_free(void *ptr) 159void dce_free(void *ptr)