Re: [WARN] offlining CPUs yields warning at arch/x86/kernel/smp.c:120

From: Manuel Lauss
Date: Thu Feb 02 2012 - 03:46:49 EST


On Thu, Feb 2, 2012 at 1:00 AM, Srivatsa S. Bhat
<srivatsa.bhat@xxxxxxxxxxxxxxxxxx> wrote:
> On 02/01/2012 07:53 PM, Manuel Lauss wrote:
>
>> Hello,
>>
>> When offlining/onlining CPUs the following warning is spat out repeatedly.
>> System is a 4-core+HT SandyBridge laptop.  Full dmesg below.
>>
>> CPU 7 is now offline
>> CPU 6 is now offline
>> CPU 5 is now offline
>> ------------[ cut here ]------------
>> WARNING: at /mnt/data/.src/linux.git/arch/x86/kernel/smp.c:120
>> update_process_times+0x65/0x80()
>> Hardware name: Precision M6600
>> Modules linked in:
>> Pid: 17, comm: migration/2 Not tainted 3.3.0-rc1-00473-g6bc2b95 #1
>> Call Trace:
>>  <IRQ>  [<ffffffff8104e5eb>] ? warn_slowpath_common+0x7b/0xc0
>>  [<ffffffff8108a000>] ? tick_nohz_handler+0xd0/0xd0
>>  [<ffffffff8105af45>] ? update_process_times+0x65/0x80
>>  [<ffffffff8108a05b>] ? tick_sched_timer+0x5b/0xb0
>>  [<ffffffff8106dc0e>] ? __run_hrtimer.isra.33+0x4e/0xe0
>>  [<ffffffff8106e3e0>] ? hrtimer_interrupt+0xe0/0x210
>>  [<ffffffff810a09e0>] ? queue_stop_cpus_work+0xf0/0xf0
>>  [<ffffffff8101c513>] ? smp_apic_timer_interrupt+0x63/0xa0
>>  [<ffffffff818acbcb>] ? apic_timer_interrupt+0x6b/0x70
>>  <EOI>  [<ffffffff810a0a6a>] ? stop_machine_cpu_stop+0x8a/0xb0
>>  [<ffffffff810a06f4>] ? cpu_stopper_thread+0xc4/0x190
>>  [<ffffffff81073e6e>] ? try_to_wake_up+0x1de/0x290
>>  [<ffffffff8107153f>] ? __wake_up_common+0x4f/0x80
>>  [<ffffffff810a0630>] ? cpu_stop_signal_done+0x30/0x30
>>  [<ffffffff81069ec5>] ? kthread+0x85/0x90
>>  [<ffffffff818ad294>] ? kernel_thread_helper+0x4/0x10
>>  [<ffffffff81069e40>] ? kthread_freezable_should_stop+0x60/0x60
>>  [<ffffffff818ad290>] ? gs_change+0xb/0xb
>> ---[ end trace 431db5dbf525be16 ]---
>> CPU 4 is now offline
>
>
> Hi,
>
> Try this patch:
> https://lkml.org/lkml/2012/1/19/463

That did the trick!

Thanks!
Manuel Lauss
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/