[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20111206085816.GA11116@elte.hu>
Date: Tue, 6 Dec 2011 09:58:16 +0100
From: Ingo Molnar <mingo@...e.hu>
To: Fenghua Yu <fenghua.yu@...el.com>,
"Rafael J. Wysocki" <rjw@...k.pl>
Cc: Thomas Gleixner <tglx@...utronix.de>,
H Peter Anvin <hpa@...or.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Tony Luck <tony.luck@...el.com>,
Arjan van de Ven <arjan.van.de.ven@...el.com>,
Suresh B Siddha <suresh.b.siddha@...el.com>,
Len Brown <len.brown@...el.com>,
Randy Dunlap <rdunlap@...otime.net>,
"Srivatsa S. Bhat" <srivatsa.bhat@...ux.vnet.ibm.com>,
Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
Peter Zijlstra <peterz@...radead.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
linux-pm <linux-pm@...r.kernel.org>, x86 <x86@...nel.org>
Subject: Re: [PATCH v4 0/7] x86: BSP or CPU0 online/offline
* Ingo Molnar <mingo@...e.hu> wrote:
> Secondly, and more importantly, is there *any* hardware in
> existence that has a BIOS that can suspend/resume successfully
> with BSP offlined? If such hardware exists then we need to
> support it properly - initially perhaps by whitelisting such
> systems.
I suspect the answer to that is 'no' - as resume is really just
a fresh bootup of the physical CPU and BIOSen just start on the
boot CPU, no questions asked.
So the right approach there would be to detect the case where we
boot up back from S2RAM resume on an offlined CPU (the BSP is
really just one of the possibilities - in theory a S2RAM resume
could boot back up on any of the APs as well) - the resume code
should move off that CPU ASAP and keep that CPU offlined.
But the hibernation angle should be considered. Hibernation
already has to deal with the case where someone physically
unplugs a CPU and then resumes from the disk image, right? How
does the hibernation code handle that case currently?
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists