Wind River Support Network

HomeDefectsLIN10-5292
Fixed

LIN10-5292 : nxp-t4xxx: sleeping function called from invalid context at kernel/locking/rtmutex.c:986 when set DEBUG_ATOMIC_SLEEP=y

Created: Jan 10, 2019    Updated: Mar 12, 2019
Resolved Date: Mar 12, 2019
Found In Version: 10.17.41.14
Fix Version: 10.17.41.15
Severity: Standard
Applicable for: Wind River Linux LTS 17
Component/s: BSP

Description

[  OK  ] Listening on udev Kernel Socket.
         Starting Create list of required st…ce nodes for the current kernel...
[  OK  ] Mounted Kernel Debug File System.
BUG: sleeping function called from invalid context at /kernel-source//kernel/locking/rtmutex.c:986
in_atomic(): 0, irqs_disabled(): 1, pid: 370, name: kworker/u48:2
CPU: 3 PID: 370 Comm: kworker/u48:2 Tainted: G        W       4.12.29-rt0-yocto-preempt-rt #5
Workqueue: events_unbound .fsnotify_mark_destroy_workfn
Call Trace:
[c0000003e4d8f850] [c000000000ba9194] .dump_stack+0xac/0xec (unreliable)
[c0000003e4d8f8e0] [c0000000000a0a74] .___might_sleep+0x184/0x1f0
[c0000003e4d8f970] [c000000000ba5398] .rt_spin_lock+0x38/0xa0
[c0000003e4d8f9f0] [c0000000000e82dc] .__call_srcu+0x8c/0x490
[c0000003e4d8faa0] [c0000000000e87a0] .__synchronize_srcu.part.4+0x80/0xb0
[c0000003e4d8fb50] [c000000000286918] .fsnotify_mark_destroy_workfn+0x78/0xf0
[c0000003e4d8fbe0] [c00000000008c7e4] .process_one_work+0x284/0x610
[c0000003e4d8fc90] [c00000000008cbe8] .worker_thread+0x78/0x630
[c0000003e4d8fd70] [c000000000095738] .kthread+0x1b8/0x1c0
[c0000003e4d8fe30] [c0000000000009bc] .ret_from_kernel_thread+0x58/0x9c
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Huge Pages File System.
[  OK  ] Mounted Temporary Directory (/tmp).
[  OK  ] Started Journal Service.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Create list of required sta…vice nodes for the current kernel.
         Starting Create System Users...
         Starting Rebuild Hardware Database...
         Starting Flush Journal to Persistent Storage...
systemd-journald[600]: Received request to flush runtime journal from PID 1
[  OK  ] Started Create System Users.
[  OK  ] Started Flush Journal to Persistent Storage.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /var/volatile...
[  OK  ] Mounted /var/volatile.
[  OK  ] Reached target Local File Systems.
         Starting Rebuild Journal Catalog...
         Starting Rebuild Dynamic Linker Cache...
         Starting Create Volatile Files and Directories...
         Starting Load/Save Random Seed...
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Rebuild Journal Catalog.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Run pending postinsts...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
BUG: sleeping function called from invalid context at /kernel-source//kernel/locking/rtmutex.c:986
in_atomic(): 0, irqs_disabled(): 1, pid: 366, name: kworker/u48:1
CPU: 19 PID: 366 Comm: kworker/u48:1 Tainted: G        W       4.12.29-rt0-yocto-preempt-rt #5
Workqueue: events_unbound .fsnotify_connector_destroy_workfn
Call Trace:
[c0000003e4d7b850] [c000000000ba9194] .dump_stack+0xac/0xec (unreliable)
[c0000003e4d7b8e0] [c0000000000a0a74] .___might_sleep+0x184/0x1f0
[c0000003e4d7b970] [c000000000ba5398] .rt_spin_lock+0x38/0xa0
[c0000003e4d7b9f0] [c0000000000e82dc] .__call_srcu+0x8c/0x490
[c0000003e4d7baa0] [c0000000000e87a0] .__synchronize_srcu.part.4+0x80/0xb0
[c0000003e4d7bb50] [c0000000002867b0] .fsnotify_connector_destroy_workfn+0x60/0xb0
[c0000003e4d7bbe0] [c00000000008c7e4] .process_one_work+0x284/0x610
[c0000003e4d7bc90] [c00000000008cbe8] .worker_thread+0x78/0x630
[c0000003e4d7bd70] [c000000000095738] .kthread+0x1b8/0x1c0
[c0000003e4d7be30] [c0000000000009bc] .ret_from_kernel_thread+0x58/0x9c
[  OK  ] Started Rebuild Hardware Database.
[FAILED] Failed to start Rebuild Dynamic Linker Cache.
See 'systemctl status ldconfig.service' for details.
         Starting Update is Completed...
         Starting udev Coldplug all Devices...
[  OK  ] Started Update is Completed.
Freescale(R) MPC85xx EDAC driver, (C) 2006 Montavista Software
EDAC MC0: Giving out device to module fsl_ddr_edac controller fsl_mc_err: DEV fsl_mc_err (INTERRUPT)
fsl_ddr_edac acquired irq 490 for MC
fsl_ddr_edac MC err registered
fsl_mc_err_probe: No ECC DIMMs discovered
EDAC MC2: Giving out device to module fsl_ddr_edac controller fsl_mc_err: DEV fsl_mc_err (INTERRUPT)
fsl_ddr_edac acquired irq 488 for MC
fsl_ddr_edac MC err registered
EDAC PCI0: Giving out device to module MPC85xx_edac controller mpc85xx_pci_err: DEV mpc85xx-pci-edac.0.auto (INTERRUPT)
MPC85xx_edac acquired irq 20 for PCI Err
MPC85xx_edac PCI err registered
EDAC PCI1: Giving out device to module MPC85xx_edac controller mpc85xx_pci_err: DEV mpc85xx-pci-edac.1.auto (INTERRUPT)
MPC85xx_edac acquired irq 22 for PCI Err
MPC85xx_edac PCI err registered
BUG: sleeping function called from invalid context at /kernel-source//kernel/locking/rtmutex.c:986
in_atomic(): 0, irqs_disabled(): 1, pid: 366, name: kworker/u48:1
CPU: 19 PID: 366 Comm: kworker/u48:1 Tainted: G        W       4.12.29-rt0-yocto-preempt-rt #5
Workqueue: events_unbound .fsnotify_connector_destroy_workfn
Call Trace:
[c0000003e4d7b850] [c000000000ba9194] .dump_stack+0xac/0xec (unreliable)
[c0000003e4d7b8e0] [c0000000000a0a74] .___might_sleep+0x184/0x1f0
[c0000003e4d7b970] [c000000000ba5398] .rt_spin_lock+0x38/0xa0
[c0000003e4d7b9f0] [c0000000000e82dc] .__call_srcu+0x8c/0x490
[c0000003e4d7baa0] [c0000000000e87a0] .__synchronize_srcu.part.4+0x80/0xb0
[c0000003e4d7bb50] [c0000000002867b0] .fsnotify_connector_destroy_workfn+0x60/0xb0
[c0000003e4d7bbe0] [c00000000008c7e4] .process_one_work+0x284/0x610
[c0000003e4d7bc90] [c00000000008cbe8] .worker_thread+0x78/0x630
[c0000003e4d7bd70] [c000000000095738] .kthread+0x1b8/0x1c0
[c0000003e4d7be30] [c0000000000009bc] .ret_from_kernel_thread+0x58/0x9c
[  OK  ] Started Run pending postinsts.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.

Steps to Reproduce

--machines nxp-t4xxx --templates feature/system-stats,feature/valgrind,feature/iotop --distro wrlinux --dl-layers 

PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt" in conf/local.conf

bitbake virtual/kernel 

Set DEBUG_ATOMIC_SLEEP=y
bitbake virtual/kernel && bitbake wrlinux-image-glibc-std
Live chat
Online