From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760065Ab2ERDe7 (ORCPT ); Thu, 17 May 2012 23:34:59 -0400 Received: from terminus.zytor.com ([198.137.202.10]:39936 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751795Ab2ERDe5 (ORCPT ); Thu, 17 May 2012 23:34:57 -0400 Message-ID: <4FB5C347.6010105@zytor.com> Date: Thu, 17 May 2012 20:34:31 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: "Yu, Fenghua" CC: "Siddha, Suresh B" , Ingo Molnar , "Luck, Tony" , Thomas Gleixner , Ingo Molnar , Linus Torvalds , Andrew Morton , "Mallick, Asit K" , Arjan Dan De Ven , "Brown, Len" , "Srivatssa S. Bhat" , Randy Dunlap , Chen Gong , linux-kernel , linux-pm , x86 , Peter Zijlstra Subject: Re: [PATCH v6 04/12] x86/smpboot.c: Don't offline CPU0 if any irq can not be migrated out of it and remove CPU0 check in smp_callin() References: <1336666614-21090-1-git-send-email-fenghua.yu@intel.com> <1336666614-21090-5-git-send-email-fenghua.yu@intel.com> <20120514121725.GA10840@gmail.com> <1337294829.1997.96.camel@sbsiddha-desk.sc.intel.com> <3E5A0FA7E9CA944F9D5414FEC6C71220077185AE@ORSMSX105.amr.corp.intel.com> In-Reply-To: <3E5A0FA7E9CA944F9D5414FEC6C71220077185AE@ORSMSX105.amr.corp.intel.com> X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/17/2012 06:47 PM, Yu, Fenghua wrote: > > Then booting up AP via INIT and putting AP online back via NMI/mwait > will have different wakeup method and code. We probably need a way to > tell if it is first AP bringup or online AP/BSP during run time. > > And if offlined CPU is not in mwait (e.g. CPU without mwait feature), > mwait based bringup won't work. Do we need to fall back to NMI wakeup > if offlined CPU is not in mwait? > I guess we need NMI (or just re-SIPI) in that case, since we're spinning in CLI; HLT... -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.