Wind River Support Network

HomeDefectsLIN5-19186
Fixed

LIN5-19186 : [cav-octeon2] BUG: sleeping function called from invalid context at linux/mm/slub.c:943

Created: Aug 5, 2014    Updated: Dec 19, 2017
Resolved Date: Aug 6, 2014
Found In Version: 5.0
Fix Version: 5.0.1.18
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: BSP - Async

Description

root@xxx:~# ethtool xaui0
Settings for xaui0:
    Supported ports: [ ]
    Supported link modes:
    Supports auto-negotiation: No
    Advertised link modes:  Not reported
    Advertised pause frame use: No
    Advertised auto-negotiation: No
    Speed: 10000Mb/s
    Duplex: Full
    Port: Twisted Pair
    PHYAD: 0
    Transceiver: internal
    Auto-negotiation: off
    MDI-X: Unknown
    Link detected: no
root@xxx:~# ifconfig xaui0 up
xaui0: 10000 Mbps Full duplex, port 2112
BUG: sleeping function called from invalid context at /buildarea2/wr-taf/cav/std/bitbake_build/tmp/work/cav_octeon2-wrs-linux-gnun32/linux-windriver-3.4-r0/linux/mm/slub.c:943
in_atomic(): 1, irqs_disabled(): 0, pid: 939, name: ifconfig
2 locks held by ifconfig/939:
 #0:  (rtnl_mutex){......}, at: [<ffffffff80751144>] rtnl_lock+0x2c/0x40
 #1:  (octeon_hw_status_lock){......}, at: [<ffffffff801085ec>] octeon_hw_status_add_source+0x5c/0x380
Call Trace:
[<ffffffff80884830>] dump_stack+0x1c/0x50
[<ffffffff801a5f58>] __might_sleep+0x110/0x150
[<ffffffff80297558>] kmem_cache_alloc_trace+0x168/0x278
[<ffffffff80108640>] octeon_hw_status_add_source+0xb0/0x380
[<ffffffff8066332c>] cvm_oct_sgmii_open+0x4ec/0x708
[<ffffffff8074160c>] __dev_open+0x114/0x190
[<ffffffff80741958>] __dev_change_flags+0xb0/0x190
[<ffffffff80741b20>] dev_change_flags+0x30/0x90
[<ffffffff807b9a04>] devinet_ioctl+0x77c/0x838
[<ffffffff807bad08>] inet_ioctl+0xe8/0x120
[<ffffffff8071daac>] sock_do_ioctl+0x4c/0xa8
[<ffffffff8071e4cc>] compat_sock_ioctl+0x32c/0x1370
[<ffffffff80308150>] compat_sys_ioctl+0x120/0x1b50
[<ffffffff8014b464>] handle_sysn32+0x44/0x88

root@xxx:~# ethtool xaui0
Settings for xaui0:
    Supported ports: [ ]
    Supported link modes:
    Supports auto-negotiation: No
    Advertised link modes:  Not reported
    Advertised pause frame use: No
    Advertised auto-negotiation: No
    Speed: 10000Mb/s
    Duplex: Full
    Port: Twisted Pair
    PHYAD: 0
    Transceiver: internal
    Auto-negotiation: off
    MDI-X: Unknown
    Link detected: yes 

Steps to Reproduce

1) configure --enable-board=cav-octeon3 --enable-kernel=standard --enable-rootfs=glibc-std --enable-test=yes --with-layer=/runtime/wr-testing/ltp,/runtime/wr-testing/kts-test,/runtime/wr-testing/bts --with-template=feature/kts-basic,feature/kts-extended,feature/kts-standard --enable-parallel-pkgbuilds=24 --enable-jobs=24
2) make all
3) deploy images
4) startup board and run commands follow description's steps.

Check the behaving and logs.

Other Downloads


Live chat
Online