ACPI shutdown fails to power off machine
Hi:
I realized 2.6.13-rc2 would not power off my box anymore, although it worked fine back in 2.6.12. A binary search of intermediate -git patches showed that between -git7 and -git8 something broke power down. Every kernel used has been compiled from sources downloaded from kernel.org, no additional patches, and .config has been exactly the same.
Searching "gitweb" located at www.kernel.org (excelent tool, by the way; you rock guys!) starting from "patch-2.6.12-git8.id" tag back in time, I located a recent commited patch that, when reversed (against 2.6.12-git8) makes power off work again in my box. Patch at:
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=cee5dab4856f51c5cad3aecc630ad0a4d2217a85
The commit text points to a bugme entry, that seems not to be applicable to my situation: stock kernel sources from kernel.org. If you need some more info (motherboard make and model, BIOS and version, output from "lshw" or "dmidecode", etc.), please ask.
Greetings,
Signature · 2 lines
Jose Luis Domingo Lopez Linux Registered User #189436 Debian Linux Sid (Linux 2.6.13-rc2)
Quoted 14 lines · Jose Luis Domingo Lopez
Hi:
I realized 2.6.13-rc2 would not power off my box anymore, although it worked fine back in 2.6.12. A binary search of intermediate -git patches showed that between -git7 and -git8 something broke power down. Every kernel used has been compiled from sources downloaded from kernel.org, no additional patches, and .config has been exactly the same.
Searching "gitweb" located at www.kernel.org (excelent tool, by the way; you rock guys!) starting from "patch-2.6.12-git8.id" tag back in time, I located a recent commited patch that, when reversed (against 2.6.12-git8) makes power off work again in my box. Patch at:
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=cee5dab4856f51c5cad3aecc630ad0a4d2217a85
Quoted 4 lines
The commit text points to a bugme entry, that seems not to be applicable to my situation: stock kernel sources from kernel.org. If you need some more info (motherboard make and model, BIOS and version, output from "lshw" or "dmidecode", etc.), please ask.
Thanks. Before I forget I want to ack this. I think you are correct and I have a hunch on what might be done to fix this but I haven't found the couple of hours needed to handle that.
In essence I don't believe the semantics of the reboot path are consistent between the expectations of the various functions and I my patches stirred the pot so a different set of things work and fail now than before.
Roughly for your part of the problem the acpi shutdown code needs to get called sooner when interrupts are still enabled.
Eric
Quoted 4 lines · Eric W. Biederman
Thanks. Before I forget I want to ack this. I think you are correct and I have a hunch on what might be done to fix this but I haven't found the couple of hours needed to handle that.
ACK. Just for the record, there seems to be several people out there with the same problem, and using different motherboards/BIOSes. Check:
http://marc.theaimsgroup.com/?t=112147291000001&r=1&w=2
Greetings,
Signature · 2 lines
Jose Luis Domingo Lopez Linux Registered User #189436 Debian Linux Sid (Linux 2.6.13-rc2)
Quoted 3 lines · Jose Luis Domingo Lopez
ACK. Just for the record, there seems to be several people out there with the same problem, and using different motherboards/BIOSes. Check:
http://marc.theaimsgroup.com/?t=112147291000001&r=1&w=2
And I'm one of them :) Any idea if you'll get to this before 2.6.13?
Best regards,
Stian
Quoted 3 lines · Eric W. Biederman
Roughly for your part of the problem the acpi shutdown code needs to get called sooner when interrupts are still enabled.
After the recent patches that went in to the kernel, I downloaded version 2.6.13-rc8-git8, compiled, and now the box powers off correctly. Seems my setup is working fine again now. However, I didn't check if this is working ok all the times, because it seems in another thread that someone is having problems to get his system powering off reliably.
But the precise problem I reported is gone. Thank you Eric.
Greetings,
Signature · 2 lines
Jose Luis Domingo Lopez Linux Registered User #189436 Debian Linux Sid (Linux 2.6.13-rc3-git8)
The behaviour originally noted, as per object, slightly changed at least from 2.6.13-rc3, and still goes on in 2.6.13-rc5, regarding MB ASUS P4P800-E.
Now ACPI still fail to power off that particular MB and reboots it. Everything works fine for other MBs we use, e.g. ASUS P5GD1 PRO. If you need more info, please ask.
Best regards,
Mauro Tassinari
C.M.A. Srl