Page MenuHomeFreeBSD

mps(4): add support for hostboot
Needs ReviewPublic

Authored by allanjude on Sun, Sep 20, 1:52 AM.
Tags
None
Referenced Files
F172682942: D59854.id187256.diff
Sun, Sep 20, 4:53 AM
F172673891: D59854.id187256.diff
Sun, Sep 20, 3:02 AM
F172673851: D59854.diff
Sun, Sep 20, 3:01 AM
Subscribers

Details

Summary

If the mps/mpr(4) device has corrupted or missing firmware then
it will fail to attach at boot.

Add a new mpsutil hostboot command, to reset the device and boot
from firmware loaded from host memory.

Also add an interface to use firmware(9) to load the firmware at boot.

Loosely based on https://github.com/marcan/lsirec/

Assisted by: Claude Code (Sonnet 5)
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77102
Build 73985: arc lint + arc unit

Event Timeline

sys/dev/mpr/mpr.c
979

I've never done this kind of driver stuff (DMA) before, so this needs extra careful review.