suspend/resume improved?
Nate Lawson
nate at root.org
Fri Dec 10 10:43:29 PST 2004
Ulrich Spoerlein wrote:
> On Wed, 08.12.2004 at 12:58:26 -0800, Nate Lawson wrote:
>
>>Add an infinite loop at various points in the suspend process until it
>>hangs but doesn't reset. Start with the end of the first function below
>>and work your way backwards. Once you identify the exact place the
>>reset occurs, we can figure out why. Use boot -s to keep from having to
>>fsck on each reset or hang.
>>
>>AcpiEnterSleepState():sys/contrib/dev/acpica/hwsleep.c
>
>
> Line 444 is the culprit:
> ACPI_FLUSH_CPU_CACHE ();
>
> Status = AcpiHwRegisterWrite (ACPI_MTX_DO_NOT_LOCK, ACPI_REGISTER_PM1A_CONTROL, PM1AControl);
> if (ACPI_FAILURE (Status))
> {
> return_ACPI_STATUS (Status);
> }
>
> Putting the loop before AcpiHwRegisterWrite will enter infinite loop,
> putting it after it -> Reset
Interesting. If you add a "DELAY(10000);" before the register write,
does this help? A more likely issue is that we need to write pm1a/b at
the same time. Let me think about this and get you more info later.
--
Nate
More information about the freebsd-acpi
mailing list