Wind River Support Network

HomeDefectsLIN7-2510
Fixed

LIN7-2510 : There is continuous output "BUG: sleeping function called from invalid context" on WRL70 Async BSP altera-socfpga target ArriaV with kernel debug options enabled

Created: Dec 22, 2014    Updated: Sep 8, 2018
Resolved Date: Jan 4, 2015
Found In Version: 7.0
Fix Version: 7.0.0.1
Severity: Severe
Applicable for: Wind River Linux 7
Component/s: BSP - Async

Description

There is continuous output "BUG: sleeping function called from invalid context" on WRL70 Async BSP altera-socfpga target ArriaV with kernel debug options enabled as follows:

[  113.470864] BUG: sleeping function called from invalid context at /buildarea2/jli2/altera-socfpga-wrl7-std/bitbake_build/tmp/work/altera_socfpga-wrs-linux-gnueabi/linux-windriver/3.14-r0/linux/kernel/locking/mutex.c:616
[  113.488955] in_atomic(): 1, irqs_disabled(): 128, pid: 109, name: kworker/0:2
[  113.494765] INFO: lockdep is turned off.
[  113.497377] irq event stamp: 0
[  113.499125] hardirqs last  enabled at (0): [<  (null)>]   (null)
[  113.503831] hardirqs last disabled at (0): [<80021e10>] copy_process.part.50+0x4a4/0x168c
[  113.510712] softirqs last  enabled at (0): [<80021e10>] copy_process.part.50+0x4a4/0x168c
[  113.517580] softirqs last disabled at (0): [<  (null)>]   (null)
[  113.522290] CPU: 0 PID: 109 Comm: kworker/0:2 Not tainted 3.14.23-WR7.0.0.0_standard #1
[  113.528975] Workqueue: events_power_efficient phy_state_machine
[  113.533608] [<80017840>] (unwind_backtrace) from [<80012a80>] (show_stack+0x20/0x24)
[  113.540038] [<80012a80>] (show_stack) from [<8067e948>] (dump_stack+0x74/0xc0)
[  113.545945] [<8067e948>] (dump_stack) from [<80058170>] (__might_sleep+0x19c/0x1d4)
[  113.552287] [<80058170>] (__might_sleep) from [<80682294>] (mutex_lock_nested+0x34/0x434)
[  113.559146] [<80682294>] (mutex_lock_nested) from [<80451f90>] (mdiobus_read+0x50/0x7c)
[  113.565829] [<80451f90>] (mdiobus_read) from [<8045117c>] (genphy_update_link+0x28/0x60)
[  113.572599] [<8045117c>] (genphy_update_link) from [<804511d0>] (genphy_read_status+0x1c/0x1dc)
[  113.579973] [<804511d0>] (genphy_read_status) from [<8044fbf0>] (phy_init_eee+0x54/0x230)
[  113.586834] [<8044fbf0>] (phy_init_eee) from [<8045c364>] (stmmac_eee_init+0x58/0x15c)
[  113.593433] [<8045c364>] (stmmac_eee_init) from [<8045c68c>] (stmmac_adjust_link+0x224/0x244)
[  113.600635] [<8045c68c>] (stmmac_adjust_link) from [<80450308>] (phy_state_machine+0x200/0x374)
[  113.608009] [<80450308>] (phy_state_machine) from [<80044444>] (process_one_work+0x2fc/0x688)
[  113.615210] [<80044444>] (process_one_work) from [<800459ac>] (worker_thread+0x3f0/0x500)
[  113.622070] [<800459ac>] (worker_thread) from [<8004c564>] (kthread+0xd8/0xec)
[  113.627982] [<8004c564>] (kthread) from [<8000e318>] (ret_from_fork+0x14/0x20)

Steps to Reproduce

1. clone wrlinux testing layer

git clone git://ala-git/projects/wassp-repos/testcases/wrlinux wrlinux-testing -b WRLINUX_7_0_HEAD

2. configure and build altera-socfpga project with standard kernel

configure --enable-board=fsl-ls10xx --enable-kernel=standard --enable-rootfs=glibc_std --enable-test --enable-jobs=8 --enable-parallel-pkgbuilds=8 --with-layer=<path to wrlinux-testing>/wr-testing/ltp,<path to wrlinux-testing>/wr-testing/kts --with-template=feature/kts-standard

3. boot the target arriaV (barcode 21954) 

Other Downloads


Live chat
Online