HomeFreeBSD

asmc: try PIO before MMIO to avoid false T2 detection

Description

asmc: try PIO before MMIO to avoid false T2 detection

Add hw.asmc.system-state and hw.asmc.board-id read-only sysctls to
expose the T2 system state register and Mac board identifier via SMC.

Try PIO access before MMIO during probe to prevent false T2 detection
on Macs that happen to have something mapped at the T2 BAR address.

Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D57844

Details

Provenance
seurosAuthored on Jul 1 2026, 12:13 AM
adrianCommitted on Jul 1 2026, 12:18 AM
Reviewer
adrian
Differential Revision
D57844: asmc: try PIO before MMIO to avoid false T2 detection
Parents
rG9ea13242985d: bhyve: Add CPU pinning diagnostic message
Branches
Unknown
Tags
Unknown