From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Marcus Better <marcus@better.se>
Cc: Johannes Berg <johannes@sipsolutions.net>,
linux-pm@lists.linux-foundation.org,
Andrew Morton <akpm@linux-foundation.org>,
Pavel Machek <pavel@ucw.cz>
Subject: Re: 2.6.21 suspend-to-disk regression
Date: Thu, 3 May 2007 15:06:27 +0200 [thread overview]
Message-ID: <200705031506.28559.rjw@sisk.pl> (raw)
In-Reply-To: <200705031341.05023.marcus@better.se>
On Thursday, 3 May 2007 13:41, Marcus Better wrote:
> Rafael J. Wysocki wrote:
> > Could you please test the appended patch instead of the previous one?
>
> It doesn't work. The suspend LED flashed for a while but the screen was blank
> and didn't show any messages. It powered down after a while, without writing
> anything to disk.
Hmm, perhaps we should do something more, like the following:
drivers/acpi/hardware/hwsleep.c | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
Index: linux-2.6.21/drivers/acpi/hardware/hwsleep.c
===================================================================
--- linux-2.6.21.orig/drivers/acpi/hardware/hwsleep.c 2007-04-26 05:08:32.000000000 +0200
+++ linux-2.6.21/drivers/acpi/hardware/hwsleep.c 2007-05-03 12:57:22.000000000 +0200
@@ -193,18 +193,13 @@ acpi_status acpi_enter_sleep_state_prep(
arg.type = ACPI_TYPE_INTEGER;
arg.integer.value = sleep_state;
- /* Run the _PTS and _GTS methods */
+ /* Run the _PTS method */
status = acpi_evaluate_object(NULL, METHOD_NAME__PTS, &arg_list, NULL);
if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) {
return_ACPI_STATUS(status);
}
- status = acpi_evaluate_object(NULL, METHOD_NAME__GTS, &arg_list, NULL);
- if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) {
- return_ACPI_STATUS(status);
- }
-
/* Setup the argument to _SST */
switch (sleep_state) {
@@ -266,6 +261,8 @@ acpi_status asmlinkage acpi_enter_sleep_
u32 PM1Bcontrol;
struct acpi_bit_register_info *sleep_type_reg_info;
struct acpi_bit_register_info *sleep_enable_reg_info;
+ struct acpi_object_list arg_list;
+ union acpi_object arg;
u32 in_value;
acpi_status status;
@@ -312,6 +309,19 @@ acpi_status asmlinkage acpi_enter_sleep_
return_ACPI_STATUS(status);
}
+ /* Execute the _GTS method */
+
+ arg.type = ACPI_TYPE_INTEGER;
+ arg.integer.value = sleep_state;
+
+ arg_list.count = 1;
+ arg_list.pointer = &arg;
+
+ status = acpi_evaluate_object(NULL, METHOD_NAME__GTS, &arg_list, NULL);
+ if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) {
+ return_ACPI_STATUS(status);
+ }
+
/* Get current value of PM1A control */
status = acpi_hw_register_read(ACPI_MTX_DO_NOT_LOCK,
next prev parent reply other threads:[~2007-05-03 13:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-29 14:22 2.6.21 suspend-to-disk regression Marcus Better
2007-04-29 16:32 ` Rafael J. Wysocki
2007-04-30 6:58 ` Marcus Better
2007-04-30 8:11 ` Marcus Better
2007-04-30 12:34 ` Marcus Better
2007-04-30 14:21 ` Rafael J. Wysocki
2007-04-30 14:21 ` Johannes Berg
2007-05-02 9:20 ` Pavel Machek
2007-05-02 11:41 ` Marcus Better
2007-05-03 8:06 ` Rafael J. Wysocki
2007-05-03 11:41 ` Marcus Better
2007-05-03 13:06 ` Rafael J. Wysocki [this message]
2007-05-03 18:08 ` Marcus Better
2007-05-03 18:34 ` Rafael J. Wysocki
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=200705031506.28559.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=akpm@linux-foundation.org \
--cc=johannes@sipsolutions.net \
--cc=linux-pm@lists.linux-foundation.org \
--cc=marcus@better.se \
--cc=pavel@ucw.cz \
/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