Wind River Support Network

HomeDefectsLIN1021-1438
Fixed

LIN1021-1438 : axxiaarm: sleeping function called from invalid context at drivers/spi/spi.c

Created: Sep 6, 2021    Updated: Nov 23, 2021
Resolved Date: Nov 23, 2021
Found In Version: 10.21.20.4
Fix Version: 10.21.20.7
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: BSP

Description

BUG: sleeping function called from invalid context at drivers/spi/spi.c:1211
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5278, name: stress-ng
INFO: lockdep is turned off.
Preemption disabled at:
[<c0652a48>] preempt_latency_start+0x28/0x54
CPU: 0 PID: 5278 Comm: stress-ng Tainted: G W 5.10.60-yocto-standard #1
Hardware name: INTEL Axxia
[<c0610e50>] (unwind_backtrace) from [<c060af48>] (show_stack+0x18/0x1c)
[<c060af48>] (show_stack) from [<c10c2690>] (dump_stack+0x94/0xbc)
[<c10c2690>] (dump_stack) from [<c0653b48>] (___might_sleep+0x20c/0x2a0)
[<c0653b48>] (___might_sleep) from [<c0dafce8>] (spi_delay_exec+0x24/0x80)
[<c0dafce8>] (spi_delay_exec) from [<c0db71dc>] (pump_transfers+0x5c/0xe8)
[<c0db71dc>] (pump_transfers) from [<c062d91c>] (tasklet_action_common.constprop.0+0x9c/0xfc)
[<c062d91c>] (tasklet_action_common.constprop.0) from [<c0601c0c>] (__do_softirq+0x394/0x4f4)
[<c0601c0c>] (__do_softirq) from [<c062cf54>] (__irq_exit_rcu+0x150/0x1b4)
[<c062cf54>] (__irq_exit_rcu) from [<c062d3c0>] (irq_exit+0x10/0x3c)
[<c062d3c0>] (irq_exit) from [<c068b1d4>] (__handle_domain_irq+0x7c/0xa8)
[<c068b1d4>] (__handle_domain_irq) from [<c061fc70>] (axxia_gic_handle_irq+0x134/0x244)
[<c061fc70>] (axxia_gic_handle_irq) from [<c060123c>] (__irq_svc+0x5c/0x94)
Exception stack(0xd00efd28 to 0xd00efd70)
fd20: ffffe000 241a7000 d00ee000 00000000 200f0113 d013282c
fd40: 00000000 d00ee000 d013282c c8ca8264 00000003 d00efdc4 00000000 d00efd78
fd60: c10cfd7c c10cfd80 600f0113 ffffffff
[<c060123c>] (__irq_svc) from [<c10cfd80>] (_raw_spin_unlock_irqrestore+0x38/0x6c)
[<c10cfd80>] (_raw_spin_unlock_irqrestore) from [<c06563fc>] (try_to_wake_up+0x1a0/0x2ac)
[<c06563fc>] (try_to_wake_up) from [<c0656570>] (wake_up_q+0x44/0x54)
[<c0656570>] (wake_up_q) from [<c0675348>] (rwsem_wake.constprop.0+0x78/0x98)
[<c0675348>] (rwsem_wake.constprop.0) from [<c07d8518>] (anon_vma_fork+0x118/0x120)
[<c07d8518>] (anon_vma_fork) from [<c062303c>] (dup_mm+0x1fc/0x408)
[<c062303c>] (dup_mm) from [<c06240f0>] (copy_process+0xd80/0x16c0)
[<c06240f0>] (copy_process) from [<c0624b50>] (kernel_clone+0xb8/0x3c0)
[<c0624b50>] (kernel_clone) from [<c0625128>] (sys_clone+0x78/0x94)
[<c0625128>] (sys_clone) from [<c0600060>] (ret_fast_syscall+0x0/0x28)
Exception stack(0xd00effa8 to 0xd00efff0)
ffa0: b60bc448 b60bc920 01200011 00000000 00000000 00000000
ffc0: b60bc448 b60bc920 00000001 00000078 b60bad2c 00000001 b60bc3e0 b60b992c
ffe0: 00000078 b60b9650 b6def623 b6d8b386

Steps to Reproduce

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

Project Build:
----------------------
    --machines=axxiaarm --templates feature/docker feature/kexec feature/kdump --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 wrlinux-image-std


standard kernel and rootfs were located at :
http://pek-lpgtest7408.wrs.com/buildarea1/SharedImage/LTS21/Kernel/axxiaarm64_standard_glibc-std/20210901_183441/
Live chat
Online