Wind River Support Network

HomeDefectsOVP-317
Fixed

OVP-317 : [ovp-kvm] When boot guest with 8cores, generate calltrace.

Created: Sep 16, 2013    Updated: Mar 11, 2016
Resolved Date: Oct 10, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.8
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Kernel

Description

Key logs
-----------------------------------
INFO: rcu_preempt detected stalls on CPUs/tasks:
	0: (0 ticks this GP) idle=c66/0/0 softirq=21/21 
	2: (82 GPs behind) idle=b3c/0/0 softirq=67/67 
	3: (213 GPs behind) idle=7fa/0/0 softirq=7/10 
	4: (213 GPs behind) idle=714/0/0 softirq=7/10 
	5: (98 GPs behind) idle=166/0/0 softirq=64/64 
	6: (107 GPs behind) idle=656/0/0 softirq=11/11 
	(detected by 1, t=21002 jiffies, g=18446744073709551534, c=18446744073709551533, q=5128)
Task dump for CPU 0:
swapper/0       R  running task        0     0      0 0x00000000
 ffffffff81c01e98 ffffffff81c00000 ffffffff81c01fd8 ffff88011fc12240
 ffff88011fc12250 0000000000000000 ffffffff81c01da8 ffffffff81c69450
 ffffffff81c00000 ffffffff81c01fd8 00000000ffffffff 0000000000000000
Call Trace:
 [<ffffffff8133dff8>] ? pm_idle_entry_callback+0x58/0x80
 [<ffffffff8165fdbd>] ? notifier_call_chain+0x4d/0x70
 [<ffffffff8165fe2f>] ? __atomic_notifier_call_chain+0x4f/0x70
 [<ffffffff810ba30a>] ? rcu_eqs_enter_common.isra.47+0x3a/0xf0
 [<ffffffff8150feca>] ? cpuidle_idle_call+0x2a/0x400
 [<ffffffff8100a5f5>] ? default_idle+0xc5/0x320
 [<ffffffff8100b95e>] ? cpu_idle+0xee/0x120
 [<ffffffff81637497>] ? rest_init+0x7b/0x84
 [<ffffffff81cc5bde>] ? start_kernel+0x39f/0x3ac
 [<ffffffff81cc563d>] ? repair_env_string+0x5a/0x5a
 [<ffffffff81cc532a>] ? x86_64_start_reservations+0x131/0x135
 [<ffffffff81cc5140>] ? early_idt_handlers+0x140/0x140
 [<ffffffff81cc5430>] ? x86_64_start_kernel+0x102/0x111
Task dump for CPU 2:
swapper/2       R  running task        0     0     15 0x00000000
 ffff88011f167ed8 ffff88011f166000 ffff88011f167fd8 ffff88011fc92240
 ffff88011fc92250 0000000000000000 ffff88011f167de8 ffffffff81c69450
 ffff88011f166000 ffff88011f167fd8 00000000ffffffff 0000000000000000

Steps to Reproduce

1) build host
--enable-board=intel-xeon-core --enable-kernel=preempt-rt --enable-rootfs=ovp-kvm --enable-addons=wr-ovp
2).build guest
--enable-board=x86-64-kvm-guest --enable-kernel=preempt-rt --enable-rootfs=ovp-guest --enable-addons=wr-ovp --with-layer=meta-webserver --with-template=feature/target-toolchain,feature/benchmark,feature/ovp-benchmark

3). boot host
# cat /proc/cmdline           
console=ttyS0,115200 ip=dhcp root=/dev/sda1 nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/21059/rootfs rw ignore_loglevel rcu_nocbs=1-3 rcu_nocb_poll isolcpus=1-3 irqaffinity=0 idle=poll tsc=perfect selinux=0 enforcing=0 highres=on kvm.allow_unsafe_assigned_interrupts=1

4).boot guest
taskset -c 3 /usr/bin/qemu-system-x86_64 \
-enable-kvm \
-m 4096 \
-smp 8 \
-name phoronix,process=rt_phoronix \
-no-reboot \
-nographic \
-no-hpet \
-kernel /boot/guest.kernel \
-append "root=/dev/vda rw console=ttyS0,115200 ip=dhcp selinux=0 enforcing=0" \
-drive file=/boot/guest_raw.img,if=virtio,cache=none \
-mlock

5). guest dmesg logs in attachments
Live chat
Online