Bug 7299 - S3: no reboot after resume fails - ASUS M6Ne
Summary: S3: no reboot after resume fails - ASUS M6Ne
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Sleep-Wake (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: ykzhao
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-10 09:21 UTC by Nicolo' Chieffo
Modified: 2008-10-24 23:01 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.17, 2.6.18, 2.6.20, 2.6.22, 2.6.23
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
dmesg (31.27 KB, application/octet-stream)
2007-01-01 06:58 UTC, Nicolo' Chieffo
Details
acpidump using the UP kernel (118.64 KB, application/octet-stream)
2007-01-01 09:45 UTC, Nicolo' Chieffo
Details
dmesg using the UP kernel (30.99 KB, application/octet-stream)
2007-01-01 09:45 UTC, Nicolo' Chieffo
Details
config-2.6.19-7-386 (ubuntu stock kernel) (78.38 KB, application/octet-stream)
2007-01-01 09:46 UTC, Nicolo' Chieffo
Details
dmesg of 2.6.24-12-generic (ubuntu) after resume (37.88 KB, text/plain)
2008-03-18 02:38 UTC, Nicolo' Chieffo
Details
acpi_new_pts_ordering=1 libata.noacpi=1 (26.84 KB, text/plain)
2008-04-17 01:39 UTC, Nicolo' Chieffo
Details
libata.noacpi=1 (26.79 KB, text/plain)
2008-04-17 01:40 UTC, Nicolo' Chieffo
Details
try the debug patch (3.05 KB, patch)
2008-04-17 03:54 UTC, ykzhao
Details | Diff
use the attached tool to see whether the system can be restarted (2.47 KB, application/x-gzip)
2008-04-21 06:12 UTC, ykzhao
Details
dmidecode 2.6.24 (ubuntu) (10.35 KB, text/plain)
2008-07-02 08:24 UTC, Nicolo' Chieffo
Details
test the debug patch (3.55 KB, patch)
2008-07-06 22:19 UTC, ykzhao
Details | Diff

Description Nicolo' Chieffo 2006-10-10 09:21:09 UTC
Most recent kernel where this bug did not occur: don't know
Distribution: ubuntu 6.10 (but with vanilla kernel)
Hardware Environment: ASUS M6Ne laptop with bios version 208 (latest, no more
developed)
Software Environment:
Problem Description:

after a resume from suspend (ram) I cannot reboot the pc. This is the debug
message which appears after the reboot process:
Will now reboot
[4296094.430000] Restarting System
now the system forgets to reboot and is hanged.


Steps to reproduce:
suspend, resume and now reboot the pc (maybe only an asus laptop issue)
Comment 1 Len Brown 2006-10-11 18:36:24 UTC
did this work in a previous release?
Comment 2 Nicolo' Chieffo 2006-10-12 04:22:25 UTC
yes in previous versions it was working (don't remember the kernel release...)
but I had to specify at boot acpi_sleep=s3_bios (and nolapic, but I think
nolapic was only influencing the shutdown, not the reboot)

I will investigate on the kernel release and I will let you know
Comment 3 Nicolo' Chieffo 2006-12-15 14:37:39 UTC
I can't see if in previous releases this was working, but I will definitely give
my help if someone tells me some tests that I could try!
Comment 4 Zhang Rui 2006-12-28 17:36:56 UTC
Please the full dmesg output after a suspend/resume cycle.
Comment 5 Nicolo' Chieffo 2007-01-01 06:58:08 UTC
Created attachment 9982 [details]
dmesg

This is what I did:

# echo mem > /sys/power/state
# dmesg > dmesg.log

I don't know if I did enough. Tell me if you need anything else
Comment 6 Zhang Rui 2007-01-01 09:15:01 UTC
It seems that your laptop does not support SMP.
I don't know if it makes sense, but why not compile your kernel with SMP 
disabled and try again? :)
Please attach your acpidump, kernel config, and the dmesg after suspend/resume 
in UP mode.
Comment 7 Nicolo' Chieffo 2007-01-01 09:45:25 UTC
Created attachment 9983 [details]
acpidump using the UP kernel
Comment 8 Nicolo' Chieffo 2007-01-01 09:45:58 UTC
Created attachment 9984 [details]
dmesg using the UP kernel
Comment 9 Nicolo' Chieffo 2007-01-01 09:46:57 UTC
Created attachment 9985 [details]
config-2.6.19-7-386 (ubuntu stock kernel)
Comment 10 Nicolo' Chieffo 2007-01-01 09:50:46 UTC
New ubuntu kernel are compiled for generic processor support, so also for SMP
while I have a single processor. Unfortunately this didn't help.
Is there a way to enable lots of debug? Just to see where exactly there is a
hangup... Thank you and happy new year!
Comment 11 Zhang Rui 2007-01-18 22:55:13 UTC
Please try the patch in Bug6655 comments#23.
Comment 12 Nicolo' Chieffo 2007-01-19 06:12:19 UTC
It did not fix the bug, altough one thing is changed:
now when the pc hangs, if I hit the power putton, it powers off. in the previous
situation I had to keep it pressed for at least 5 seconds!
Comment 13 Nicolo' Chieffo 2007-01-19 06:18:58 UTC
I will ask some information in that bugreport
Comment 14 Nicolo' Chieffo 2007-01-19 15:39:02 UTC
No. The other patch did not help ad all.
Comment 15 Nicolo' Chieffo 2007-05-25 02:05:58 UTC
also confirmed in asus a8js
Comment 16 Mikhail Gusarov 2007-05-30 10:06:19 UTC
Reproduced on ASUS M6B00N (not Ne) with kernel 2.6.22-rc3
Comment 17 Mikhail Gusarov 2007-06-02 11:12:36 UTC
Tried patches from Bug6655, Comment#8, Comment#23, Comment#38, Comment#39 on 
M6B00N: none of them works.
Comment 18 Len Brown 2007-09-06 15:36:35 UTC
Is this still a problem in linux-2.6.22.stable or later?
Comment 19 Nicolo' Chieffo 2007-09-06 15:50:37 UTC
Yes and also in 2.6.23, tested yesterday in fedora 8
Comment 20 Mikhail Gusarov 2007-09-06 20:26:17 UTC
Confirmed on 2.6.22 with ASUS M6B00N.
Comment 21 Artur Matuszewski 2007-09-10 21:36:25 UTC
This is also a problem with Aristo Slim 430 laptop. And it happens with both 2.6.20-16 kernel shipped with ubuntu 7.04 and a self-compiled 2.6.22.6 one.
Comment 22 ykzhao 2008-02-15 00:54:56 UTC
Hi, Nicol
   Will you please try the latest kernel(for example : 2.6.24.1) and confirm whether the problem still exists?
   If it still exists, please attach the output of dmesg.
   Thanks.
Comment 23 Nicolo' Chieffo 2008-02-15 02:55:27 UTC
I will do this on monday. I have installed ubuntu hardy which has this version of the kernel: linux-image-2.6.24-7 is this ok?
Comment 24 ykzhao 2008-03-11 00:03:20 UTC
Do you try the latest kernel  and see whether the problem still exists? (2.6.24.7 is also OK).
Thanks.
Comment 25 Nicolo' Chieffo 2008-03-17 04:53:06 UTC
I still have this problem in ubuntu hardy kernel, which is named 2.6.24-11.17.
Is this version OK for the test?
Comment 26 ykzhao 2008-03-18 01:31:54 UTC
Hi, Nicol
    The version is ok for the test.
    Please attach the output of dmesg after a suspend/resume cycle.
    
Comment 27 Nicolo' Chieffo 2008-03-18 02:38:55 UTC
Created attachment 15323 [details]
dmesg of 2.6.24-12-generic (ubuntu) after resume

dmesg of ubuntu hardy kernel 2.6.24-12-generic after a suspend/resume cycle
Comment 28 ykzhao 2008-03-18 08:26:18 UTC
Hi, Nicol
    Thanks for the test.
    There are a lot of changes about the suspend/resume between 2.6.24-12 and 2.6.25-rc6. 
    Will you please try the 2.6.25-rc6 kernel and do the following test ?  
    a. boot the system with the option of "libata.noacpi=1" and do the suspend/resume cycle. Please confirm whether the problem still exists and attach the output of dmesg.
    b. boot the system with the option of "acpi_new_pts_ordering=1 libata.noacpi=1" . Please confirm whether the problem still exists and attach the ouput of dmesg.
    
    Thanks.
    
Comment 29 Nicolo' Chieffo 2008-03-18 08:40:27 UTC
Sorry, I have to wait that ubuntu ships an update kernel. I'm no more used on compiling kernels
Comment 30 Nicolo' Chieffo 2008-04-07 03:32:37 UTC
I'm afraid ubuntu won't ship 2.6.25 in the april version... Do you know of any other distribution that has this version?
Comment 31 ykzhao 2008-04-16 21:38:11 UTC
HI, Nicol
    Will you please try the latest kernel and see whether the problem still exists? If exists, please confirm whether the system can be powered off after suspend/resume.
    It will be great if you can confirm whether the laptop can be restarted after suspend when running windows XP.
    Thanks.
Comment 32 Nicolo' Chieffo 2008-04-17 01:39:49 UTC
Created attachment 15781 [details]
acpi_new_pts_ordering=1 libata.noacpi=1
Comment 33 Nicolo' Chieffo 2008-04-17 01:40:32 UTC
Created attachment 15782 [details]
libata.noacpi=1
Comment 34 Nicolo' Chieffo 2008-04-17 01:42:39 UTC
Windows XP: rebooted correctly and shut down correctly.
linux 2.6.25-0.218.rc8.git7.fc9 (applied to ubuntu hardy, and regenerating initramfs): still cannot reboot correctly, can shutdown correctly.

I've also done the libata.noacpi=1 test and acpi_new_pts_ordering=1
libata.noacpi=1 but in both cases the problem persists. I have attached dmesg.
Comment 35 ykzhao 2008-04-17 03:54:07 UTC
Created attachment 15786 [details]
try the debug patch

Will you please try the debug patch and see whether the system can be restarted after suspend/resume cycle? ( Please add the boot option of "reboot=a")
thanks.
Comment 36 Nicolo' Chieffo 2008-04-17 03:57:53 UTC
As I've already told you, I don't have the possibility to compile a new kernel. This requires lots of space and cpu.
Have you got a kernel image already patched?
Comment 37 ykzhao 2008-04-17 18:51:37 UTC
Sorry, I have no the kernel image already patched.
As you can't compile the new kernel, you will have to wait for the ubuntu kernel.
Comment 38 Nicolo' Chieffo 2008-04-18 01:25:55 UTC
The only problem is that Ubuntu won't ship a kernel with the debug patch attached... Right?
Comment 39 ykzhao 2008-04-21 06:12:38 UTC
Created attachment 15827 [details]
use the attached tool to see whether the system can be restarted

Will you please try the attached tool to see whether the system can be restarted?  (Write 0x06 to 0xCF9 I/O port address). 
How to use the attached tool can be found in the readme.
   Thanks.
Comment 40 Mikhail Gusarov 2008-04-21 06:34:18 UTC
Tested on M6B00N: iow --addr 0xCF9 --width 8 --value 0x06 DOES reboot the notebook.
Comment 41 ykzhao 2008-04-22 00:34:57 UTC
Thanks for the test.
It seems that the system can be rebooted by writing the RESET_VALUE to RESET_REG I/O port.(The RESET_VALUE and RESET_REG are defined in FADT table). 
Now this reboot mechanism is not merged into upstream kernel. (Maybe windows always uses this mechanims to reboot the system)
I will try to push it.
Thanks.
Comment 42 ykzhao 2008-06-27 08:49:20 UTC
Hi, Mikhai
   Will you please attach the dmicode output?
   Thanks.
Comment 43 Mikhail Gusarov 2008-06-27 08:53:48 UTC
Sorry, my notebook died. Hope someone else will help you.

Removing myself from CC: I no longer have this piece of hardware :(
Comment 44 ykzhao 2008-06-29 18:36:08 UTC
Hi, Nicol
   Will you please attach the output of dmidecode? 
   Thanks.
Comment 45 Nicolo' Chieffo 2008-06-30 01:55:15 UTC
Ok, I will do it tomorrow! which kernel should I use? 2.6.24 or 2.6.26?
Comment 46 ykzhao 2008-06-30 01:58:35 UTC
Either of them is also OK.
Thanks.
Comment 47 Nicolo' Chieffo 2008-07-02 08:24:58 UTC
Created attachment 16699 [details]
dmidecode 2.6.24 (ubuntu)

Here you are the dmidecode
Comment 48 ykzhao 2008-07-06 22:19:31 UTC
Created attachment 16750 [details]
test the debug patch

According to ACPI spec OS can use the optional ACPI reset mechanism to reset the system. Fortunately on the laptop there exists the definition of ACPI RESET_REG in ACPI tables. 

Will you please try the debug patch and see whether the system can be restarted?

Note: please add the boot option of "reboot=a".
Comment 49 ykzhao 2008-08-12 00:10:51 UTC
As there is no response for more than one month, the bug will be rejected.
If the problem still exists, please reopen it and try the debug patch in comment #48.
Thanks.

Note You need to log in before you can comment on or make changes to this bug.