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
F142260245: D26470.diff
Sat, Jan 17, 10:04 PM
Unknown Object (File)
Sun, Dec 21, 5:08 PM
Unknown Object (File)
Sat, Dec 20, 12:13 AM
Unknown Object (File)
Dec 12 2025, 2:41 PM
Unknown Object (File)
Nov 25 2025, 10:52 PM
Unknown Object (File)
Nov 21 2025, 4:56 PM
Unknown Object (File)
Oct 25 2025, 6:50 PM
Unknown Object (File)
Oct 25 2025, 1:29 PM
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 Not Applicable
Unit
Tests Not Applicable