linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Preserve ACPI NVS region over S3
@ 2010-05-28 20:19 Maxim Levitsky
  2010-05-28 20:22 ` [PATCH 1/2] ACPI: Save/Restore NVS area on suspend/resume too Maxim Levitsky
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Maxim Levitsky @ 2010-05-28 20:19 UTC (permalink / raw)
  To: linux-acpi@vger.kernel.org; +Cc: linux-pm, Matthew Garrett, Rafael J. Wysocki

Hi,

I finally managed, to make S3 work.
The short story is that BIOS contains a bug, but it doesn't trip over it
due to windows non-conformance to ACPI.

The long story is that ACPI spec allows BIOS to declare a memory region
as a NVS (non volatile storage), and spec expects us to preserve it over
S4.

Linux does that, but now we know that windows does restore this region
over S3 too.

On my system BIOS changes this region slightly after a resume from S3,
and if S3 is attempted again, it hangs early before passing control to
linux.

The first patch (written by Matthew Garrett) makes this change.

I also add a patch that needs quite a lot of massage to apply after this
one, and somehow fell through the cracks. This patch fixes rare hang of
resume from disk. I rebased it on top of first patch.

Now, finally, after 2 years, both suspend & hibernate work reliably on
my laptop.

And thanks again for Matthew Garrett for verifying that indeed Windows
saves/restores the NVS region over S3.

Please let me know what you think.

Best regards,
Maxim Levitsky


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

end of thread, other threads:[~2010-06-22 15:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-28 20:19 Preserve ACPI NVS region over S3 Maxim Levitsky
2010-05-28 20:22 ` [PATCH 1/2] ACPI: Save/Restore NVS area on suspend/resume too Maxim Levitsky
2010-06-21 15:53   ` [linux-pm] " Pavel Machek
2010-06-22 12:06     ` Matthew Garrett
2010-06-22 15:19     ` Maxim Levitsky
2010-05-28 20:22 ` [PATCH 2/2] ACPI / EC / PM: Fix race between EC transactions and system suspend Maxim Levitsky
2010-05-28 20:25 ` Preserve ACPI NVS region over S3 Matthew Garrett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).