Not to be fixed
Created: Mar 19, 2013
Updated: Feb 23, 2018
Resolved Date: Feb 22, 2018
Previous ID: LIN5-4778, LIN6-2906
Found In Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: BSP - Async
When testing cpu_hotplug on the preempt-rt kernel, call trace are triggred:
root@localhost:# echo 0 > /sys/devices/system/cpu/cpu1/online
CPU1: shutdown
root@localhost:# echo 1 > /sys/devices/system/cpu/cpu1/online
CPU1: Booted secondary processor
BUG: sleeping function called from invalid context at /build-5.0/arm-coretile-express-a15-a7_rt/bitbake_build/t
mp/work/arm_coretile_express_a15_a7-wrs-linux-gnueabi/linux-windriver-3.4-r0/linux/kernel/rtmutex.c:658
in_atomic(): 1, irqs_disabled(): 128, pid: 0, name: swapper/1
[<c00179a4>] (unwind_backtrace+0x0/0x104) from [<c0580064>] (dump_stack+0x20/0x24)
[<c0580064>] (dump_stack+0x20/0x24) from [<c005b744>] (__might_sleep+0x11c/0x120)
[<c005b744>] (__might_sleep+0x11c/0x120) from [<c05893ac>] (rt_spin_lock+0x2c/0x38)
[<c05893ac>] (rt_spin_lock+0x2c/0x38) from [<c005e150>] (complete+0x2c/0x68)
[<c005e150>] (complete+0x2c/0x68) from [<c057c678>] (secondary_start_kernel+0x108/0x120)
[<c057c678>] (secondary_start_kernel+0x108/0x120) from [<c0022190>] (platform_cpu_die+0x28/0xbc)
CPU1: Unknown IPI message 0x1
CPUFreq for CPU 1 initialized
1. configure the project with kexec support and preempt-rt kernel
/lpg-build/cdc/fast_prod/wrlinux501/dvd_install/lx07_12sp_5011/wrlinux-5/wrlinux/configure --enable-board=arm-coretile-express-a15-a7 --enable-rootfs=glibc_std --enable-kernel=preempt-rt --enable-jobs=8 --enable-parallel-pkgbuilds=4 --with-layer=/build-5.0/wr-testing/kts,/build-5.0/wr-testing/bts --enable-test=yes
2. build the kernel
3. boot the board with the kernel
4. execute following commands on target console:
# echo 0 > /sys/devices/system/cpu/cpu1/online
# echo 1 > /sys/devices/system/cpu/cpu1/online