Wind River Support Network

HomeDefectsLIN5-5385
Fixed

LIN5-5385 : xilinx-zynq: another calltrace appeared when do cpu hotplug

Created: Jun 4, 2013    Updated: Mar 10, 2016
Resolved Date: Jun 8, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1,5.0.1.4
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: BSP - Async

Description

This calltrace is valid with enable common clk and cpu hotplug

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 /rt-verify-zynq/bitbake_build/tmp/work/xilinx_zynq-wrs-linux-gnueabi/linux-windriver-3.4-r0/linux/kernel/rtmutex.c:1165
in_atomic(): 1, irqs_disabled(): 128, pid: 0, name: swapper/1
[<800184f0>] (unwind_backtrace+0x0/0x104) from [<8059db40>] (dump_stack+0x20/0x24)
[<8059db40>] (dump_stack+0x20/0x24) from [<8005d178>] (__might_sleep+0x11c/0x120)
[<8005d178>] (__might_sleep+0x11c/0x120) from [<805a6b8c>] (rt_mutex_lock+0x2c/0x44)
[<805a6b8c>] (rt_mutex_lock+0x2c/0x44) from [<805a7200>] (_mutex_lock+0x18/0x1c)
[<805a7200>] (_mutex_lock+0x18/0x1c) from [<8047f4b8>] (clk_get_rate+0x24/0x60)
[<8047f4b8>] (clk_get_rate+0x24/0x60) from [<8059a154>] (twd_timer_setup+0x270/0x278)
[<8059a154>] (twd_timer_setup+0x270/0x278) from [<80599be4>] (percpu_timer_setup+0x78/0xbc)
[<80599be4>] (percpu_timer_setup+0x78/0xbc) from [<80599ecc>] (secondary_start_kernel+0x110/0x128)
[<80599ecc>] (secondary_start_kernel+0x110/0x128) from [<00599814>] (0x5 

Steps to Reproduce

0. build project as follows:
/lpg-build/cdc/sustaining/WR5014LX04/wrlinux-5/wrlinux/configure --enable-kernel=preempt_rt --enable-board=xilinx-zynq --enable-parallel-pkgbuilds=24 --enable-test --enable-rootfs=glibc-std --with-template=feature/kexec --with-layer=/wr-testing/kts,/wr-testing/bts
1. boot board with preempt_rt kernel
2. run cpu hotplug test

Other Downloads


Live chat
Online