S4Bios support for 2.4.20 + acpi-20021205
PATCH 1/1 S4Bios support for 2.4.20 + acpi-20021205
Patch for 2.4.20 and acpi-20021205 for adding s4bios feature.
Cheers,
Signature · 4 lines
Ducrot Bruno -- Which is worse: ignorance or apathy? -- Don't know. Don't care.
arch/i386/kernel/acpi.c | 17 ++ drivers/acpi/hardware/hwsleep.c | 52 ++++++++ drivers/acpi/system.c | 235 ++++++++++++++++++++++++++++++++++++++-- include/asm-i386/acpi.h | 24 +++- include/asm-i386/save_state.h | 219 +++++++++++++++++++++++++++++++++++++ 5 files changed, 537 insertions(+), 10 deletions(-)
include/asm-i386/acpi.h +23 -1
@@ -3,7 +3,7 @@* * Copyright (C) 2001 Paul Diefenbaugh <[email protected]> * Copyright (C) 2001 Patrick Mochel <[email protected]> -* +* * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * This program is free software; you can redistribute it and/or modify
@@ -128,12 +128,34 @@#ifdef CONFIG_ACPI_SLEEP +extern unsigned long saved_eip; +extern unsigned long saved_esp; +extern unsigned long saved_ebp; +extern unsigned long saved_ebx; +extern unsigned long saved_esi; +extern unsigned long saved_edi; + +static inline void acpi_save_register_state (unsigned long return_point) +{ + saved_eip = return_point; + asmvolatile ("movl %%esp,(%0)" :"=m" (saved_esp)); + asmvolatile ("movl %%ebp,(%0)" :"=m" (saved_ebp)); + asmvolatile ("movl %%ebx,(%0)" :"=m" (saved_ebx)); + asmvolatile ("movl %%edi,(%0)" :"=m" (saved_edi)); + asmvolatile ("movl %%esi,(%0)" :"=m" (saved_esi)); +} + +#define acpi_restore_register_state () do {} while (0) + +/* routines for saving/restoring kernel state */ extern int acpi_save_state_mem (void );extern int acpi_save_state_disk (void );extern void acpi_restore_state_mem (void );extern unsigned long acpi_wakeup_address; + +extern void do_suspend_lowlevel_s4bios (int resume);/* early initialization routine */ extern void acpi_reserve_bootmem (void );
include/asm-i386/save_state.h new file +219 -0
219 lines not on this page · raw message
drivers/acpi/hardware/hwsleep.c +49 -3
70 lines not on this page · raw message
drivers/acpi/system.c +229 -6
294 lines not on this page · raw message
arch/i386/kernel/acpi.c +17 -0
@@ -42,6 +42,8 @@#include <asm/pgtable.h> #include <asm/pgalloc.h> #include <asm/io_apic.h> +#include <asm/acpi.h> +#include <asm/save_state.h> #define PREFIX "ACPI: "
@@ -559,6 +561,21 @@ acpi_wakeup_address = (unsigned long )alloc_bootmem_low (PAGE_SIZE ); printk(KERN_DEBUG "ACPI: have wakeup address 0x%8.8lx\n", acpi_wakeup_address); } + +void do_suspend_lowlevel_s4bios (int resume) +{ +if (!resume) { +printk ("Saving CPU context...\n" ); +save_processor_context (); +acpi_save_register_state ((unsigned long )&&acpi_sleep_done); +acpi_enter_sleep_state_s4bios (); +return ; + } +acpi_sleep_done: +restore_processor_context (); +printk ("CPU context restored...\n" ); +} +#endif /*CONFIG_ACPI_SLEEP*/
A message that is not in the archive (sent off-list or not yet received): 20021213155309.GG4327-j6u/t2rXLliUoIHC/UFpr9i2O/[email protected]
Quoted 1 line · On Fri, 13 Dec 2002 16:53:09 +0100 Ducrot Bruno…
Patch for 2.4.20 and acpi-20021205 for adding s4bios feature.
Hey, that sounds great!
Just a little question: How do I use it :)
Don't think I am stupid...
I know that a echo 1 > /proc/acpi/sleep should do the trick, i.e. suspend to disk. But how do I configure that suspend partition? Or where does it suspend? I know for Phoenix BIOSes there is a tool on the net to create that partition. I have a Asus L3800C notebook which has AFAIK an AWARD BIOS. And AFAIK there is no tool available from ASUS or AWARD to create such a partition.
But I want to suspend!
Grmpf...
Any idea?
Help?
BTW: This is great work! Using BIOS S4 should be included into standard ACPI code and maybe made an option so that swsusp can be used in parallel...
Anyway, great and thanks!
Quoted 2 lines
Cheers,
Ducrot Bruno
CU
nils faerber
Signature · 11 lines
kernel concepts Tel: +49-271-771091-12 Dreisbachstr. 24 Fax: +49-271-771091-19 D-57250 Netphen D1 : +49-170-2729106 -- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/
A message that is not in the archive (sent off-list or not yet received): 20021213171431.045233f0.nils-t93Ne7XHvje5bSeCtf/[email protected]
Quoted 4 lines · On Fri, 13 Dec 2002 17:14:31 +0100 Nils Faerber…
Quoted 1 line · On Fri, 13 Dec 2002 16:53:09 +0100 Ducrot Bruno…
Patch for 2.4.20 and acpi-20021205 for adding s4bios feature.
Don't think I am stupid...
Oh sorry, I am stupid...
Quoted 2 lines
I know that a echo 1 >
/proc/acpi/sleepshould do the trick, i.e. suspend to disk. But how do I configure that suspend partition? Or
It should read echo 4 > ... of course :(
Quoted 2 lines
Quoted 2 lines
Cheers,
Ducrot Bruno
CU
nils faerber
Signature · 11 lines
kernel concepts Tel: +49-271-771091-12 Dreisbachstr. 24 Fax: +49-271-771091-19 D-57250 Netphen D1 : +49-170-2729106 -- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/
Quoted 10 lines · Nils Faerber
Quoted 1 line · On Fri, 13 Dec 2002 16:53:09 +0100 Ducrot Bruno…
Patch for 2.4.20 and acpi-20021205 for adding s4bios feature.
Hey, that sounds great!
Just a little question: How do I use it :)Don't think I am stupid...
I know that a echo 1 >/proc/acpi/sleepshould do the trick, i.e. suspend to disk. But how do I configure that suspend partition? Or where
Well, I don't know. Perhaps lphdisk (I don't remember the URI) could help. Some googling permit to get it. Or (who knows?) even a /dev/hda1 as a vfat partition can help?
Quoted 4 lines
does it suspend? I know for Phoenix BIOSes there is a tool on the net to create that partition. I have a Asus L3800C notebook which has AFAIK an AWARD BIOS. And AFAIK there is no tool available from ASUS or AWARD to create such a partition.
In a really perfect world:
echo 1 > /proc/acpi/sleep # for standby
echo 2 > /proc/acpi/sleep # for suspend to ram
echo 3 > /proc/acpi/sleep # for suspend to ram, but with more power conservative
echo 4 > /proc/acpi/sleep # for suspend to disk
echo 5 > /proc/acpi/sleep # for shutdown unfriendly the system
and perhaps
echo 4b > /proc/acpi/sleep # for suspend to disk via s4bios
Actually, since there is no S4 support in 2.4, 4 and 4b is the same here.
Please note also that this patch DO NOT fix devices suspensions codes in general, and have certainly some data corruption that need to be fixed before a real inclusion.
Signature · 11 lines
Ducrot Bruno -- Which is worse: ignorance or apathy? -- Don't know. Don't care. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/
A message that is not in the archive (sent off-list or not yet received): 20021213163615.GI4327-j6u/t2rXLliUoIHC/UFpr9i2O/[email protected]
Hi,
Quoted 28 lines · On Fri, 13 Dec 2002 17:36:15 +0100 Ducrot Bruno…
Quoted 10 lines · Nils Faerber
Quoted 1 line · On Fri, 13 Dec 2002 16:53:09 +0100 Ducrot Bruno…
Patch for 2.4.20 and acpi-20021205 for adding s4bios feature.
Hey, that sounds great!
Just a little question: How do I use it :)Don't think I am stupid...
I know that a echo 1 >/proc/acpi/sleepshould do the trick, i.e. suspend to disk. But how do I configure that suspend partition? Or whereWell, I don't know. Perhaps lphdisk (I don't remember the URI) could help. Some googling permit to get it. Or (who knows?) even a
/dev/hda1as a vfat partition can help?Quoted 4 lines
does it suspend? I know for Phoenix BIOSes there is a tool on the net to create that partition. I have a Asus L3800C notebook which has AFAIK an AWARD BIOS. And AFAIK there is no tool available from ASUS or AWARD to create such a partition.
In a really perfect world:
echo 1 >/proc/acpi/sleep# for standby
echo 2 >/proc/acpi/sleep# for suspend to ram
echo 3 >/proc/acpi/sleep# for suspend to ram, but with more power conservative
echo 4 >/proc/acpi/sleep# for suspend to disk
echo 5 >/proc/acpi/sleep# for shutdown unfriendly the system
Quoted 4 lines
and perhaps
echo 4b >/proc/acpi/sleep# for suspend to disk via s4biosActually, since there is no S4 support in 2.4, 4 and 4b is the same here.
Just a question:
I thought S2 and S3 are not supported in 2.4 ? S4 over swsuspend in 2.4 ? or not? I was never able to suspend a machine with S2 or S3...
greets
Marc
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
Quoted 7 lines · On Fri, 13 Dec 2002 17:36:15 +0100 Ducrot Bruno…
Quoted 3 lines · Nils Faerber
Quoted 1 line · On Fri, 13 Dec 2002 16:53:09 +0100 Ducrot Bruno…
Patch for 2.4.20 and acpi-20021205 for adding s4bios feature.
Well, I don't know. Perhaps lphdisk (I don't remember the URI) could help. Some googling permit to get it. Or (who knows?) even a
/dev/hda1as a vfat partition can help?
AFAIK this is only good for Phoenix BIOS whereas mine is AWARD Medallion. Couldn't this also be specified in ACPI specs, i.e. how a suspend partition has to look like?
Quoted 10 lines
Quoted 4 lines
does it suspend? I know for Phoenix BIOSes there is a tool on the net to create that partition. I have a Asus L3800C notebook which has AFAIK an AWARD BIOS. And AFAIK there is no tool available from ASUS or AWARD to create such a partition.
In a really perfect world:
echo 1 >/proc/acpi/sleep# for standby
echo 2 >/proc/acpi/sleep# for suspend to ram
echo 3 >/proc/acpi/sleep# for suspend to ram, but with more power conservative
echo 4 >/proc/acpi/sleep# for suspend to disk
echo 5 >/proc/acpi/sleep# for shutdown unfriendly the system
That would really be perfect :)
S1 on mine does just switch of the fan and stops the CPU. Nothing more. S2 does not exist.
S3 does nothing except for funny ACPI messages:
acpi: sleep 3
acpi: GO!
acpi: acpi_suspend call 3
And your S4BIOS patch ends up freezing the machine after "saving CPU context". Oh, but S5 behaves as expected :)
Quoted 2 lines
and perhaps
echo 4b >/proc/acpi/sleep# for suspend to disk via s4bios
For me it would be sufficient beeing able to set this at kernel compile time, i.e. either swsusp or s4bios.
Quoted 2 lines
Actually, since there is no S4 support in 2.4, 4 and 4b is the same here.
Yup I know :(
The swsusp patch for latest 2.4.20 + ACPI does not yet exist but all my trials with swsusp showed that it is promising but did not work.
Quoted 3 lines
Please note also that this patch DO NOT fix devices suspensions codes in general, and have certainly some data corruption that need to be fixed before a real inclusion.
Sure, no problem!
I first have to find out what type of suspend storage this damn BIOS wants to have, then I can try to suspend and opnly then try to resume :=)
Quoted 1 line
Ducrot Bruno
Thanks again!
CU
nils faerber
Signature · 11 lines
kernel concepts Tel: +49-271-771091-12 Dreisbachstr. 24 Fax: +49-271-771091-19 D-57250 Netphen D1 : +49-170-2729106 -- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/
A message that is not in the archive (sent off-list or not yet received): 20021213181316.0b460077.nils-t93Ne7XHvje5bSeCtf/[email protected]
Quoted 5 lines · Nils Faerber
Quoted 3 lines · On Fri, 13 Dec 2002 17:36:15 +0100 Ducrot Bruno…
Quoted 2 lines · Nils Faerber
On Fri, 13 Dec 2002 16:53:09 +0100
Ducrot Bruno <[email protected]> wrote:
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Patch for 2.4.20 and acpi-20021205 for adding s4bios feature.
Well, I don't know. Perhaps lphdisk (I don't remember the URI) could help. Some googling permit to get it. Or (who knows?) even a
/dev/hda1as a vfat partition can help?AFAIK this is only good for Phoenix BIOS whereas mine is AWARD Medallion. Couldn't this also be specified in ACPI specs, i.e. how a suspend partition has to look like?
You will find nothing. This is not ACPI problem, but a BIOS one.
Quoted 11 lines
Quoted 11 lines
Quoted 5 lines
does it suspend? I know for Phoenix BIOSes there is a tool on the net to create that partition. I have a Asus L3800C notebook which has AFAIK an AWARD BIOS. And AFAIK there is no tool available from ASUS or AWARD to create such a partition.
In a really perfect world:
echo 1 >/proc/acpi/sleep# for standby
echo 2 >/proc/acpi/sleep# for suspend to ram
echo 3 >/proc/acpi/sleep# for suspend to ram, but with more power conservative
echo 4 >/proc/acpi/sleep# for suspend to disk
echo 5 >/proc/acpi/sleep# for shutdown unfriendly the system
I wanted only to speak for a 'perfect world', not for what is the patch. My apologies for confusion.
Quoted 11 lines
That would really be perfect :)
S1 on mine does just switch of the fan and stops the CPU. Nothing more. S2 does not exist.
S3 does nothing except for funny ACPI messages:
acpi: sleep 3
acpi: GO!
acpi:acpi_suspendcall 3And your S4BIOS patch ends up freezing the machine after "saving CPU context". Oh, but S5 behaves as expected :)
My patch is NOT for S3.
S4bios requrire that the bios have necessary support. I check that it has before going to s4bios. Could you please :
get pmtools from Intel site:
http://developer.intel.com/technology/iapc/acpi/downloads.htm
Then under pmtools-20010730:
make
cd acpidmp
Could you then send me output of:
./acpidmp FACP | ./acpitbl
and
./acpidmp FACS | ./acpitbl
I check for those values:
For ./acpidmp FACP | ./acpitblS4BIOS_REQ is not 0;
For ./acpidmp FACS | ./acpitbl:
Flags have bit 0 set.
I supposed that the latest check would be sufficient?
Signature · 11 lines
Ducrot Bruno -- Which is worse: ignorance or apathy? -- Don't know. Don't care. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/
A message that is not in the archive (sent off-list or not yet received): 20021213183622.GN4327-j6u/t2rXLliUoIHC/UFpr9i2O/[email protected]
Quoted 11 lines · On Fri, 13 Dec 2002 19:36:22 +0100 Ducrot Bruno…
Quoted 10 lines · Nils Faerber
Quoted 7 lines · On Fri, 13 Dec 2002 17:36:15 +0100 Ducrot Bruno…
Quoted 3 lines · Nils Faerber
Quoted 1 line · On Fri, 13 Dec 2002 16:53:09 +0100 Ducrot Bruno…
Patch for 2.4.20 and acpi-20021205 for adding s4bios feature.
Well, I don't know. Perhaps lphdisk (I don't remember the URI) could help. Some googling permit to get it. Or (who knows?) even a/dev/hda1 as a vfat partition can help?
Quoted 5 lines
Quoted 3 lines
AFAIK this is only good for Phoenix BIOS whereas mine is AWARD Medallion. Couldn't this also be specified in ACPI specs, i.e. how a suspend partition has to look like?
You will find nothing. This is not ACPI problem, but a BIOS one.
Surely, but I was also speaking about "ideal world" :)
Quoted 11 lines
Quoted 10 lines
Quoted 10 lines
Quoted 4 lines
does it suspend? I know for Phoenix BIOSes there is a tool on the net to create that partition. I have a Asus L3800C notebook which has AFAIK an AWARD BIOS. And AFAIK there is no tool available from ASUS or AWARD to create such a partition.
In a really perfect world:
echo 1 >/proc/acpi/sleep# for standby
echo 2 >/proc/acpi/sleep# for suspend to ram
echo 3 >/proc/acpi/sleep# for suspend to ram, but with more power conservative
echo 4 >/proc/acpi/sleep# for suspend to disk
echo 5 >/proc/acpi/sleep# for shutdown unfriendly the system
Quoted 2 lines
I wanted only to speak for a 'perfect world', not for what is the patch. My apologies for confusion.
Sure, I think I was not clear about what I said.
Quoted 8 lines
Quoted 8 lines
That would really be perfect :)
S1 on mine does just switch of the fan and stops the CPU. Nothing more. S2 does not exist.
S3 does nothing except for funny ACPI messages:
acpi: sleep 3
acpi: GO!
acpi:acpi_suspendcall 3
Quoted 4 lines
Quoted 2 lines
And your S4BIOS patch ends up freezing the machine after "saving CPU context". Oh, but S5 behaves as expected :)
My patch is NOT for S3.
Yep, knew that :) Just wanted to let you (and others maybe) know.
Quoted 14 lines
S4bios requrire that the bios have necessary support. I check that it has before going to s4bios. Could you please :
get pmtools from Intel site:
http://developer.intel.com/technology/iapc/acpi/downloads.htmThen under pmtools-20010730:
make
cd acpidmp
Could you then send me output of:
./acpidmp FACP | ./acpitbl
and
./acpidmp FACS | ./acpitbl
Quoted 3 lines
I check for those values:
For ./acpidmp FACP | ./acpitblS4BIOS_REQis not 0;
My result:
S4BIOS_REQ: 0x00
Quoted 2 lines
For ./acpidmp FACS | ./acpitbl:
Flags have bit 0 set.
Signature: FACS Length: 64 Hardware Signature: 0x00000000 Firmware Waking Vector: 0x00000000 Global Lock: 0x00000000 Flags: 0x00000000
Hmm ... and now?
What does that mean?
Quoted 1 line
I supposed that the latest check would be sufficient?
No idea.
Maybe I should start to read the ACPI spec I downloaded some time ago :)
Quoted 1 line
Ducrot Bruno
CU
nils faerber
Signature · 11 lines
kernel concepts Tel: +49-271-771091-12 Dreisbachstr. 24 Fax: +49-271-771091-19 D-57250 Netphen D1 : +49-170-2729106 -- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/
A message that is not in the archive (sent off-list or not yet received): 20021213194907.5d99fc57.nils-t93Ne7XHvje5bSeCtf/[email protected]
On Fri, Dec 13, 2002 at 07:49:07PM +0100, Nils Faerber wrote:
[...]
Quoted 14 lines
My result:
S4BIOS_REQ: 0x00Quoted 2 lines
For ./acpidmp FACS | ./acpitbl:
Flags have bit 0 set.Signature: FACS Length: 64 Hardware Signature: 0x00000000 Firmware Waking Vector: 0x00000000 Global Lock: 0x00000000 Flags: 0x00000000
Quoted 3 lines
Hmm ... and now?
What does that mean?
Your BIOS cry loudly that it do not support S4Bios (certainly due to a lack of a suspend partition). I supposed that my patch does it right, so that if someone insist, it give up, but that is not the case. I have to look what stupid brain-damaged bogosity I have written then.
Signature · 11 lines
Ducrot Bruno -- Which is worse: ignorance or apathy? -- Don't know. Don't care. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/
A message that is not in the archive (sent off-list or not yet received): 20021213191758.GP4327-j6u/t2rXLliUoIHC/UFpr9i2O/[email protected]
Quoted 15 lines · On Fri, 13 Dec 2002 20:17:58 +0100 Ducrot Bruno…
On Fri, Dec 13, 2002 at 07:49:07PM +0100, Nils Faerber wrote:
[...]Quoted 13 lines
My result:
S4BIOS_REQ: 0x00Quoted 2 lines
For ./acpidmp FACS | ./acpitbl:
Flags have bit 0 set.Signature: FACS Length: 64 Hardware Signature: 0x00000000 Firmware Waking Vector: 0x00000000 Global Lock: 0x00000000 Flags: 0x00000000
Quoted 7 lines
Quoted 2 lines
Hmm ... and now?
What does that mean?Your BIOS cry loudly that it do not support S4Bios (certainly due to a lack of a suspend partition). I supposed that my patch does it right, so that if someone insist, it give up, but that is not the case. I have to look what stupid brain-damaged bogosity I have written then.
Oh well, many thanks again!
I already thought something like this.
Now, this just leaves the question what f*ckin' type of partition this BIOS wants. I already tried almost everything: lphdisk, zvhdd (DOS utility), simple VFAT32 partition, nothing. Oh well ... mybe I'll disassemble the BIOS - just joking :) I think best bet would be to ask Asus for a hint.
Anyway, thanks for your help!
Quoted 1 line
Ducrot Bruno
CU
nils faerber
Signature · 11 lines
kernel concepts Tel: +49-271-771091-12 Dreisbachstr. 24 Fax: +49-271-771091-19 D-57250 Netphen D1 : +49-170-2729106 -- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/
A message that is not in the archive (sent off-list or not yet received): 20021213210359.266e4417.nils-t93Ne7XHvje5bSeCtf/[email protected]
PATCH 1/1 Minor fixes (was Re: [PATCH] S4Bios support for 2.4.20 + acpi-20021205)
Quoted 25 lines · Nils Faerber
Quoted 15 lines · On Fri, 13 Dec 2002 20:17:58 +0100 Ducrot Bruno…
On Fri, Dec 13, 2002 at 07:49:07PM +0100, Nils Faerber wrote:
[...]Quoted 13 lines
My result:
S4BIOS_REQ: 0x00Quoted 2 lines
For ./acpidmp FACS | ./acpitbl:
Flags have bit 0 set.Signature: FACS Length: 64 Hardware Signature: 0x00000000 Firmware Waking Vector: 0x00000000 Global Lock: 0x00000000 Flags: 0x00000000Quoted 7 lines
Quoted 2 lines
Hmm ... and now?
What does that mean?Your BIOS cry loudly that it do not support S4Bios (certainly due to a lack of a suspend partition). I supposed that my patch does it right, so that if someone insist, it give up, but that is not the case. I have to look what stupid brain-damaged bogosity I have written then.
Quoted 8 lines
Oh well, many thanks again!
I already thought something like this.
Now, this just leaves the question what f*ckin' type of partition this BIOS wants. I already tried almost everything: lphdisk, zvhdd (DOS utility), simple VFAT32 partition, nothing. Oh well ... mybe I'll disassemble the BIOS - just joking :) I think best bet would be to ask Asus for a hint.
This incremental patch should give you the oportunity to not go to s4bios if bios do not support. It fix also a printk introduced by me (sorry).
Signature · 4 lines
Ducrot Bruno -- Which is worse: ignorance or apathy? -- Don't know. Don't care.
drivers/acpi/system.c +18 -8
@@ -300,11 +300,16 @@return AE_ERROR ; -/* For s4bios, we need a wakeup address. */ -if (state ==ACPI_STATE_S4 ) { -if (!acpi_wakeup_address) +if (ACPI_STATE_S4 == state) { +/* For s4bios, we need a wakeup address. */ +if (1 == acpi_gbl_FACS->S4bios_f && +0 != acpi_gbl_FADT->smi_cmd) { +if (!acpi_wakeup_address) +return AE_ERROR ; +acpi_set_firmware_waking_vector ((ACPI_PHYSICAL_ADDRESS ) acpi_wakeup_address); + }else +/* We don't support S4 under 2.4. Give up */ return AE_ERROR ; -acpi_set_firmware_waking_vector ((ACPI_PHYSICAL_ADDRESS ) acpi_wakeup_address); }acpi_enter_sleep_state_prep (state);
@@ -366,8 +371,12 @@ p +=sprintf (p,"states: " );for (i=0 ; i<ACPI_S_STATE_COUNT ; i++) { -if (system->states[i]) +if (system->states[i]) p +=sprintf (p,"S%d " , i); +if (i ==ACPI_STATE_S4 && + acpi_gbl_FACS->S4bios_f && +0 != acpi_gbl_FADT->smi_cmd) + p +=sprintf (p,"S4Bios " ); } p +=sprintf (p,"\n" );
@@ -671,7 +680,7 @@ p +=sprintf (p,"S%d " , i);if (i ==ACPI_STATE_S4 && acpi_gbl_FACS->S4bios_f && acpi_gbl_FADT->smi_cmd !=0 ) - p +=sprintf (p,"S4bios " ); + p +=sprintf (p,"S4Bios " ); } }
@@ -716,7 +725,7 @@printk (KERN_DEBUG "acpi: sleep %d\n" , state);if (!system->states[state])return_VALUE (-ENODEV ); -printk (KERN_DEBUG "acpi: GO!\n" , state); +printk (KERN_DEBUG "acpi: GO!\n" );/* * If S4 is supported by the OS, then we should assume that
@@ -1223,7 +1232,8 @@ status =acpi_get_sleep_type_data (i, &type_a, &type_b);switch (i) {case ACPI_STATE_S4 : -if (acpi_gbl_FACS->S4bios_f &&0 != acpi_gbl_FADT->smi_cmd) { +if (acpi_gbl_FACS->S4bios_f && +0 != acpi_gbl_FADT->smi_cmd) {printk (" S4bios" ); system->states[i] =1 ; }
Quoted 2 lines
The issues I encounter are still present, then; so play with it carrefully..
Hi all!
I have just tried 2.4.20 + acpi-20021205+s4bios the suspend and resume does work till it reaches
CPU context restored
after that it either hangs on
PCI: Enabling device 00:09.0 (0000->0003) // this is my eth0
or if I am trying to disable eth0 prior suspend on
[ACPI Debug] String ... VIA Software SMI PMIO 2fh
[ACPI Debug] String: ________________________
[ACPI Debug] String: THRM_TMP
[ACPI Debug] String: ________________________
Are this the known issues you refered to in your posting? How do we solve them ?
Greetings
Martin
Ps: What do you mean by "play with it carefully" ? There is not a lot to play with :-/
-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · Martin Platter
Quoted 2 lines
The issues I encounter are still present, then; so play with it carrefully..
Hi all!
Quoted 8 lines
I have just tried 2.4.20 + acpi-20021205+s4bios the suspend and resume does work till it reaches
CPU context restored
after that it either hangs on
PCI: Enabling device 00:09.0 (0000->0003) // this is my eth0
btw, what is your card?
Quoted 11 lines
or if I am trying to disable eth0 prior suspend on
[ACPI Debug] String ... VIA Software SMI PMIO 2fh
[ACPI Debug] String: ________________________
[ACPI Debug] String:THRM_TMP
[ACPI Debug] String: ________________________Are this the known issues you refered to in your posting? How do we solve them ?
Nope. The known issue are basically: rewrotte acpi_wakeup.S properly, same for the processor fix code, also seek for possible memory corruption, and others (especially usb stuff as well as pcmcia. I forgot to mention the agpgart stuff)...
Quoted 2 lines
Ps: What do you mean by "play with it carefully" ? There is not a lot to play with :-/
I mean that this code is in developpement, and it is not tested well in a lot of machines especially if the devices are properly restored in a working state (which is apparently what you hit).
'Play with it carrefully' mean that at least you should try it in single mode, or best create a dedicated partition known to been crashed (due to possible fs corruptions).
Thank for testing!
Signature · 11 lines
Ducrot Bruno -- Which is worse: ignorance or apathy? -- Don't know. Don't care. ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
A message that is not in the archive (sent off-list or not yet received): 20030120184750.GR11487-j6u/t2rXLliUoIHC/UFpr9i2O/[email protected]
Quoted 9 lines · Ducrot Bruno
Quoted 7 lines · Martin Platter
Quoted 2 lines
The issues I encounter are still present, then; so play with it carrefully..
Hi all!
I have just tried 2.4.20 + acpi-20021205+s4bios the suspend and resume does work till it reaches
Quoted 9 lines
Quoted 5 lines
CPU context restored
after that it either hangs on
PCI: Enabling device 00:09.0 (0000->0003) // this is my eth0
btw, what is your card?
I have a Gericom 1st Supersonic (M6T) Laptop.
00:09.0 Ethernet controller: Accton Technology Corporation EN-1216 Ethernet Adapter (rev 11) -> it works with the Tulip driver.
Quoted 9 lines
Quoted 9 lines
or if I am trying to disable eth0 prior suspend on
[ACPI Debug] String ... VIA Software SMI PMIO 2fh [ACPI Debug] String: ________________________ [ACPI Debug] String:
THRM_TMP
[ACPI Debug] String: ________________________
Quoted 8 lines
Quoted 1 line
Are this the known issues you refered to in your posting? How do we solve them ?
Nope. The known issue are basically: rewrotte
acpi_wakeup.Sproperly, same for the processor fix code, also seek for possible memory corruption, and others (especially usb stuff as well as pcmcia. I forgot to mention the agpgart stuff)...
I tried to unload usb/agpgart/sound ... modules, but I always just get
[ACPI Debug] String ... VIA Software SMI PMIO 2fh
[ACPI Debug] String: ________________________
[ACPI Debug] String: THRM_TMP
[ACPI Debug] String: ________________________
<command prompt>
and that's it :-/
Greetings
Martin
Quoted 8 lines
Quoted 2 lines
Ps: What do you mean by "play with it carefully" ? There is not a lot to play with :-/
I mean that this code is in developpement, and it is not tested well in a lot of machines especially if the devices are properly restored in a working state (which is apparently what you hit).
Quoted 7 lines
'Play with it carrefully' mean that at least you should try it in single mode, or best create a dedicated partition known to been crashed (due to possible fs corruptions).
Thank for testing!
-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp