Add Apple T2 SMC module - #92
Draft
ahowimocaj587-beep wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Adds an
AppleT2SmcPawnIO module for the MMIO-based SMC interface found on Intel Macs with the Apple T2 chip (2018–2020).The module exposes narrowly scoped IOCTL functions for:
F?Tg,F?Md, andFS!).Why
On T2 Macs, the legacy Apple SMC I/O-port interface does not return usable fan or temperature data under Windows. The controller is instead exposed through an MMIO window. A signed PawnIO module is needed so Windows applications can access that interface without bundling a general-purpose raw-memory driver.
The register layout and handshake follow the Linux T2
applesmcimplementation fromMCMrARM/mbp2018-etc.Safety
The module probes the mapped status register before becoming available. Kernel-side write filtering prevents arbitrary SMC writes and permits only fan target/mode keys.
Validation
-C64 -;+ -(+ -p.ACPI\\APP0001with an MMIO resource at0xFE0B0000.This PR is intentionally a draft until maintainers can review the MMIO and write-filtering behavior.