Page MenuHomeFreeBSD

acpi_einj: Support for ACPI error injection
ClosedPublic

Authored by jhb on Fri, Jul 3, 4:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jul 22, 1:26 PM
Unknown Object (File)
Thu, Jul 16, 2:33 AM
Unknown Object (File)
Thu, Jul 16, 2:02 AM
Unknown Object (File)
Wed, Jul 15, 7:29 AM
Unknown Object (File)
Wed, Jul 15, 7:29 AM
Unknown Object (File)
Mon, Jul 13, 6:23 PM
Unknown Object (File)
Mon, Jul 13, 3:19 AM
Unknown Object (File)
Sun, Jul 12, 6:11 PM
Subscribers

Details

Summary

This driver parses the ACPI EINJ table and builds a list of
instructions associated with known actions. It then exports ioctls to
fetch the set of supported errors and inject system errors by
executing specific sequences of actions. This can be used to test
error reporting facilities for events such as ECC errors.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fix order of operands to copyout for the vendor structure and add apei_if.h
to the module Makefile (noted by Claude)

gallatin added inline comments.
sys/dev/acpica/acpi_einj.c
150

Would be nice to have more data about the expected vs actual data in all these cases. Should be harmless to be chatty, since its under bootverbose, and might reduce round-trips when triaging issues with this.

This revision is now accepted and ready to land.Fri, Jul 3, 5:30 PM
sys/dev/acpica/acpi_einj.c
150

Hmm, for many of these I didn't bother since acpidump -t already outputs these details so you can figure out what didn't match from the dump. It doesn't hurt to be more chatty though.

This revision was automatically updated to reflect the committed changes.