Wind River Support Network

HomeDefectsOVP-261
Fixed

OVP-261 : [ovp-kvm] When booting guest using idle=mwait, generate call trace.

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

Description

boot guest
--------------------
taskset -c 3 /usr/bin/qemu-system-x86_64 -enable-kvm -m 2048 -cpu qemu64,+x2apic -smp 2,sockets=1,cores=2,threads=1 -name rt,process=rt-kvm -no-reboot -no-hpet -nographic -kernel /boot/guest.kernel -append "root=/dev/vda rw isolcpus=1 irqaffinity=0 clocksource=tsc tsc=perfect intel_idle.max_cstate=0 processor.max_cstate=1 idle=mwait highres=off selinux=0 enforcing=0 console=ttyS0 ip=10.0.2.3" -net nic,macaddr=de:ef:be:b4:25:21,model=virtio -net tap,script=/etc/qemu-ifup.tap -drive file=/boot/guest_raw.test,if=virtio,cache=none -vcpu 0,affinity=0x2,prio=0 -vcpu 1,affinity=0x4,prio=80 -mlock 

Key logs
--------------
vcpu 0: affinity 2 prio 0
vcpu 1: affinity 4 prio 80
Linux version 3.4.62-ovp-ga-rt77-WR5.0.1.0_preempt-rt (wr-taf@pek-lpgtest1) (gcc version 4.6.3 (Wind River Linux Sourcery CodeBench 4.6a-116) ) #1 SMP PREEMPT RT Sun Sep 22 15:07:37 CST 2013
Command line: root=/dev/vda rw isolcpus=1 irqaffinity=0 clocksource=tsc tsc=perfect intel_idle.max_cstate=0 processor.max_cstate=1 idle=mwait highres=on selinux=0 enforcing=0 console=ttyS0 ip=10.0.2.3
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007fffe000 (usable)
 BIOS-e820: 000000007fffe000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000feffc000 - 00000000ff000000 (reserved)
 BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
------------[ cut here ]------------
WARNING: at /buildarea2/ovp_build/BUILD/x86-64-kvm-guest-preempt-rt-ovp-guest-2013-09-22-14-37-28/guest_build/bitbake_build/tmp/work/x86_64_kvm_guest-wrs-linux/linux-windriver-3.4-r1/linux/arch/x86/kernel/process.c:724 idle_setup+0x8e/0xed()
"idle=mwait" will be removed in 2012
Modules linked in:
Pid: 0, comm: swapper Not tainted 3.4.62-ovp-ga-rt77-WR5.0.1.0_preempt-rt #1
Call Trace:
 [<ffffffff816bccd6>] ? idle_setup+0x8e/0xed
 [<ffffffff8102e87b>] ? warn_slowpath_common+0x7b/0xc0
 [<ffffffff8102e975>] ? warn_slowpath_fmt+0x45/0x50
 [<ffffffff816bafce>] ? sbf_init+0xe6/0xe6
 [<ffffffff816bccd6>] ? idle_setup+0x8e/0xed
 [<ffffffff816b53dd>] ? do_early_param+0x54/0x7d
 [<ffffffff81048137>] ? parse_args+0x227/0x340
 [<ffffffff816b55ac>] ? parse_early_options+0x25/0x2a
 [<ffffffff816b5389>] ? repair_env_string+0x57/0x57
 [<ffffffff816b55e0>] ? parse_early_param+0x2f/0x3c
 [<ffffffff816b8f4d>] ? setup_arch+0x3a5/0xb0e
 [<ffffffff814da759>] ? printk+0x43/0x48
 [<ffffffff816b5676>] ? start_kernel+0x87/0x377
 [<ffffffff816b5000>] ? 0xffffffff816b4fff
 [<ffffffff816b5000>] ? 0xffffffff816b4fff
 [<ffffffff816b5221>] ? x86_64_start_kernel+0xf1/0x100
---[ end trace 0000000000000001 ]---
NX (Execute Disable) protection: active
SMBIOS 2.4 present.
Hypervisor detected: KVM

Steps to Reproduce

build host
--enable-board=intel-xeon-core --enable-kernel=preempt-rt --enable-rootfs=ovp-kvm --enable-addons=wr-ovp --with-template=feature/rt-latency

build guest
--enable-board=x86-64-kvm-guest --enable-kernel=preempt-rt --enable-rootfs=ovp-guest --enable-addons=wr-ovp --with-template=feature/rt-latency

boot host
# cat /proc/cmdline
console=ttyS0,115200 ip=dhcp root=/dev/nfs nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/20994/rootfs rw ignore_loglevel rcu_nocbs=1-3 rcu_nocb_poll isolcpus=1-3 irqaffinity=0 intel_idle.max_cstate=0 processor.max_cstate=1 idle=poll tsc=perfect selinux=0 enforcing=0 highres=off kvm.allow_unsafe_assigned_interrupts=1
Live chat
Online