-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 于 2014年01月16日 20:37, Andrzej Hajda 写道: > On 01/15/2014 04:50 PM, randy wrote: >> Sorry, again, I forget to enable CMA, as exynos4_defconf and MFC doesn't depend on it. But 16MB can't work with the same log as below. >> root@kagami:~/v4l2-mfc-encoder# ./mfc-encode -m /dev/video1 -c >> h264,header_mode=1 -d 1 mfc codec encoding example application >> Andrzej Hajda <a.hajda@xxxxxxxxxxx> Copyright 2012 Samsung >> Electronics Co., Ltd. >> >> 106.984340799:args.c:parse_args:190: codec: H264 >> 106.984870424:args.c:parse_args:187: opt header_mode=1 >> 106.999434841:mfc.c:mfc_create:87: MFC device /dev/video1 opened >> with fd=3 107.15356632:v4l_dev.c:v4l_req_bufs:116: Succesfully >> requested 16 buffers for device 3:0 >> 107.15534549:func_dev.c:func_req_bufs:42: Succesfully requested >> 16 buffers for device -1:1 >> 107.15708424:func_dev.c:func_enq_buf:113: Enqueued buffer 0/16 to >> -1:1 107.15862049:func_dev.c:func_enq_buf:113: Enqueued buffer >> 1/16 to -1:1 107.16004132:func_dev.c:func_enq_buf:113: Enqueued >> buffer 2/16 to -1:1 107.16146841:func_dev.c:func_enq_buf:113: >> Enqueued buffer 3/16 to -1:1 >> 107.16284799:func_dev.c:func_enq_buf:113: Enqueued buffer 4/16 to >> -1:1 107.16429049:func_dev.c:func_enq_buf:113: Enqueued buffer >> 5/16 to -1:1 107.16569382:func_dev.c:func_enq_buf:113: Enqueued >> buffer 6/16 to -1:1 107.16715257:func_dev.c:func_enq_buf:113: >> Enqueued buffer 7/16 to -1:1 >> 107.16859924:func_dev.c:func_enq_buf:113: Enqueued buffer 8/16 to >> -1:1 107.17006674:func_dev.c:func_enq_buf:113: Enqueued buffer >> 9/16 to -1:1 107.17158466:func_dev.c:func_enq_buf:113: Enqueued >> buffer 10/16 to -1:1 107.17307132:func_dev.c:func_enq_buf:113: >> Enqueued buffer 11/16 to -1:1 >> 107.17455632:func_dev.c:func_enq_buf:113: Enqueued buffer 12/16 >> to -1:1 107.17599216:func_dev.c:func_enq_buf:113: Enqueued buffer >> 13/16 to -1:1 107.17748299:func_dev.c:func_enq_buf:113: Enqueued >> buffer 14/16 to -1:1 107.17897341:func_dev.c:func_enq_buf:113: >> Enqueued buffer 15/16 to -1:1 v4l_dev.c:v4l_req_bufs:111: error: >> Failed to request 4 buffers for device 3:1) > Try to increase CMA size in kernel config - > CONFIG_CMA_SIZE_MBYTES, by default it is set to 16MB, try for > example 64MB. > If I change it to 64MB, I will got v4l_dev.c:v4l_enq_buf:207: error: Error 22 enq buffer 0/16 to 3:0 and the below in dmesg as CONFIG_CMA_SIZE_MBYTES=64 root@kagami:~/v4l2-mfc-encoder# dmesg|grep mfc [ 1.295000] s5p-mfc 13400000.codec: decoder registered as /dev/video0 [ 1.295000] s5p-mfc 13400000.codec: encoder registered as /dev/video1 [ 146.975000] s5p_mfc_alloc_priv_buf:43: Allocating private buffer failed [ 146.975000] s5p_mfc_alloc_codec_buffers_v5:177: Failed to allocate Bank1 temporary buffer [ 196.255000] s5p_mfc_alloc_priv_buf:43: Allocating private buffer failed [ 196.255000] s5p_mfc_alloc_codec_buffers_v5:186: Failed to allocate Bank2 temporary buffer > Regards Andrzej > > > Thank you ayaka -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJS2DNJAAoJEPb4VsMIzTzi2NkH/iotPpDrRerh2E1fJTlzZP0a awcb+qtOfM7MkGAtMtdOTBtiFT8+R4xXMWFhKOcm22zBki+XBe5e2AIk/ekJLqlg Xm4lVjM1cGR1wVYVwxRi7prnPTWIZKCi+NgA+lmmu1ASt0/A3hvqqARF7Wa/pKiI +GDwfzBYhdLIKmfSCgz4bP8VWm//6ERevzBDLtXahjQqc/mCmudAYUfB31EhHrSY J3b9V+zZOjmlSxm3wZezlS0y0SbAR1FWJa4XKcCiKpH08bqkUhwQnVEay4wsz05P tnd9Fc/uRkAZVHWkKwHk2+HqHRpfBqWYO61/fwISf5tX9Mr6EOBivtauRcJPrHw= =Ag18 -----END PGP SIGNATURE----- -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html