public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/6] S3 SMP support with physcial CPU hotplug
@ 2005-04-04  2:05 Li Shaohua
  2005-04-04  2:37 ` Andrew Morton
  0 siblings, 1 reply; 16+ messages in thread
From: Li Shaohua @ 2005-04-04  2:05 UTC (permalink / raw)
  To: lkml, ACPI-DEV; +Cc: Zwane Mwaikambo, Len Brown, Pavel Machek

Hi,
The following 6 patches try to add suspend-to-ram (or S3) SMP support
for IA32. It's for support HT based system suspend/resume currently and
most of the code are also useful for physical CPU hotplug.

In a SMP system, after S3 resume, the BP is starting to execute the ACPI
wakeup address just like the UP case. And the APs possibly are in a
BIOS's busy loop. This just looks like the boot time case, we must use a
SIPI circle to wakeup the APs.

We uses the CPU hotplug infrastructure. In order to reuse the SMP boot
code, we clean up all CPU states after the CPU is dead, including its
idle thread, runqueue and other CPU states. Since the CPU is in idle
thread before suspend, we don't require to save and restore after resume
most of the CPU states.

Now the sequences of S3 are:
1. hotremove all APs, put them into idle thread.
2. follow UP S3 code path.
3. warm boot all APs.
4. UP all APs.

The patches are against 2.6.11-rc1 with Zwane's CPU hotplug patch in -mm
tree. To test the SMP S3, please don't enable MTRR driver (it's SMP
broken for Suspend/resume). And please kill syslogd, there is a bug in
the sususpend/resume refrigerator mechanism, which can be fixed by
swsusp2 refrigerator.
I'm looking forward to your comments. Thanks in advance!

Thanks,
Shaohua


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2005-04-04 19:40 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-04  2:05 [RFC 0/6] S3 SMP support with physcial CPU hotplug Li Shaohua
2005-04-04  2:37 ` Andrew Morton
2005-04-04  2:42   ` Li Shaohua
2005-04-04  2:48     ` Andrew Morton
2005-04-04  2:49       ` Li Shaohua
2005-04-04  8:01         ` [ACPI] " Nigel Cunningham
2005-04-04  8:44           ` Li Shaohua
2005-04-04  9:10             ` Pavel Machek
2005-04-04  9:24               ` Li Shaohua
2005-04-04  9:32                 ` Pavel Machek
2005-04-04  9:55                 ` Nigel Cunningham
2005-04-04  8:44   ` Pavel Machek
2005-04-04  9:54   ` [ACPI] " Nigel Cunningham
2005-04-04 11:31     ` Pavel Machek
2005-04-04 11:46       ` Nigel Cunningham
2005-04-04 19:42       ` Zwane Mwaikambo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox