Page MenuHomeFreeBSD

acpi: New R/O 'hw.acpi.s4bios_supported' sysctl, gate S4BIOS with it
Needs ReviewPublic

Authored by olce on Fri, Jan 9, 5:09 PM.
Tags
None
Referenced Files
F141910420: D54627.id169409.diff
Mon, Jan 12, 9:45 AM
F141872248: D54627.id169409.diff
Sun, Jan 11, 7:10 PM
Unknown Object (File)
Fri, Jan 9, 11:00 PM
Unknown Object (File)
Fri, Jan 9, 9:29 PM
Unknown Object (File)
Fri, Jan 9, 7:37 PM
Subscribers

Details

Reviewers
obiwac
jhb
Summary

As a safeguard, make sure that we won't try to enter S4 with the
firmware initiating machine state save if the ACPI implementation does
not indicate it as supported as per the standard (FACS present with bit
S4BIOS_F set).

This is also in preparation of probably switching the default for
'hw.acpi.s4bios' to false once OSPM-initiated S4 support is ready, in
which case administrators need some way to determine whether
firmware-initiated S4 support is possible. For now, we keep the same
default (set to true iff supported).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 69770
Build 66653: arc lint + arc unit

Event Timeline

olce requested review of this revision.Fri, Jan 9, 5:09 PM

Should we even allow hw.acpi.s4bios to be set if not supported? feels like it could be confusing to users not super familiar with power management that hw.acpi.s4bios is set but the system is not entering S4BIOS.

sys/dev/acpica/acpivar.h
532

nitpick, but i think acpi_should_do_s4bios or something is a clearer name that acpi_S4_should_firmware_initiate