Fixed
Created: Jul 1, 2014
Updated: Dec 3, 2018
Resolved Date: Nov 18, 2014
Found In Version: 6.0
Fix Version: 6.0.0.15
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Kernel
On preempt-rt kernel, caught calltrace, sleeping function called from invalid context at kernel/rtmutex.c:1189
--------------------------
BUG: sleeping function called from invalid context at /xlp_ltp/bitbake_build/tmp/work/bcm_xlp-wrs-linux/linux-windriver/3.10-r0/linux/kernel/rtmutex.c:1189
in_atomic(): 1, irqs_disabled(): 1, pid: 0, name: swapper/0
Preemption disabled at:[< (null)>] (null)
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.10.38-ltsi-rt34-WR6.0.0.0_preempt-rt #1
Stack : 0000000000000000 0000000000000053 0000000000000000 0000000000000000
0000000000000004 ffffffffc0cc0000 0000000000000000 0000000000000000
ffffffffc1020000 0000000000000000 0000000000000053 0000000000000006
ffffffffc0bcf750 ffffffffc02a0da0 0000000000000000 0000000000000000
0000000000000000 0000000000000000 ffffffffc1000000 ffffffffc1000000
ffffffffc0b13938 ffffffffc0cb5a37 ffffffffc0ffaf48 ffffffffc0cb5ed0
0000000000000000 0000000000000000 0000000000000002 0000000000000001
ffffffffc0bcf7d0 ffffffffc0bcf6e0 ffffffffc0bcf7f8 ffffffffc0a08e00
ffffffffc0bcf830 ffffffffc02a2a38 ffffffffc0cb5b30 ffffffffc0b13938
0000000000000000 ffffffffc0273c38 0000000000000000 0000000000000000
...
Call Trace:
[<ffffffffc0273c38>] show_stack+0xd8/0xf8
[<ffffffffc0a08e00>] rt_mutex_lock+0x38/0xa8
[<ffffffffc06a45dc>] reset_buffer_flags+0x5c/0xb8
[<ffffffffc06a5abc>] n_tty_flush_buffer+0x2c/0x70
[<ffffffffc06a641c>] n_tty_receive_buf+0x91c/0x1388
[<ffffffffc06ab914>] flush_to_ldisc+0x18c/0x218
[<ffffffffc06c7e6c>] serial8250_rx_chars+0x144/0x2b8
[<ffffffffc06ca768>] serial8250_handle_irq.part.17+0x98/0x128
[<ffffffffc06c9350>] serial8250_interrupt+0x70/0x140
[<ffffffffc03333dc>] handle_irq_event_percpu+0xa4/0x328
[<ffffffffc03336e4>] handle_irq_event+0x84/0xe0
[<ffffffffc033765c>] handle_level_irq+0xe4/0x1a8
[<ffffffffc03327cc>] generic_handle_irq+0x54/0x88
[<ffffffffc0a0a25c>] do_IRQ+0x2c/0x40
[<ffffffffc026e1a0>] ret_from_irq+0x0/0x4
[<ffffffffc026e440>] __r4k_wait+0x20/0x40
[<ffffffffc02f77f8>] cpu_startup_entry+0x180/0x2e8
[<ffffffffc0d30af0>] start_kernel+0x4a8/0x4c8
1)configure --enable-board=bcm-xlp --enable-kernel=preempt-rt --enable-rootfs=glibc-std --enable-test=yes --with-layer=/runtime/wr-testing/ltp --enable-parallel-pkgbuilds=24 --enable-jobs=24
2) build all
3) root@localhost:~# xxd /dev//mtd6 | head
Check the behavior and logs.