Wind River Support Network

HomeDefectsLIN1019-3341
Not to be fixed

LIN1019-3341 : xilinx-zynq: dio in LTP failed dio to kworker/u5:8: page allocation failure

Created: Nov 7, 2019    Updated: Nov 26, 2019
Resolved Date: Nov 26, 2019
Found In Version: 10.19.45.1
Severity: Standard
Applicable for: Wind River Linux LTS 19
Component/s: BSP

Description

'page allocation failure' log only met once.
dio can't be completed within the specified timeout some months previously.

Test Case : ltp_dio
6/20: ################--------------------------------------
>>>>>>>>>>>>>>>>>> test case start >>>>>>>>>>>>>>>>>>>>
LTP: starting dio01 (diotest1)
LTP: starting dio02 (diotest2)
LTP: starting dio03 (diotest3)
LTP: starting dio04 (diotest4)
LTP: starting dio05 (diotest5)
LTP: starting dio06 (diotest6)
LTP: starting dio07 (diotest1 -b 65536)
LTP: starting dio08 (diotest2 -b 65536)
LTP: starting dio09 (diotest3 -b 65536)
LTP: starting dio10 (diotest4 -b 65536)
LTP: starting dio11 (diotest5 -b 65536)
LTP: starting dio12 (diotest6 -b 65536)
LTP: starting dio13 (diotest1 -b 65536 -n 2000)
LTP: starting dio14 (diotest2 -b 65536 -i 1000)
LTP: starting dio15 (diotest3 -b 65536 -i 1000)
LTP: starting dio16 (diotest5 -b 65536 -i 1000)
LTP: starting dio17 (diotest6 -b 65536 -i 1000)
LTP: starting dio18 (diotest2 -b 65536 -i 1000 -o 1024000)
LTP: starting dio19 (diotest3 -b 65536 -i 1000 -o 1024000)
LTP: starting dio20 (diotest5 -b 65536 -i 1000 -o 1024000)
LTP: starting dio21 (diotest6 -b 65536 -i 1000 -o 1024000)
LTP: starting dio22 (diotest2 -b 65536 -i 1000 -o 104857600)
LTP: starting dio23 (diotest3 -b 65536 -i 1000 -o 104857600)
LTP: starting dio24 (diotest5 -b 65536 -i 1000 -o 104857600)
LTP: starting dio25 (diotest6 -b 65536 -i 1000 -o 104857600)
LTP: starting dio26 (diotest6 -b 8192 -v 100)
LTP: starting dio27 (diotest6 -b 8192 -o 1024000 -i 1000 -v 100)
LTP: starting dio28 (diotest6 -b 8192 -o 1024000 -i 1000 -v 200)
LTP: starting dio29 (diotest3 -b 65536 -n 100 -i 100 -o 1024000)
LTP: starting dio30 (diotest6 -b 65536 -n 100 -i 100 -o 1024000)
kworker/u5:8: page allocation failure: order:0, mode:0xa20(GFP_ATOMIC), nodemask=(null),cpuset=/,mems_allowed=0
CPU: 0 PID: 2066 Comm: kworker/u5:8 Not tainted 5.2.21-yocto-standard #1
Hardware name: Xilinx Zynq Platform
Workqueue: xprtiod rpc_async_schedule
[<80112a2c>] (unwind_backtrace) from [<8010ca4c>] (show_stack+0x18/0x1c)
[<8010ca4c>] (show_stack) from [<809b77e0>] (dump_stack+0x70/0x8c)
[<809b77e0>] (dump_stack) from [<8028ab64>] (warn_alloc+0xb0/0x178)
[<8028ab64>] (warn_alloc) from [<8028b4a0>] (__alloc_pages_nodemask+0x7dc/0xf80)
[<8028b4a0>] (__alloc_pages_nodemask) from [<8028bd88>] (page_frag_alloc+0x5c/0x178)
[<8028bd88>] (page_frag_alloc) from [<8084f348>] (__netdev_alloc_skb+0x98/0x110)
[<8084f348>] (__netdev_alloc_skb) from [<806e19e4>] (gem_rx_refill+0x78/0x18c)
[<806e19e4>] (gem_rx_refill) from [<806e1bb0>] (gem_rx+0xb8/0x238)
[<806e1bb0>] (gem_rx) from [<806e2258>] (macb_poll+0x54/0xe0)
[<806e2258>] (macb_poll) from [<80867ca0>] (net_rx_action+0x188/0x44c)
[<80867ca0>] (net_rx_action) from [<80102b34>] (__do_softirq+0x24c/0x3ac)
[<80102b34>] (__do_softirq) from [<8012b654>] (irq_exit+0x80/0xa0)
[<8012b654>] (irq_exit) from [<80176bf8>] (__handle_domain_irq+0x9c/0xe8)
[<80176bf8>] (__handle_domain_irq) from [<80593998>] (gic_handle_irq+0x60/0x98)
[<80593998>] (gic_handle_irq) from [<801021cc>] (__irq_svc+0x6c/0xa8)
Exception stack(0xbe1f1a68 to 0xbe1f1ab0)
1a60: bc3c2000 975d1738 00000b50 80f03d48 bc3c2000 975d1738
1a80: bc3c2000 00000000 00000014 00000014 be1f1b94 ba92cd80 00000002 be1f1ab8
1aa0: 7f014fec 7f019c40 60000113 ffffffff
[<801021cc>] (__irq_svc) from [<7f019c40>] (nf_conntrack_tcp_packet+0x28/0xf58 [nf_conntrack])
[<7f019c40>] (nf_conntrack_tcp_packet [nf_conntrack]) from [<7f014fec>] (nf_conntrack_in+0x464/0x5a8 [nf_conntrack])
[<7f014fec>] (nf_conntrack_in [nf_conntrack]) from [<808b9630>] (nf_hook_slow+0x44/0xb4)
[<808b9630>] (nf_hook_slow) from [<808c6e40>] (__ip_local_out+0xb0/0xe4)
[<808c6e40>] (__ip_local_out) from [<808c6e90>] (ip_local_out+0x1c/0x44)
[<808c6e90>] (ip_local_out) from [<808c733c>] (__ip_queue_xmit+0x2f0/0x3bc)
[<808c733c>] (_ip_queue_xmit) from [<808e14e0>] (_tcp_transmit_skb+0x80c/0x9ec)
[<808e14e0>] (__tcp_transmit_skb) from [<808e16d8>] (tcp_transmit_skb+0x18/0x20)
[<808e16d8>] (tcp_transmit_skb) from [<808e2874>] (tcp_write_xmit+0x790/0xdf0)
[<808e2874>] (tcp_write_xmit) from [<808e2f08>] (__tcp_push_pending_frames+0x34/0xdc)
[<808e2f08>] (__tcp_push_pending_frames) from [<808ddad4>] (tcp_rcv_established+0x488/0x6dc)
[<808ddad4>] (tcp_rcv_established) from [<808e706c>] (tcp_v4_do_rcv+0x80/0x1f4)
[<808e706c>] (tcp_v4_do_rcv) from [<80849c60>] (__release_sock+0xd8/0xe8)
[<80849c60>] (__release_sock) from [<80849ca0>] (release_sock+0x30/0x88)
[<80849ca0>] (release_sock) from [<808d4058>] (tcp_sendmsg+0x3c/0x44)
[<808d4058>] (tcp_sendmsg) from [<80844258>] (sock_sendmsg+0x1c/0x2c)
[<80844258>] (sock_sendmsg) from [<8098b334>] (xs_sendpages+0x1f8/0x268)
[<8098b334>] (xs_sendpages) from [<8098b48c>] (xs_tcp_send_request+0xe8/0x1c4)
[<8098b48c>] (xs_tcp_send_request) from [<809885d4>] (xprt_transmit+0xa8/0x3dc)
[<809885d4>] (xprt_transmit) from [<80984bb4>] (call_transmit+0x74/0x84)
[<80984bb4>] (call_transmit) from [<80993ddc>] (__rpc_execute+0xfc/0x41c)
[<80993ddc>] (__rpc_execute) from [<8099412c>] (rpc_async_schedule+0x30/0x58)
[<8099412c>] (rpc_async_schedule) from [<8013f334>] (process_one_work+0x288/0x46c)
[<8013f334>] (process_one_work) from [<801406dc>] (worker_thread+0x294/0x3d8)
[<801406dc>] (worker_thread) from [<80144f3c>] (kthread+0x138/0x14c)
[<80144f3c>] (kthread) from [<801010e8>] (ret_from_fork+0x14/0x2c)
Exception stack(0xbe1f1fb0 to 0xbe1f1ff8)
1fa0: 00000000 00000000 00000000 00000000
1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
Mem-Info:
active_anon:62368 inactive_anon:1908 isolated_anon:0
active_file:84906 inactive_file:84964 isolated_file:0
unevictable:0 dirty:19 writeback:3277 unstable:1194
slab_reclaimable:4331 slab_unreclaimable:6484
mapped:4543 shmem:2257 pagetables:574 bounce:0
free:5911 free_pcp:95 free_cma:378
Node 0 active_anon:249472kB inactive_anon:7632kB active_file:339624kB inactive_file:339856kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:18172kB dirty:76kB writeback:13108kB shmem:9028kB writeback_tmp:0kB unstable:4776kB all_unreclaimable? no
Normal free:23644kB min:4008kB low:5012kB high:6016kB active_anon:249088kB inactive_anon:7632kB active_file:340008kB inactive_file:340148kB unevictable:0kB writepending:13280kB present:1048576kB managed:1024208kB mlocked:0kB kernel_stack:2064kB pagetables:2296kB bounce:0kB free_pcp:380kB local_pcp:324kB free_cma:1512kB
lowmem_reserve[]: 0 0
Normal: 249*4kB (UMEC) 202*8kB (UMEC) 153*16kB (UMEC) 40*32kB (UMEC) 17*64kB (MC) 11*128kB (MC) 8*256kB (MC) 4*512kB (M) 6*1024kB (M) 2*2048kB (M) 0*4096kB = 23172kB
172156 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 RAM
0 pages HighMem/MovableOnly
6092 pages reserved
4096 pages cma reserved
macb e000b000.ethernet eth0: Unable to allocate sk_buff

Steps to Reproduce

To Get The Testing Layer:
------------------------
# git clone ssh://git@lxgit.wrs.com/wrlinux-testing/testcases
# cd wrlinux;git checkout master

Project Build:
----------------------
    --machines xilinx-zynq --distro wrlinux --dl-layers
    Build Steps:
    . oe-init-build-env
    Add KTS layer  
    1.bitbake-layers add-layer <path to wr-testing/kts-dev>
    2.echo "require templates/feature/wr-kts/template.conf" >> conf/local.conf
    3.echo 'PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"' >> conf/local.conf
    
    build image:
    # bitbake IMAGE_NAME

On zc702:
------------------------
Linux version 5.2.21-yocto-standard (oe-user@oe-host) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Wed Nov 6 07:17:41 UTC 2019

Kernel command line: console=ttyPS0,115200n8 root=/dev/nfs rw nfsroot=128.224.165.20:/export/pxeboot/vlm-boards/22009/rootfs,v3,tcp ip=128.224.179.217:128.224.165.20:128.224.178.1:255.255.254.0:zc702:eth0:off ignore_loglevel earlyprintk noinitrd selinux=0 enforcing=0 kmemleak=on

root@xilinx-zynq:/opt/wr-test# ./main_test.py -f testplans/ltp_plan   
Live chat
Online