Page MenuHomeFreeBSD

gpioaei: Add support for ACPI _EVT method
Needs ReviewPublic

Authored by wulf on Feb 12 2025, 9:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 14, 5:18 AM
Unknown Object (File)
Tue, Mar 11, 2:25 PM
Unknown Object (File)
Feb 20 2025, 11:38 PM
Unknown Object (File)
Feb 19 2025, 5:32 AM
Unknown Object (File)
Feb 16 2025, 5:11 PM

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
ahmadkhalifa570_gmail.com 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.