git: feat: acpi: install Darwin _OSI on Apple hardware
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed May 6 13:09:06 PDT 2026
commit 7e4f5e5ddde1db4b6680a9254edef7d62ce6d7a5
Author: Abdelkader Boudih <dragonflybsd at seuros.com>
Date: Wed May 6 19:41:48 2026 +0000
feat: acpi: install Darwin _OSI on Apple hardware
Apple firmware checks _OSI("Darwin") during ACPI init and sets
OSYS=0x2710, making OSDW() return 1. Many device methods gate
behind OSDW() for GPU visibility, Thunderbolt, and power management.
Add hw.acpi.apple_darwin_osi tunable (default 1) that installs the
Darwin interface and disables Windows vendor strings on Apple hardware,
matching Linux and FreeBSD behavior.
Register apple_fw in the kernel build system (sys/conf/files).
The apple_fw driver reads the tunable and falls back to a late fixup
(re-evaluate PINI or direct OSYS poke) when the early path missed,
while respecting the user's choice when the tunable is disabled.
Summary of changes:
sys/conf/files | 3 ++
sys/dev/acpica/acpi.c | 34 ++++++++++++++++++++++
sys/dev/apple/fw/apple_fw.c | 70 +++++++++++++++++++++++++++++++++++++++++++--
3 files changed, 105 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7e4f5e5ddde1db4b6680a9254edef7d62ce6d7a5
--
DragonFly BSD source repository
More information about the Commits
mailing list