acpi-20040715: functional regression on ASUS M2N
Hi all,
I just tried a kernel 2.6.8-rc2 with swsusp2-2.0.0.100 and some other minor patches -- overall with great success. But when I updated from the ACPI included in the kernel to the acpi-20040715 patch for 2.6.8, suspend to ram does not work anymore: the machine hangs on resume.
Except for the network cards, which are broken after resume from S3, it otherwise works fine for the previous ACPI versions with kernel 2.6.7 and kernel 2.6.8 -- which are the first kernels for which this is true.
This is on an ASUS M2N with intel 855GM Centrino chipset, running the Debian GNU/Linux distribution.
If you need more info, let me know.
Regards,
Georg
Signature · 4 lines
Georg C. F. Greve <[email protected]> Free Software Foundation Europe (http://fsfeurope.org) GNU Business Network (http://mailman.gnubiz.org) Brave GNU World (http://brave-gnu-world.org)
Quoted 4 lines · Georg C. F. Greve
I just tried a kernel 2.6.8-rc2 with swsusp2-2.0.0.100 and some other minor patches -- overall with great success. But when I updated from the ACPI included in the kernel to the acpi-20040715 patch for 2.6.8, suspend to ram does not work anymore: the machine hangs on resume.
Do you get any output on the screen at all during resume?
Signature · 9 lines
Matthew Garrett | [email protected] ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
|| On Tue, 20 Jul 2004 20:03:17 +0100 || Matthew Garrett <[email protected]> wrote:
Quoted 5 lines
Quoted 5 lines
I just tried a kernel 2.6.8-rc2 with swsusp2-2.0.0.100 and some other minor patches -- overall with great success. But when I updated from the ACPI included in the kernel to the acpi-20040715 patch for 2.6.8, suspend to ram does not work anymore: the machine hangs on resume.
mg> Do you get any output on the screen at all during resume?
Not with acpi-20040715. The screen remains entirely dead.
In fact my suspicion is that the whole machine has a problem, shutdown does not work and even after a forced poweroff (keeping the power button pressed for a while until machine shuts off) the screen is dead when starting the machine again. I cannot say much more since it does not even appear to boot.
Only after I took out the battery and took it off power for a while did the machine come back to life, really.
With older versions, I see a yellow "inu" in the uppermost row for a second, then the X server comes back up. I should mention at this time that both DRI and AGP are compiled in and working fine.
Regards,
Georg
Signature · 3 lines
Georg C. F. Greve <greve-mXXj517/[email protected]> Free Software Foundation Europe (http://fsfeurope.org) Brave GNU World (http://brave-gnu-world.org)
Hi all,
okay, I did some more checks on the problems I experienced with acpi-20040715 on Intel Centrino 855GM notebook ASUS M2N.
Background: As of kernel 2.6.7 suspend to RAM (s3_bios) actually worked and even with DRI/DRM and AGP compiled in and the X server running, things are working nicely.
When restarting from suspend to RAM, I briefly see a yellow "inu" in the uppermost row for a second, then the screen flickers once and X11 is back.
Only disadvantage: network cards (both wired & ipw2100 wireless) are dead after suspend to ram, I need a suspend to disk (swsusp2 version 2.0.0.100) to bring them back to life. (referred to as "fine" below)
When upgrading to acpi-20040715 I discovered that resume from suspend to RAM was broken. Contrary to what I wrote in my previous mail, it seems that there is the yellow "inu" in the uppermost row and then the machine is dead. (referred to as "dead" below)
I need a forced poweroff plus "needle-pushed reset button" to bring it back to life.
Having had some time to let the machine compile in the background, I narrowed down the code that broke the resume from suspend to RAM on my machine. Apparently it was the patch that is supposed to fix the network card problems.
When starting from a patched 2.6.7 with suspend to ram and resume working fine as described above (=base), I have applied two patches
(a) acpi-20040715
(b) Fix ACPI after S3 patch of David Shaohua:
===== arch/i386/kernel/i8259.c 1.30 vs edited =====
arch/i386/kernel/i8259.c +25 -0
@@ -238,14 +238,39 @@ } } +static char irq_trigger[2 ]; +/** +* ELCR registers (0x4d0, 0x4d1) control edge/level of IRQ +*/ +static void restore_ELCR (char *trigger) +{ +outb (trigger[0 ],0x4d0 ); +outb (trigger[1 ],0x4d1 ); +} + +static void save_ELCR (char *trigger) +{ +/* IRQ 0,1,2,8,13 are marked as reserved */ + trigger[0 ] =inb (0x4d0 ) &0xF8 ; + trigger[1 ] =inb (0x4d1 ) &0xDE ; +} +static int i8259A_resume (struct sys_device *dev) {init_8259A (0 ); +restore_ELCR (irq_trigger); +return 0 ; +} + +static int i8259A_suspend (struct sys_device *dev,u32 state) +{ +save_ELCR (irq_trigger);return 0 ; }static struct sysdev_class i8259_sysdev_class = {set_kset_name ("i8259" ), + .suspend = i8259A_suspend, .resume = i8259A_resume, };
===== arch/x86_64/kernel/i8259.c 1.12 vs edited =====
arch/x86_64/kernel/i8259.c +52 -1
65 lines not on this page · raw message
(from http://bugme.osdl.org/show_bug.cgi?id=2643 )
in the following combinations with the following results:
base + (a) = dead
base + (b) = dead
base + (a) - (b) = fine
So applying the ACPI patch and reverse-applying the (b) patch to it actually fixes the problem, although the network cards still remain dead.
Which narrows the problem down to patch (b) as the one breaking suspend to ram on ASUS M2N. Hope this helps tracking things down.
Regards,
Georg
Signature · 3 lines
Georg C. F. Greve <greve-mXXj517/[email protected]> Free Software Foundation Europe (http://fsfeurope.org) Brave GNU World (http://brave-gnu-world.org)
Quoted 2 lines · Georg C. F. Greve
Which narrows the problem down to patch (b) as the one breaking suspend to ram on ASUS M2N. Hope this helps tracking things down.
Can you try doing the following:
1) Open arch/i386/kernel/time.c
2) Find sysdev_class pit_sysclass
3) Change
.resume = time_resume,
to
// .resume = time_resume,
4) Rebuild the kernel
You'll need to change your resume script to do a hwclock --hwtosys once the system comes back up. If this works then it's the same problem that I have - I have no idea what's causing it.
Signature · 9 lines
Matthew Garrett | [email protected] ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
|| On Tue, 27 Jul 2004 12:24:22 +0100 || Matthew Garrett <[email protected]> wrote:
Quoted 2 lines
Quoted 2 lines
Which narrows the problem down to patch (b) as the one breaking suspend to ram on ASUS M2N. Hope this helps tracking things down.
mg> Can you try doing the following:
mg> 1) Open arch/i386/kernel/time.c
mg> 2) Find sysdev_class pit_sysclass
mg> 3) Change
mg> .resume = time_resume,
mg> to
mg> // .resume = time_resume,
mg> 4) Rebuild the kernel
Tried it. No effect.
Did not change anything as far as I could tell. Problem persists.
mg> You'll need to change your resume script to do a hwclock mg> --hwtosys once the system comes back up.
I've actually always had that. :)
mg> If this works then it's the same problem that mg> I have - I have no idea what's causing it.
It seems to be a different problem, then.
Regards,
Georg
Signature · 3 lines
Georg C. F. Greve <greve-mXXj517/[email protected]> Free Software Foundation Europe (http://fsfeurope.org) Brave GNU World (http://brave-gnu-world.org)