public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Maxim Levitsky <maximlevitsky@gmail.com>
To: Matthew Garrett <mjg@redhat.com>
Cc: lenb@kernel.org, linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org
Subject: Re: [PATCH 2/2] ACPI: Store NVS state even when entering suspend to RAM
Date: Sun, 30 May 2010 17:40:04 +0300	[thread overview]
Message-ID: <1275230404.14907.11.camel@maxim-laptop> (raw)
In-Reply-To: <1275078735-1866-2-git-send-email-mjg@redhat.com>

On Fri, 2010-05-28 at 16:32 -0400, Matthew Garrett wrote: 
> https://bugzilla.kernel.org/show_bug.cgi?id=13931 describes a bug where
> a system fails to successfully resume after the second suspend. Maxim
> Levitsky discovered that this could be rectified by forcibly saving
> and restoring the ACPI non-volatile state. The spec indicates that this
> is only required for S4, but testing the behaviour of Windows by adding
> an ACPI NVS region to qemu's e820 map and registering a custom memory
> read/write handler reveals that it's saved and restored even over suspend
> to RAM. We should mimic that behaviour to avoid other broken platforms.
> 
> Signed-off-by: Matthew Garrett <mjg@redhat.com>
> ---
>  drivers/acpi/sleep.c |   21 +++++++++++++--------
>  1 files changed, 13 insertions(+), 8 deletions(-)
> 
> diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
> index d3cbc55..18aa074 100644
> --- a/drivers/acpi/sleep.c
> +++ b/drivers/acpi/sleep.c
> @@ -128,6 +128,8 @@ static int __acpi_pm_prepare(void)
>  {
>  	int error = acpi_sleep_prepare(acpi_target_sleep_state);


Just one note, I am sure somebody will ask for s3_no_nvs option, just
like s4_no_nvs.

Also this needs to be rebased, like the first patch.

Best regards,
Maxim Levitsky


  reply	other threads:[~2010-05-30 14:40 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-28 20:32 [PATCH 1/2] suspend: Move NVS save/restore code to generic suspend functionality Matthew Garrett
2010-05-28 20:32 ` [PATCH 2/2] ACPI: Store NVS state even when entering suspend to RAM Matthew Garrett
2010-05-30 14:40   ` Maxim Levitsky [this message]
2010-05-30 14:51     ` Matthew Garrett
2010-06-02  3:32       ` Henrique de Moraes Holschuh
2010-06-02 10:15         ` Maxim Levitsky
2010-06-02 11:47         ` Matthew Garrett
2010-06-02 13:06           ` Maxim Levitsky
2010-06-04 18:23   ` Len Brown
2010-06-10  9:41   ` Maxim Levitsky
2010-05-30 14:37 ` [PATCH 1/2] suspend: Move NVS save/restore code to generic suspend functionality Maxim Levitsky
2010-06-04 19:11   ` Len Brown
2010-06-04 21:27     ` Maxim Levitsky
2010-06-04 21:30       ` Maxim Levitsky
2010-06-05 15:28     ` Maxim Levitsky
2010-06-10 15:11       ` Len Brown
2010-06-10 15:21         ` Maxim Levitsky
2010-06-04 18:22 ` Len Brown
2010-06-04 21:48   ` Rafael J. Wysocki
  -- strict thread matches above, loose matches on Subject: below --
2010-06-01 18:19 [PATCH] Store BIOS NVS area over s2ram [V2] Maxim Levitsky
2010-06-01 18:22 ` [PATCH 2/2] ACPI: Store NVS state even when entering suspend to RAM Maxim Levitsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1275230404.14907.11.camel@maxim-laptop \
    --to=maximlevitsky@gmail.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mjg@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox