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)
Wed, Oct 9, 5:46 PM
Unknown Object (File)
Tue, Oct 8, 11:35 PM
Unknown Object (File)
Sep 19 2024, 3:01 PM
Unknown Object (File)
Sep 16 2024, 8:20 PM
Unknown Object (File)
Sep 16 2024, 8:20 PM
Unknown Object (File)
Sep 16 2024, 8:20 PM
Unknown Object (File)
Sep 16 2024, 8:09 PM
Unknown Object (File)
Sep 7 2024, 11:57 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