Hi all,
I am facing V4L drivers related issues. When I try to run decode demo, then the page allocation issue and Error: Failed to create display device issue is coming as following:-
[root@OMAP3EVM decode]# ./decode -v /mnt/data/videos/davincieffect_ntsc_1.264
Decode demo started.
decode: page allocation failure. order:10, mode:0xd1
[<c002f374>] (dump_stack+0x0/0x14) from [<c008c730>] (__alloc_pages+0x288/0x29c)
[<c008c4a8>] (__alloc_pages+0x0/0x29c) from [<c008c76c>] (__get_free_pages+0x28/0x5c)
[<c008c744>] (__get_free_pages+0x0/0x5c) from [<c01c2888>] (omap35xvout_alloc_buffer+0x40/0xa0)
[<c01c2848>] (omap35xvout_alloc_buffer+0x0/0xa0) from [<c01c2a34>] (omap35x_buffer_setup+0xbc/0x280)
r5:c3786000 r4:c3786000
[<c01c2978>] (omap35x_buffer_setup+0x0/0x280) from [<c01bfccc>] (videobuf_reqbufs+0x124/0x1dc)
[<c01bfba8>] (videobuf_reqbufs+0x0/0x1dc) from [<c01c403c>] (omap24xxvout_do_ioctl+0x894/0x158c)
r7:c464be38 r6:c3786304 r5:c3786000 r4:00000000
[<c01c37a8>] (omap24xxvout_do_ioctl+0x0/0x158c) from [<c01afc54>] (video_usercopy+0x1b8/0x2b8)
[<c01afa9c>] (video_usercopy+0x0/0x2b8) from [<c01c4e94>] (omap24xxvout_ioctl+0xdc/0xec)
[<c01c4db8>] (omap24xxvout_ioctl+0x0/0xec) from [<c00b2550>] (do_ioctl+0x68/0x78)
[<c00b24e8>] (do_ioctl+0x0/0x78) from [<c00b27c0>] (vfs_ioctl+0x260/0x278)
r5:413e0c0c r4:c35d12c0
[<c00b2560>] (vfs_ioctl+0x0/0x278) from [<c00b2818>] (sys_ioctl+0x40/0x64)
r7:c35d12c0 r6:c0145608 r5:413e0c0c r4:00000008
[<c00b27d8>] (sys_ioctl+0x0/0x64) from [<c002ae40>] (ret_fast_syscall+0x0/0x2c)
r7:00000036 r6:413e1680 r5:00000002 r4:00000002
Mem-info:
DMA per-cpu:
CPU 0: Hot: hi: 18, btch: 3 usd: 17 Cold: hi: 6, btch: 1 usd: 5
Active:798 inactive:2266 dirty:2 writeback:0 unstable:0
free:9608 slab:424 mapped:302 pagetables:25 bounce:0
DMA free:38432kB min:1196kB low:1492kB high:1792kB active:3192kB inactive:9064kB present:89408kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0
DMA: 98*4kB 65*8kB 39*16kB 23*32kB 13*64kB 8*128kB 4*256kB 5*512kB 14*1024kB 8*2048kB 0*4096kB 0*8192kB = 38432kB
Swap cache: add 0, delete 0, find 0/0, race 0+0
Free swap = 0kB
Total swap = 0kB
Free swap: 0kB
22528 pages of RAM
10445 free pages
8062 reserved pages
424 slab pages
718 pages shared
0 pages swap cached
Error: Failed to create display device
However interface is working and displaying on LCD.
We tried to compile kernel modules as static as well as module also, but in both the cases it is giving the same issue and I guess the Error: Failed to create display device is also related to the same v4l drivers. The following .ko files are getting generated when we compile kernel with V4L as modules.
omap24xxlib.ko omap24xxvout.ko
af_dw9710.ko v4l1-compat.ko videobuf-core.ko
compat_ioctl32.ko v4l2-common.ko videobuf-dma-sg.ko
v4l2-int-device.ko videodev.ko
Please help me out how to run .264/.yuv etc video files on LCD. Is this the problem of drivers or do I need to fix some patches in kernel. However I am using 2.6.22.18-omap3 kernel. Why the page allocation is getting failured and how to resolve these issues?
Regards,
Vineet