Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

How to config memory map in MCSDK?

$
0
0

Hi 

I work with MCSDK, OMAPL-138. I had a problem about memory map. Because when I run V4L2 video capture program, I got error and stop. The log is:

start_video: page allocation failure: order:10, mode:0xd0
Backtrace:
[<c000c580>] (dump_backtrace+0x0/0x114) from [<c038d080>] (dump_stack+0x18/0x1c)
r7:00000000 r6:0000000a r5:000000d0 r4:00000001
[<c038d068>] (dump_stack+0x0/0x1c) from [<c0061640>] (warn_alloc_failed+0xf8/0x11c)
[<c0061548>] (warn_alloc_failed+0x0/0x11c) from [<c0061bb0>] (__alloc_pages_nodemask+0x54c/0x590)
r3:00000000 r2:00000000
r7:00000040 r6:0000002a r5:000000d0 r4:00000000
[<c0061664>] (__alloc_pages_nodemask+0x0/0x590) from [<c000e030>] (__dma_alloc+0xec/0x2fc)
[<c000df44>] (__dma_alloc+0x0/0x2fc) from [<c000e2d0>] (dma_alloc_coherent+0x5c/0x68)
[<c000e274>] (dma_alloc_coherent+0x0/0x68) from [<c02a211c>] (__videobuf_mmap_mapper+0xac/0x188)
r7:c1967190 r6:c0c43480 r5:c1b368f0 r4:c0c434e4
[<c02a2070>] (__videobuf_mmap_mapper+0x0/0x188) from [<c029fdf4>] (videobuf_mmap_mapper+0xd4/0x114)
r8:b678d000 r7:c0c43980 r6:c1b368f0 r5:c1967190 r4:c1b368f0
[<c029fd20>] (videobuf_mmap_mapper+0x0/0x114) from [<c02aa3ac>] (vpif_mmap+0x40/0x50)
r5:c1b368f0 r4:c1967000
[<c02aa36c>] (vpif_mmap+0x0/0x50) from [<c02922a0>] (v4l2_mmap+0x70/0x90)
r5:c184d800 r4:c0c43980
[<c0292230>] (v4l2_mmap+0x0/0x90) from [<c007a124>] (mmap_region+0x25c/0x494)
r7:c0c43980 r6:000000ff r5:c1b368f0 r4:00000000
[<c0079ec8>] (mmap_region+0x0/0x494) from [<c007a620>] (do_mmap_pgoff+0x2c4/0x324)
[<c007a35c>] (do_mmap_pgoff+0x0/0x324) from [<c007a720>] (sys_mmap_pgoff+0xa0/0xd0)
[<c007a680>] (sys_mmap_pgoff+0x0/0xd0) from [<c0009440>] (ret_fast_syscall+0x0/0x2c)
Mem-info:
DMA per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
active_anon:496 inactive_anon:12 isolated_anon:0
active_file:3 inactive_file:66 isolated_file:0
unevictable:0 dirty:0 writeback:12 unstable:0
free:4073 slab_reclaimable:206 slab_unreclaimable:467
mapped:22 shmem:21 pagetables:70 bounce:0
DMA free:16296kB min:720kB low:900kB high:1080kB active_anon:1984kB inactive_anon:48kB active_file:12kB inactive_file:264kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:32512kB mlocked:0kB dirty:0kB writeback:48kB mapped:88kB shmem:84kB slab_reclaimable:820kB slab_unreclaimable:1868kB kernel_stack:312kB pagetables:280kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
DMA: 254*4kB 192*8kB 109*16kB 59*32kB 36*64kB 7*128kB 7*256kB 2*512kB 4*1024kB 0*2048kB 0*4096kB = 16296kB
90 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap = 0kB
Total swap = 0kB
8192 pages of RAM
4155 free pages
1365 reserved pages
580 slab pages
261 pages shared
0 pages swap cached
vpif_capture vpif_capture: dma_alloc_coherent size 4149248 failed
mmap error 12, Cannot allocate memory

Who can help me to config memory? Thanks.


Viewing all articles
Browse latest Browse all 17527

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>