Page MenuHomeFreeBSD

gpioaei: Add support for ACPI _EVT method
AbandonedPublic

Authored by wulf on Feb 12 2025, 9:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 28, 1:39 AM
Unknown Object (File)
Thu, Nov 27, 8:56 PM
Unknown Object (File)
Nov 15 2025, 8:48 AM
Unknown Object (File)
Nov 6 2025, 8:19 PM
Unknown Object (File)
Nov 6 2025, 3:46 AM
Unknown Object (File)
Oct 29 2025, 7:34 AM
Unknown Object (File)
Oct 28 2025, 2:15 PM
Unknown Object (File)
Oct 27 2025, 10:49 PM
Subscribers

Details

Reviewers
cperciva
Summary

This method is often used to process GPIO "Power on" button press on
modern x86 laptops with S0ix sleep mode.

Tested with patch from https://reviews.freebsd.org/D26407

Sponsored by: Future Crew LLC
MFC after: 2 month

Diff Detail

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

Event Timeline

wulf requested review of this revision.Feb 12 2025, 9:32 AM
vexeduxr added inline comments.
sys/dev/gpio/gpioaei.c
74

I think AcpiEvaluateObject (and by extension acpi_SetInteger) should be called in a sleepable context.
This was already wrong before though.