From: Willy Tarreau <willy@w.ods.org>
To: Aschwin Marsman <a.marsman@aYniK.com>
Cc: Marcelo Tosatti <marcelo@conectiva.com.br>,
lkml <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.4.22-pre4
Date: Thu, 10 Jul 2003 09:58:50 +0200 [thread overview]
Message-ID: <20030710075850.GA20790@alpha.home.local> (raw)
In-Reply-To: <Pine.LNX.4.44.0307100717570.18695-100000@localhost.localdomain>
Hi !
On Thu, Jul 10, 2003 at 07:23:32AM +0200, Aschwin Marsman wrote:
> On Wed, 9 Jul 2003, Marcelo Tosatti wrote:
>
> > Hi,
> >
> > Here goes -pre4. It contains a lot of updates and fixes.
> >
> > We decided to include this new code quota code which allows usage of
> > quotas with 32bit UID/GIDs.
> >
> > Most Toshibas should work now due to an important ACPI fix.
> >
> > Please help and test.
>
> I use -pre3 with succes, only power down is currently not working
> (only the discs shutdown, no real poweroff). That's why I disabled
> apm and enabled apm in the kernel with -pre4, but that gives:
I remember having had problems with ACPI because my power off didn't work.
After reading through the code, I noticed that due to erroneous comparisons,
some code path would never be executed, and/or some preparatory work before
entering S5 would be done twice, or could not recover from error, I don't
recall exactly. So I sent the two patches below to the acpi-devel list twice,
but never got any reply.
I don't even know if they still apply, but you can try them anyway, they're
simple.
If I recall correctly, the first one should be enough to poweroff with a simple
"echo 5 > /proc/acpi/sleep", while the second one allows the system to use this
for poweroff.
Cheers,
Willy
--- ./drivers/acpi/system.c-orig Tue Apr 29 17:39:34 2003
+++ ./drivers/acpi/system.c Tue Apr 29 19:08:09 2003
@@ -180,7 +180,7 @@
return AE_ERROR;
}
- if (state < ACPI_STATE_S5) {
+ if (state <= ACPI_STATE_S5) {
/* Tell devices to stop I/O and actually save their state.
* It is theoretically possible that something could fail,
* so handle that gracefully..
@@ -277,6 +277,7 @@
switch (state) {
case ACPI_STATE_S1:
+ case ACPI_STATE_S5:
barrier();
status = acpi_enter_sleep_state(state);
break;
--- ./drivers/acpi/system.c-orig Tue Apr 29 19:09:19 2003
+++ ./drivers/acpi/system.c Tue Apr 29 19:36:08 2003
@@ -90,9 +90,7 @@
static void
acpi_power_off (void)
{
- acpi_enter_sleep_state_prep(ACPI_STATE_S5);
- ACPI_DISABLE_IRQS();
- acpi_enter_sleep_state(ACPI_STATE_S5);
+ acpi_suspend(ACPI_STATE_S5);
}
#endif /*CONFIG_PM*/
next prev parent reply other threads:[~2003-07-10 8:07 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-09 22:24 Marcelo Tosatti
2003-07-09 22:48 ` J.A. Magallon
2003-07-09 22:56 ` Herbert Pötzl
2003-07-09 22:51 ` Alex Romosan
2003-07-10 0:02 ` -pre4 fixed on ftp.kernel.org " Marcelo Tosatti
2003-07-09 23:04 ` Onur Kucuk
2003-07-09 23:13 ` [PATCH] do_generic_direct_write: bad flag check J.A. Magallon
2003-07-10 3:29 ` Marcelo Tosatti
2003-07-10 3:48 ` Daniel
2003-07-10 0:03 ` Linux 2.4.22-pre4 J.A. Magallon
2003-07-10 0:29 ` [PATCH] hfsplus: group Apple FS's and help text J.A. Magallon
2003-07-10 0:36 ` J.A. Magallon
2003-07-10 5:23 ` Linux 2.4.22-pre4 Aschwin Marsman
2003-07-10 7:58 ` Willy Tarreau [this message]
2003-07-10 15:51 ` compile warnings Rafał 'rmrmg' Roszak
2003-07-10 22:26 ` Diego Calleja García
2003-07-11 0:18 ` Rafał 'rmrmg' Roszak
2003-07-29 14:08 ` 2.4.22-pre4: devfs on initrd stays busy after pivot_root Andreas Haumer
2003-07-29 14:16 ` Alan Cox
2003-07-29 14:54 ` Herbert Pötzl
2003-07-30 9:54 ` Andreas Haumer
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=20030710075850.GA20790@alpha.home.local \
--to=willy@w.ods.org \
--cc=a.marsman@aYniK.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
/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
all inboxes | Powered by JetHome®