Wind River Support Network

HomeDefectsLIN1021-1247
Fixed

LIN1021-1247 : axxiaarm: BUG: scheduling while atomic: cpuhotplug02.sh when run ltp_cpuhotplugs

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

Description

<<<test_start>>>
 tag=cpuhotplug02 stime=1616485927
 cmdline="cpuhotplug02.sh -c 1 -l 1"
 contacts=""
 analysis=exit
 <<<test_output>>>
 Name: cpuhotplug02
 Date: Tue Mar 23 07:52:07 UTC 2021
 Desc: What happens to a process when its CPU is offlined?

CPU is 1
 process 1087 (cpuhotplug_do_s) no longer affine to cpu1
 BUG: scheduling while atomic: cpuhotplug02.sh/1066/0x00000002
 Modules linked in: sch_fq_codel openvswitch nsh nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 fuse configfs
 Preemption disabled at:
 [<c0618998>] axxia_platform_cpu_kill+0x18/0x64
 CPU: 15 PID: 1066 Comm: cpuhotplug02.sh Tainted: G W 5.10.57-rt47-yocto-preempt-rt #1
 Hardware name: INTEL Axxia
 [<c060f7a4>] (unwind_backtrace) from [<c0609f94>] (show_stack+0x18/0x1c)
 [<c0609f94>] (show_stack) from [<c0dac3d0>] (dump_stack+0x7c/0x98)
 [<c0dac3d0>] (dump_stack) from [<c0643ce8>] (__schedule_bug+0xa0/0xd4)
 [<c0643ce8>] (__schedule_bug) from [<c0db378c>] (__schedule+0x54/0x5f8)
 [<c0db378c>] (__schedule) from [<c0db3dd8>] (schedule+0xa8/0x100)
 [<c0db3dd8>] (schedule) from [<c0db5d60>] (schedule_hrtimeout_range_clock+0xe4/0x120)
 [<c0db5d60>] (schedule_hrtimeout_range_clock) from [<c0db5dbc>] (schedule_hrtimeout_range+0x20/0x28)
 [<c0db5dbc>] (schedule_hrtimeout_range) from [<c0db58e4>] (usleep_range+0x70/0x94)
 [<c0db58e4>] (usleep_range) from [<c0618cb0>] (pm_cpu_shutdown+0x9c/0x104)
 [<c0618cb0>] (pm_cpu_shutdown) from [<c06189a0>] (axxia_platform_cpu_kill+0x20/0x64)
 [<c06189a0>] (axxia_platform_cpu_kill) from [<c060d114>] (__cpu_die+0x48/0x6c)
 [<c060d114>] (__cpu_die) from [<c061d748>] (takedown_cpu+0xac/0xd4)
 [<c061d748>] (takedown_cpu) from [<c061dfa4>] (cpuhp_invoke_callback+0x10c/0x310)
 [<c061dfa4>] (cpuhp_invoke_callback) from [<c0db226c>] (_cpu_down+0x114/0x1c0)
 [<c0db226c>] (_cpu_down) from [<c061f4cc>] (cpu_device_down+0x20/0x30)
 [<c061f4cc>] (cpu_device_down) from [<c0ac4de0>] (device_offline+0x6c/0xa0)
 [<c0ac4de0>] (device_offline) from [<c0ac4f14>] (online_store+0x84/0x94)
 [<c0ac4f14>] (online_store) from [<c07e786c>] (kernfs_fop_write_iter+0xe8/0x198)
 [<c07e786c>] (kernfs_fop_write_iter) from [<c075a888>] (vfs_write+0x198/0x1f0)
 [<c075a888>] (vfs_write) from [<c075b7ac>] (ksys_write+0x80/0xc8)
 [<c075b7ac>] (ksys_write) from [<c0600060>] (ret_fast_syscall+0x0/0x54)
 Exception stack(0xc38e7fa8 to 0xc38e7ff0)
 7fa0: 00000002 005807a0 00000001 005807a0 00000002 00000000
 7fc0: 00000002 005807a0 b6f10480 00000004 b6e9cc60 00000000 0054ac00 00000000
 7fe0: 00000004 bef13788 b6e32459 b6db3386
 ------------[ cut here ]------------

Steps to Reproduce

/lpg-build/cdc/fast_prod/WRL10_21/WRL10_21_GIT/wrlinux-10/setup.sh --machines=axxiaarm --templates feature/docker feature/kexec feature/kdump --distro wrlinux --accept-eula=yes --dl-layers

bitbake-layers add-layer /lpg-build/cdc/WASSP_LINUX_1021/testcases/wrlinux/wr-testing/kts-dev && echo require templates/feature/ltp/template.conf >> conf/local.conf

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

bitbake wrlinux-image-std

On tested board
Kernel command line: console=ttyAMA0,9600n8 root=/dev/nfs rw nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/24841/rootfs,v3,tcp ip=128.224.179.139:128.224.178.20:128.224.178.1:255.255.254.0:axm5500:eth0:off ignore_loglevel noinitrd selinux=0 enforcing=0 kmemleak=off crashkernel=256M@256M mem=4096M earlyprintk=serial,0x2010080000,9600

Run:
/opt/ltp/wrLinux_ltp/wr-runltp -f ltp_cpuhotplugs

Live chat
Online