Re: [2.6.12-git8] ACPI shutdown fails to power off machine

From: Eric W. Biederman
Date: Tue Jul 19 2005 - 05:42:37 EST


Jose Luis Domingo Lopez <linux-kernel@xxxxxxxxxxxxx> writes:

> 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.

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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/