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)
Sun, Oct 12, 11:18 PM
Unknown Object (File)
Sun, Oct 12, 10:59 PM
Unknown Object (File)
Sun, Oct 12, 6:00 PM
Unknown Object (File)
Sun, Oct 12, 7:56 AM
Unknown Object (File)
Thu, Oct 9, 9:06 PM
Unknown Object (File)
Wed, Oct 8, 5:20 AM
Unknown Object (File)
Fri, Oct 3, 2:12 AM
Unknown Object (File)
Thu, Oct 2, 6:24 AM
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.