Testing driver suspend

Nate Lawson nate at root.org
Fri May 25 05:32:26 UTC 2007


> -------- Original Message --------
> njl         2007-05-25 05:26:21 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/dev/acpica       acpi.c 
>   Log:
>   Add a sysctl, 'debug.acpi.suspend_bounce', that causes the system to bounce
>   back in a simulated resume instead of entering the requested suspend state.
>   This helps in testing drivers separately from the acpi suspend code.  To
>   test your drivers, set debug.acpi.suspend_bounce=1 and then run
>   acpiconf -s3 (or 4).
>   
>   MFC after:      1 day
>   
>   Revision  Changes    Path
>   1.238     +8 -0      src/sys/dev/acpica/acpi.c

I've added the above sysctl in -current and will MFC soon.  The goal is
to make it easier to test driver suspend/resume methods without doing
the whole system suspend/resume process.  If your drivers are working
right, you should be able to set the sysctl and run your system normally
while doing acpiconf -s3 (or 4) in a loop.

Please test and report any driver bugs found to the list.  Since acpi is
not involved at this point, bugs found should not be acpi bugs.

-- 
Nate


More information about the freebsd-current mailing list