Page MenuHomeFreeBSD

Limit workaround for errata E400 to appropriate AMD cpus.
ClosedPublic

Authored by kib on Sep 17 2020, 6:37 PM.
Tags
Referenced Files
Unknown Object (File)
Mon, Jul 28, 4:26 AM
Unknown Object (File)
Sun, Jul 27, 11:04 PM
Unknown Object (File)
Jul 7 2025, 10:07 AM
Unknown Object (File)
Jul 6 2025, 4:58 PM
Unknown Object (File)
Jul 5 2025, 8:21 PM
Unknown Object (File)
Jul 1 2025, 1:24 PM
Unknown Object (File)
Jun 30 2025, 10:06 AM
Unknown Object (File)
Jun 30 2025, 9:07 AM
Subscribers

Details

Summary

From Linux sources and different datasheets I looked at, it seems that the workaround is only needed on families 0xf and 0x10. For instance, Ryzens do not implement the accessed MSR, it is documented as reserved. Also, hypervisors should not allow guest to put CPU into idle state, so activate workaround only when on bare hardware.

While there, style the code:

  • move MSR defines to specialreg.h
  • move identification to initcpu.c

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 33615