This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

swapper page allocation failure order 0 mode 0x20



Hello,

While using the can driver i get the following error:

swapper page allocation failure order 0 mode 0x20

googling a bit says increase the sizes but doesnt help.

Thanks,

Mike

  • Hi Mike,

    Not an answer to your question but if you can mention the name of the relative TI SDK packages used and the the processor, target board used etc., we can bring this question to the appropriate Team / device experts .....


    -------------------
  • Hello,

    I am using DM8148, EZSDK release.

    Thanks,
    Mike
  • Mike,

    Which EZSDK version you are using?

    Can you provide full console output log when you get this error?

    BR
    Pavel
  • Hi Pavel,

    I am using the latest ezsdk release, following is the log:

    # dmesg
    [ 0.000000] 0] [<c0034000>] (asm_do_IRQ+0x0/0x9c) from [<c03dfe74>] (__irq_svc+0x34/0xa0)
    [ 6351.800000] Exception stack(0xd5fe3cb8 to 0xd5fe3d00)
    [ 6351.800000] 3ca0: c0558eec 00000000
    [ 6351.800000] 3cc0: 000000d0 c00dc370 c0558498 c0558eec 00000000 000000d0 00000000 00000000
    [ 6351.800000] 3ce0: c05585b8 d5fe3d34 c055849c d5fe3d00 c00afe10 c00dc370 200f0013 ffffffff
    [ 6351.800000] r5:fa200000 r4:ffffffff
    [ 6351.800000] [<c00afda4>] (shrink_slab+0x0/0x184) from [<c00b208c>] (try_to_free_pages+0x1b0/0x324)
    [ 6351.800000] [<c00b1edc>] (try_to_free_pages+0x0/0x324) from [<c00ab7d4>] (__alloc_pages_nodemask+0x340/0x588)
    [ 6351.800000] [<c00ab494>] (__alloc_pages_nodemask+0x0/0x588) from [<c00c7554>] (new_slab+0x7c/0x204)
    [ 6351.800000] [<c00c74d8>] (new_slab+0x0/0x204) from [<c03db7e0>] (__slab_alloc.constprop.57+0x110/0x1e4)
    [ 6351.800000] r8:bf17c468 r7:00000000 r6:000000d0 r5:d6402300 r4:00000010
    [ 6351.800000] r3:003fffff
    [ 6351.800000] [<c03db6d0>] (__slab_alloc.constprop.57+0x0/0x1e4) from [<c00ca4ac>] (__kmalloc_track_caller+0x84/0xc0)
    [ 6351.800000] r8:bf17c468 r7:a0000013 r6:000000d0 r5:00000000 r4:d6402300
    [ 6351.800000] r3:c154b048
    [ 6351.800000] [<c00ca428>] (__kmalloc_track_caller+0x0/0xc0) from [<c02f0dc8>] (__alloc_skb+0x58/0xe8)
    [ 6351.800000] r8:000000c0 r7:bf17c468 r6:d6402100 r5:000000d0 r4:d1c500c0
    [ 6351.800000] r3:c154b018
    [ 6351.800000] [<c02f0d70>] (__alloc_skb+0x0/0xe8) from [<bf17c468>] (wlcore_rx+0x320/0x768 [wlcore])
    [ 6351.800000] [<bf17c148>] (wlcore_rx+0x0/0x768 [wlcore]) from [<bf171810>] (wlcore_irq_locked+0x128/0x2dc [wlcore])
    [ 6351.800000] [<bf1716e8>] (wlcore_irq_locked+0x0/0x2dc [wlcore]) from [<bf171fec>] (wlcore_irq+0xec/0x178 [wlcore])
    [ 6351.800000] [<bf171f00>] (wlcore_irq+0x0/0x178 [wlcore]) from [<c009f648>] (irq_thread+0x88/0x1d0)
    [ 6351.800000] r7:d5fe2000 r6:c0554034 r5:d5fa6880 r4:c0553ff4
    [ 6351.800000] [<c009f5c0>] (irq_thread+0x0/0x1d0) from [<c008212c>] (kthread+0x90/0x9c)
    [ 6351.800000] [<c008209c>] (kthread+0x0/0x9c) from [<c006dc94>] (do_exit+0x0/0x5f4)
    [ 6351.800000] r6:c006dc94 r5:c008209c r4:d5fcfec8
    [ 6351.800000] Mem-info:
    [ 6351.800000] Normal per-cpu:
    [ 6351.800000] CPU 0: hi: 186, btch: 31 usd: 99
    [ 6351.800000] HighMem per-cpu:
    [ 6351.800000] CPU 0: hi: 186, btch: 31 usd: 0
    [ 6351.800000] active_anon:3481 inactive_anon:156 isolated_anon:0
    [ 6351.800000] active_file:1095 inactive_file:5116 isolated_file:0
    [ 6351.800000] unevictable:0 dirty:0 writeback:0 unstable:0
    [ 6351.800000] free:290382 slab_reclaimable:411 slab_unreclaimable:86057
    [ 6351.800000] mapped:4029 shmem:157 pagetables:135 bounce:0
    [ 6351.800000] Normal free:892kB min:2432kB low:3040kB high:3648kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB iso
    lated(anon):0kB isolated(file):0kB present:369824kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:1644kB slab_unreclaimable:34
    4228kB kernel_stack:656kB pagetables:540kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
    [ 6351.800000] lowmem_reserve[]: 0 9330 9330
    [ 6351.800000] HighMem free:1160636kB min:512kB low:2472kB high:4436kB active_anon:13924kB inactive_anon:624kB active_file:4380kB inactive_file:20464kB un
    evictable:0kB isolated(anon):0kB isolated(file):0kB present:1194336kB mlocked:0kB dirty:0kB writeback:0kB mapped:16116kB shmem:628kB slab_reclaimable:0kB
    slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
    [ 6351.800000] lowmem_reserve[]: 0 0 0
    [ 6351.800000] Normal: 41*4kB 31*8kB 12*16kB 3*32kB 3*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 892kB
    [ 6351.800000] HighMem: 939*4kB 724*8kB 495*16kB 326*32kB 137*64kB 33*128kB 8*256kB 1*512kB 3*1024kB 4*2048kB 270*4096kB = 1160636kB
    [ 6351.800000] 6368 total pagecache pages
    [ 6351.800000] 408064 pages of RAM
    [ 6351.800000] 290675 free pages
    [ 6351.800000] 17795 reserved pages
    [ 6351.800000] 86291 slab pages
    [ 6351.800000] 8979 pages shared
    [ 6351.800000] 0 pages swap cached
    [ 6351.800000] SLUB: Unable to allocate memory on node -1 (gfp=0x20)
    [ 6351.800000] cache: kmalloc-512, object size: 512, buffer size: 512, default order: 0, min order: 0
    [ 6351.800000] node 0: slabs: 61651, objs: 493208, free: 0
    [ 6351.840000] irq/212-wl18xx: page allocation failure. order:0, mode:0x20
    [ 6351.840000] Backtrace:
    [ 6351.840000] [<c0042c1c>] (dump_backtrace+0x0/0x10c) from [<c03da2a8>] (dump_stack+0x18/0x1c)
    [ 6351.840000] r6:c057dff8 r5:00000000 r4:00000020 r3:600f0193
    [ 6351.840000] [<c03da290>] (dump_stack+0x0/0x1c) from [<c00ab99c>] (__alloc_pages_nodemask+0x508/0x588)
    [ 6351.840000] [<c00ab494>] (__alloc_pages_nodemask+0x0/0x588) from [<c00c7554>] (new_slab+0x7c/0x204)
    [ 6351.840000] [<c00c74d8>] (new_slab+0x0/0x204) from [<c03db7e0>] (__slab_alloc.constprop.57+0x110/0x1e4)
    [ 6351.840000] r8:c02f12a4 r7:a00f0113 r6:00000020 r5:d6402300 r4:00000000
    [ 6351.840000] r3:003fffff
    [ 6351.840000] [<c03db6d0>] (__slab_alloc.constprop.57+0x0/0x1e4) from [<c00ca4ac>] (__kmalloc_track_caller+0x84/0xc0)
    [ 6351.840000] r8:c02f12a4 r7:a00f0113 r6:00000020 r5:00000000 r4:d6402300
    [ 6351.840000] r3:c154b048
    [ 6351.840000] [<c00ca428>] (__kmalloc_track_caller+0x0/0xc0) from [<c02f0dc8>] (__alloc_skb+0x58/0xe8)
    [ 6351.840000] r8:00000080 r7:c02f12a4 r6:d6402100 r5:00000020 r4:d4d75f00
    [ 6351.840000] r3:c154b018
    [ 6351.840000] [<c02f0d70>] (__alloc_skb+0x0/0xe8) from [<c02f12a4>] (__netdev_alloc_skb+0x24/0x4c)
    [ 6351.840000] [<c02f1280>] (__netdev_alloc_skb+0x0/0x4c) from [<bf015498>] (alloc_can_skb+0x20/0x8c [can_dev])
    [ 6351.840000] r4:d5c59360 r3:00008000
    [ 6351.840000] [<bf015478>] (alloc_can_skb+0x0/0x8c [can_dev]) from [<bf0251c4>] (c_can_poll+0x530/0xa30 [c_can])
    [ 6351.840000] r6:00000002 r5:0000000e r4:d5c59360 r3:00008000
    [ 6351.840000] [<bf024c94>] (c_can_poll+0x0/0xa30 [c_can]) from [<c02f97e0>] (net_rx_action+0x64/0x160)
    [ 6351.840000] [<c02f977c>] (net_rx_action+0x0/0x160) from [<c006ffa4>] (__do_softirq+0x94/0x128)
    [ 6351.840000] [<c006ff10>] (__do_softirq+0x0/0x128) from [<c00703c8>] (irq_exit+0x48/0x98)
    [ 6351.840000] [<c0070380>] (irq_exit+0x0/0x98) from [<c003407c>] (asm_do_IRQ+0x7c/0x9c)
    [ 6351.840000] [<c0034000>] (asm_do_IRQ+0x0/0x9c) from [<c03dfe74>] (__irq_svc+0x34/0xa0)
    [ 6351.840000] Exception stack(0xd5fe3cb8 to 0xd5fe3d00)
    [ 6351.840000] 3ca0: c0558eec 00000000
    [ 6351.840000] 3cc0: 000000d0 c00dc370 c0558498 c0558eec 00000000 000000d0 00000000 00000000
    [ 6351.840000] 3ce0: c05585b8 d5fe3d34 c055849c d5fe3d00 c00afe10 c00dc370 200f0013 ffffffff
    [ 6351.840000] r5:fa200000 r4:ffffffff
    [ 6351.840000] [<c00afda4>] (shrink_slab+0x0/0x184) from [<c00b208c>] (try_to_free_pages+0x1b0/0x324)
    [ 6351.840000] [<c00b1edc>] (try_to_free_pages+0x0/0x324) from [<c00ab7d4>] (__alloc_pages_nodemask+0x340/0x588)
    [ 6351.840000] [<c00ab494>] (__alloc_pages_nodemask+0x0/0x588) from [<c00c7554>] (new_slab+0x7c/0x204)
    [ 6351.840000] [<c00c74d8>] (new_slab+0x0/0x204) from [<c03db7e0>] (__slab_alloc.constprop.57+0x110/0x1e4)
    [ 6351.840000] r8:bf17c468 r7:00000000 r6:000000d0 r5:d6402300 r4:00000010
    [ 6351.840000] r3:003fffff
    [ 6351.840000] [<c03db6d0>] (__slab_alloc.constprop.57+0x0/0x1e4) from [<c00ca4ac>] (__kmalloc_track_caller+0x84/0xc0)
    [ 6351.840000] r8:bf17c468 r7:a0000013 r6:000000d0 r5:00000000 r4:d6402300
    [ 6351.840000] r3:c154b048
    [ 6351.840000] [<c00ca428>] (__kmalloc_track_caller+0x0/0xc0) from [<c02f0dc8>] (__alloc_skb+0x58/0xe8)
    [ 6351.840000] r8:000000c0 r7:bf17c468 r6:d6402100 r5:000000d0 r4:d1c500c0
    [ 6351.840000] r3:c154b018
    [ 6351.840000] [<c02f0d70>] (__alloc_skb+0x0/0xe8) from [<bf17c468>] (wlcore_rx+0x320/0x768 [wlcore])
    [ 6351.840000] [<bf17c148>] (wlcore_rx+0x0/0x768 [wlcore]) from [<bf171810>] (wlcore_irq_locked+0x128/0x2dc [wlcore])
    [ 6351.840000] [<bf1716e8>] (wlcore_irq_locked+0x0/0x2dc [wlcore]) from [<bf171fec>] (wlcore_irq+0xec/0x178 [wlcore])
    [ 6351.840000] [<bf171f00>] (wlcore_irq+0x0/0x178 [wlcore]) from [<c009f648>] (irq_thread+0x88/0x1d0)
    [ 6351.840000] r7:d5fe2000 r6:c0554034 r5:d5fa6880 r4:c0553ff4
    [ 6351.840000] [<c009f5c0>] (irq_thread+0x0/0x1d0) from [<c008212c>] (kthread+0x90/0x9c)
    [ 6351.840000] [<c008209c>] (kthread+0x0/0x9c) from [<c006dc94>] (do_exit+0x0/0x5f4)
    [ 6351.840000] r6:c006dc94 r5:c008209c r4:d5fcfec8
    [ 6351.840000] Mem-info:
    [ 6351.840000] Normal per-cpu:
    [ 6351.840000] CPU 0: hi: 186, btch: 31 usd: 99
    [ 6351.840000] HighMem per-cpu:
    [ 6351.840000] CPU 0: hi: 186, btch: 31 usd: 0
    [ 6351.840000] active_anon:3481 inactive_anon:156 isolated_anon:0
    [ 6351.840000] active_file:1095 inactive_file:5116 isolated_file:0
    [ 6351.840000] unevictable:0 dirty:0 writeback:0 unstable:0
    [ 6351.840000] free:290382 slab_reclaimable:411 slab_unreclaimable:86057
    [ 6351.840000] mapped:4029 shmem:157 pagetables:135 bounce:0
    [ 6351.840000] Normal free:892kB min:2432kB low:3040kB high:3648kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB iso
    lated(anon):0kB isolated(file):0kB present:369824kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:1644kB slab_unreclaimable:34
    4228kB kernel_stack:656kB pagetables:540kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
    [ 6351.840000] lowmem_reserve[]: 0 9330 9330
    [ 6351.840000] HighMem free:1160636kB min:512kB low:2472kB high:4436kB active_anon:13924kB inactive_anon:624kB active_file:4380kB inactive_file:20464kB un
    evictable:0kB isolated(anon):0kB isolated(file):0kB present:1194336kB mlocked:0kB dirty:0kB writeback:0kB mapped:16116kB shmem:628kB slab_reclaimable:0kB
    slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
    [ 6351.840000] lowmem_reserve[]: 0 0 0
    [ 6351.840000] Normal: 41*4kB 31*8kB 12*16kB 3*32kB 3*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 892kB
    [ 6351.840000] HighMem: 939*4kB 724*8kB 495*16kB 326*32kB 137*64kB 33*128kB 8*256kB 1*512kB 3*1024kB 4*2048kB 270*4096kB = 1160636kB
    [ 6351.840000] 6368 total pagecache pages
    [ 6351.840000] 408064 pages of RAM
    [ 6351.840000] 290675 free pages
    [ 6351.840000] 17795 reserved pages
    [ 6351.840000] 86291 slab pages
    [ 6351.840000] 8979 pages shared
    [ 6351.840000] 0 pages swap cached
    ......

    Thanks,
    Mike
  • Mike,

    Are you using DM8148 TI EVM or custom board?

    Do you have this error during linux kernel boot up?

    Make sure you are aligned with the DCAN driver user guide:

    processors.wiki.ti.com/.../TI81XX_PSP_DCAN_Driver_User_Guide

    BR
    Pavel
  • Hi Pavel,

    I have custom DM8148 board, I dont have any error during kernel bootups.

    I can get can frames when using candump, but after sometime (10mins) I get this allocation error issue.

    I suspect this is because of low lowmem ?

    Thanks,
    Mike
  • mike A said:
    I have custom DM8148 board

    Can you test on DM8148 TI EVM (1GB DDR3)?

    mike A said:
    I can get can frames when using candump, but after sometime (10mins) I get this allocation error issue.

    You need to provide enough space for kernel on RAM. Driver seems not be able to allocate memory from kernel. You might need to tune your bootargs and/or check for memory leak. See if the below pointers will help:

    BR
    Pavel