Hello all
I have a very similar problem on this.
cron rule for dropping caches, plus DMA size is increased to 500MB, but without patch (patch-v4l.zzip.zip)
Anway I'm using 3.0.36-4.1.0 kernel (sabrelite), and fsl-codec and others are 3.0.8 by yocto
with these environment, random running of more than 800 files in 12 hours showed the memory error.
I read all about this issue and found that it 'caused from defragmentation of DMA memory and it's handling.
no memory leak ? just defragmentation ?
even though i flush the caches, i see memory leak too.
i tested with very simple gst base player.
am i supposed to patch the kernel with patch-v4l.zzip.zip ?
anyone got new patch for 4.1.0 ?
this is my log
[<800c3f1c>] (__alloc_pages_nodemask+0x4e8/0x728) from [<8004d8a8>] (__dma_alloc+0x9c/0x2f4)
[<8004d8a8>] (__dma_alloc+0x9c/0x2f4) from [<8004df18>] (dma_alloc_coherent+0x5c/0x64)
[<8004df18>] (dma_alloc_coherent+0x5c/0x64) from [<803b1ffc>] (vpu_alloc_dma_buffer+0x2c/0x54)
[<803b1ffc>] (vpu_alloc_dma_buffer+0x2c/0x54) from [<803b23b0>] (vpu_ioctl+0x38c/0x854)
[<803b23b0>] (vpu_ioctl+0x38c/0x854) from [<80102380>] (do_vfs_ioctl+0x80/0x538)
[<80102380>] (do_vfs_ioctl+0x80/0x538) from [<8010286c>] (sys_ioctl+0x34/0x60)
[<8010286c>] (sys_ioctl+0x34/0x60) from [<80044140>] (ret_fast_syscall+0x0/0x30)
DMA per-cpu:
CPU 0: hi: 186, btch: 31 usd: 167
CPU 1: hi: 186, btch: 31 usd: 30
CPU 2: hi: 186, btch: 31 usd: 0
CPU 3: hi: 186, btch: 31 usd: 0
CPU 0: hi: 186, btch: 31 usd: 167
CPU 1: hi: 186, btch: 31 usd: 19
CPU 2: hi: 186, btch: 31 usd: 0
CPU 3: hi: 186, btch: 31 usd: 13
active_anon:10566 inactive_anon:148 isolated_anon:0
active_file:78575 inactive_file:15416 isolated_file:32
unevictable:0 dirty:0 writeback:0 unstable:0
free:96020 slab_reclaimable:508 slab_unreclaimable:1705
mapped:1245 shmem:151 pagetables:222 bounce:0
[INFO] bitstreamModeDMA free:352428kB min:2128kB low:2660kB high:3192kB active_anon:26504kB inactive_anon:12kB active_file:46392kB inactive_file:64kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:508000kB mlocked:0kB dirty:0kB writeback:0kB mapped:4kB shmem:24kB slab_reclaimable:184kB slab_unreclaimable:44kB kernel_stack:136kB pagetables:196kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:16 all_unreclaimable? no
1, chromaInterleave 1, mapType 0lowmem_reserve[]:, tiled2LinearEnable 0
0 391 391 391
Normal free:39836kB min:1680kB low:2100kB high:2520kB active_anon:15760kB inactive_anon:580kB active_file:236060kB inactive_file:84760kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:401312kB mlocked:0kB dirty:0kB writeback:0kB mapped:4976kB shmem:580kB slab_reclaimable:1848kB slab_unreclaimable:6776kB kernel_stack:640kB pagetables:692kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:19 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
DMA: 892*4kB 334*8kB 227*16kB 155*32kB 157*64kB 88*128kB 82*256kB 65*512kB 58*1024kB 43*2048kB 28*4096kB 0*8192kB 0*16384kB 0*32768kB = 352560kB
Normal: 1493*4kB 913*8kB 394*16kB 130*32kB 92*64kB 19*128kB 16*256kB 10*512kB 5*1024kB 2*2048kB 0*4096kB 0*8192kB 0*16384kB 0*32768kB = 50492kB
89303 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap = 0kB
Total swap = 0kB
262144 pages of RAM
102712 free pages
37023 reserved pages
1141 slab pages
1712 pages shared
0 pages swap cached
Physical memory allocation error!
Physical memory allocation error!