Wind River Support Network

HomeDefectsLIN6-8766
Fixed

LIN6-8766 : intel-x86:cpu_hotplug_offline print call trace

Created: Nov 17, 2014    Updated: Dec 3, 2018
Resolved Date: Nov 17, 2014
Previous ID: LIN7-1799
Found In Version: 6.0
Fix Version: 6.0.0.15
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: BSP

Description

root@intel_shumway-3:/opt/wr-test/testcases/bts/cpu_hotplug_offline# echo 0 > /sys/devices/system/cpu/cpu1/online
BUG: sleeping function called from invalid context at /intel-x86-64/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.14-r0/linux/kernel/locking/rtmutex.c:905
in_atomic(): 1, irqs_disabled(): 1, pid: 18, name: migration/1
Preemption disabled at:[<ffffffff8107a11d>] smpboot_thread_fn+0x18d/0x2d0

CPU: 1 PID: 18 Comm: migration/1 Not tainted 3.14.22-rt9-WR7.0.0.0_preempt-rt #2
Hardware name: Intel Corporation SandyBridge Platform/To be filled by O.E.M., BIOS CCFRCLC0.019.1308201516 08/20/2013
 ffff880134600000 ffff8801345efbf0 ffffffff819ec0c5 0000000000000000
 ffff8801345efc08 ffffffff8107ed73 ffffffff81e07f80 ffff8801345efc20
 ffffffff819f2b10 ffffffff81e07f80 ffff8801345efc38 ffffffff819f2de0
Call Trace:
 [<ffffffff819ec0c5>] dump_stack+0x4e/0x7a
 [<ffffffff8107ed73>] __might_sleep+0xe3/0x160
 [<ffffffff819f2b10>] __rt_spin_lock+0x20/0x50
 [<ffffffff819f2de0>] rt_read_lock+0x30/0x40
 [<ffffffff819f2dfe>] rt_read_lock_irqsave+0xe/0x20
 [<ffffffff81183cf7>] find_and_get_object+0x27/0x140
 [<ffffffff811844f1>] delete_object_full+0x11/0x30
 [<ffffffff819e7f46>] kmemleak_free+0x26/0x50
 [<ffffffff81174db8>] kfree+0x118/0x200
 [<ffffffff8101ea9d>] ? intel_pmu_cpu_dying+0x6d/0x70
 [<ffffffff8101ea9d>] intel_pmu_cpu_dying+0x6d/0x70
 [<ffffffff81017a62>] x86_pmu_notifier+0x92/0x100
 [<ffffffff810775cd>] notifier_call_chain+0x4d/0x70
 [<ffffffff8107769e>] __raw_notifier_call_chain+0xe/0x10
 [<ffffffff8104d373>] cpu_notify+0x23/0x50
 [<ffffffff819e6a57>] take_cpu_down+0x27/0x40
 [<ffffffff810db769>] multi_cpu_stop+0xb9/0xe0
 [<ffffffff810db6b0>] ? wait_for_stop_done+0xb0/0xb0
 [<ffffffff810dbba2>] cpu_stopper_thread+0xc2/0x160
 [<ffffffff819f0706>] ? preempt_schedule+0x36/0x50
 [<ffffffff8100d246>] ? ___preempt_schedule+0x56/0xb0
 [<ffffffff81081cfd>] ? get_parent_ip+0xd/0x50
 [<ffffffff819f279d>] ? _raw_spin_lock_irqsave+0x1d/0x70
 [<ffffffff8107a11d>] smpboot_thread_fn+0x18d/0x2d0
 [<ffffffff819f0320>] ? schedule+0x30/0xa0
 [<ffffffff81079f90>] ? SyS_setgroups+0x180/0x180
 [<ffffffff810725cd>] kthread+0xcd/0xf0
 [<ffffffff81072500>] ? flush_kthread_worker+0x90/0x90
 [<ffffffff819f3c2c>] ret_from_fork+0x7c/0xb0
 [<ffffffff81072500>] ? flush_kthread_worker+0x90/0x90
kvm: disabling virtualization on CPU1
smpboot: CPU 1 is now offline
[ 1330.591411] BUG: sleeping function called from invalid context at /intel-x86-64/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.14-r0/linux/kernel/locking/rtmutex.c:905
[ 1330.591413] in_atomic(): 1, irqs_disabled(): 1, pid: 18, name: migration/1
[ 1330.591425] Preemption disabled at:[<ffffffff8107a11d>] smpboot_thread_fn+0x18d/0x2d0

[ 1330.591431] CPU: 1 PID: 18 Comm: migration/1 Not tainted 3.14.22-rt9-WR7.0.0.0_preempt-rt #2
[ 1330.591434] Hardware name: Intel Corporation SandyBridge Platform/To be filled by O.E.M., BIOS CCFRCLC0.019.1308201516 08/20/2013
[ 1330.591439]  ffff880134600000 ffff8801345efbf0 ffffffff819ec0c5 0000000000000000
[ 1330.591442]  ffff8801345efc08 ffffffff8107ed73 ffffffff81e07f80 ffff8801345efc20
[ 1330.591446]  ffffffff819f2b10 ffffffff81e07f80 ffff8801345efc38 ffffffff819f2de0
[ 1330.591447] Call Trace:
[ 1330.591453]  [<ffffffff819ec0c5>] dump_stack+0x4e/0x7a
[ 1330.591459]  [<ffffffff8107ed73>] __might_sleep+0xe3/0x160
[ 1330.591465]  [<ffffffff819f2b10>] __rt_spin_lock+0x20/0x50
[ 1330.591469]  [<ffffffff819f2de0>] rt_read_lock+0x30/0x40
[ 1330.591474]  [<ffffffff819f2dfe>] rt_read_lock_irqsave+0xe/0x20
[ 1330.591479]  [<ffffffff81183cf7>] find_and_get_object+0x27/0x140
[ 1330.591483]  [<ffffffff811844f1>] delete_object_full+0x11/0x30
[ 1330.591490]  [<ffffffff819e7f46>] kmemleak_free+0x26/0x50
[ 1330.591494]  [<ffffffff81174db8>] kfree+0x118/0x200
[ 1330.591499]  [<ffffffff8101ea9d>] ? intel_pmu_cpu_dying+0x6d/0x70
[ 1330.591503]  [<ffffffff8101ea9d>] intel_pmu_cpu_dying+0x6d/0x70
[ 1330.591508]  [<ffffffff81017a62>] x86_pmu_notifier+0x92/0x100
[ 1330.591512]  [<ffffffff810775cd>] notifier_call_chain+0x4d/0x70
[ 1330.59151kvm: disabling virtualization on CPU2
smpboot: CPU 2 is now offline
5]  [<ffffffff8107769e>] __raw_notifier_call_chain+0xe/0x10
[ 1330.591521]  [<ffffffff8104d373>] cpu_notify+0x23/0x50
[ 1330.591525]  [<ffffffff819e6a57>] take_cpu_down+0x27/0x40
[ 1330.591531]  [<ffffffff810db769>] multi_cpu_stop+0xb9/0xe0
[ 1330.591535]  [<ffffffff810db6b0>] ? wait_for_stop_done+0xb0/0xb0
[ 1330.591539]  [<ffffffff810dbba2>] cpu_stopper_thread+0xc2/0x160
[ 1330.591543]  [<ffffffff819f0706>] ? preempt_schedule+0x36/0x50
[ 1330.591549]  [<ffffffff8100d246>] ? ___preempt_schedule+0x56/0xb0
[ 1330.591555]  [<ffffffff81081cfd>] ? get_parent_ip+0xd/0x50
[ 1330.591559]  [<ffffffff819f279d>] ? _raw_spin_lock_irqsave+0x1d/0x70
[ 1330.591564]  [<ffffffff8107a11d>] smpboot_thread_fn+0x18d/0x2d0
[ 1330.591568]  [<ffffffff819f0320>] ? schedule+0x30/0xa0
[ 1330.591572]  [<ffffffff81079f90>] ? SyS_setgroups+0x180/0x180
[ 1330.591577]  [<ffffffff810725cd>] kthread+0xcd/0xf0
[ 1330.591582]  [<ffffffff81072500>] ? flush_kthread_worker+0x90/0x90
[ 1330.591587]  [<ffffffff819f3c2c>] ret_from_fork+0x7c/0xb0
[ 1330.591592]  [<ffffffff81072500>] ? flush_kthread_worker+0x90/0x90
[ 1330.591620] kvm: disabling virtualization on CPU1
[ 1330.591706] smpboot: CPU 1 is now offline

Steps to Reproduce

enable kmemleak, 

Project Configure Line:
# Generated by wrlinux configure at Wed Oct 29 15:46:33 CST 2014
/wrlinux-7/wrlinux/configure --enable-board=intel-x86-64 --enable-kernel=preempt-rt --enable-rootfs=glibc-std-sato --enable-test=yes --enable-parallel-pkgbuilds=30 --enable-jobs=30 --with-layer=/wrlinux-new/wr-testing/bts-dev,wr-dpdk --with-template=feature/bts,feature/target-toolchain --enable-reconfig=yes --with-rcpl-version=0

Kernel Boot Parameter:
root@intel_shumway-3:/opt/wr-test/testcases/bts/cpu_hotplug_offline# cat /proc/cmdline
console=ttyS0,115200 root=/dev/nfs nfsroot=128.224.165.20:/export/pxeboot/vlm-boards/22026/rootfs rw ip=dhcp pnpacpi=off iommu=on

echo 0 > /sys/devices/system/cpu/cpu1/online

Other Downloads


Live chat
Online