Page MenuHomeFreeBSD

mei: add debug-probe driver for Intel ME/HECI firmware status
Needs ReviewPublic

Authored by guest-seuros on Sat, Aug 15, 8:12 PM.
Referenced Files
F166739759: D58863.diff
Sun, Aug 16, 12:41 AM
F166725444: D58863.diff
Sat, Aug 15, 9:25 PM
F166725408: D58863.diff
Sat, Aug 15, 9:25 PM
F166721255: D58863.diff
Sat, Aug 15, 9:01 PM
F166713295: D58863.id184110.diff
Sat, Aug 15, 8:17 PM
F166713107: D58863.diff
Sat, Aug 15, 8:16 PM
Subscribers

Details

Summary

Add an amd64-only diagnostic driver that reads ME Host Firmware
Status registers from PCI configuration space without mapping the
messaging BAR.

Select the HFS register count per device generation, decode sparse
HFS1 state, mode, and error fields, and expose raw and summarized
status via sysctl. Register an ISA-side meifd probe for supported
RCBA/FD2 generations so firmware-hidden HECI functions can be
diagnosed.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 75614
Build 72497: arc lint + arc unit

Event Timeline

adrian added inline comments.
sys/dev/mei/mei_pci.c
34

Do you mind moving register definitions into mei_reg.h ? the strings are fine in the .c file as-is.

444

should this be a separate source file?

share/man/man4/mei.4
67

This is probably more appropriate for the commit message not the man page

74

This kind of detail is probably more appropriate for a block comment inside the source code. The man page should just list what PCHs are supported.