freebsd-dev/sys/x86
Konstantin Belousov d3ba71b2b1 Limit workaround for errata E400 to appropriate AMD cpus.
From Linux sources and several 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 at all, 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

Reported by:	whu
Reviewed by:	avg
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D26470
2020-10-14 22:57:50 +00:00
..
acpica x86: clean up empty lines in .c and .h files 2020-09-01 21:23:59 +00:00
bios Explicit CTLFLAG_DYN not needed 2020-10-04 19:37:15 +00:00
conf Use envvar rather than nonstandard hint. lines 2020-09-23 19:18:53 +00:00
cpufreq x86: clean up empty lines in .c and .h files 2020-09-01 21:23:59 +00:00
include Limit workaround for errata E400 to appropriate AMD cpus. 2020-10-14 22:57:50 +00:00
iommu Move the rid variable to the generic iommu context. 2020-09-10 14:12:25 +00:00
isa timer_restore is now unused, remove it 2020-10-08 20:56:11 +00:00
pci x86: clean up empty lines in .c and .h files 2020-09-01 21:23:59 +00:00
x86 Limit workaround for errata E400 to appropriate AMD cpus. 2020-10-14 22:57:50 +00:00
xen x86: clean up empty lines in .c and .h files 2020-09-01 21:23:59 +00:00