From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751958Ab2ALMbn (ORCPT ); Thu, 12 Jan 2012 07:31:43 -0500 Received: from mail-we0-f174.google.com ([74.125.82.174]:65497 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751077Ab2ALMbl (ORCPT ); Thu, 12 Jan 2012 07:31:41 -0500 MIME-Version: 1.0 In-Reply-To: <1326301493-28760-9-git-send-email-fenghua.yu@intel.com> References: <1326301493-28760-1-git-send-email-fenghua.yu@intel.com> <1326301493-28760-9-git-send-email-fenghua.yu@intel.com> Date: Thu, 12 Jan 2012 07:31:40 -0500 Message-ID: Subject: Re: [PATCH v5 08/12] x86/smpboot.c: Wake up CPU0 via NMI instead of INITs From: Brian Gerst To: Fenghua Yu Cc: Ingo Molnar , Thomas Gleixner , H Peter Anvin , Linus Torvalds , Andrew Morton , Asit K Mallick , Tony Luck , Arjan van de Ven , Suresh B Siddha , Len Brown , Randy Dunlap , "Srivatsa S. Bhat" , Konrad Rzeszutek Wilk , Peter Zijlstra , Chen Gong , linux-kernel , linux-pm , x86 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 11, 2012 at 12:04 PM, Fenghua Yu wrote: > From: Fenghua Yu > > Instead of waiting for STARTUP after INITs, BSP will execute > the BIOS boot-strap code which is not a desired behavior for > waking up BSP. To avoid the boot-strap code, wake up CPU0 by > NMI instead. > > This works to wake up soft offlined CPU0 only. If CPU0 is hard offlined (i.e. > physically hot removed and then hot added), NMI won't wake it up. We'll change > this code in the future to wake up hard offlined CPU0 if real platform and > request are available. > > AP is still waken up as before by INIT, INIT, STARTUP sequence. Would clearing IA32_APIC_BASE_MSR.BSP avoid calling the BIOS code when the cpu is brought back online? Setting that flag in another cpu that is still online might also allow suspend/resume to work. -- Brian Gerst