amd64: be more precise when enabling the AlderLake small core PCID workaround
authorKonstantin Belousov <kib@FreeBSD.org>
Tue, 3 Jan 2023 10:13:07 +0000 (12:13 +0200)
committerKonstantin Belousov <kib@FreeBSD.org>
Thu, 5 Jan 2023 23:30:29 +0000 (01:30 +0200)
commita2c08eba43a2c0ebeac7117f708fb9392022a300
treee11b8222f7615641ae06348f984d020dc0c104ad
parent65fa2fd23b9de1dd81a0a5fafc1d69757792edac
amd64: be more precise when enabling the AlderLake small core PCID workaround

In particular, do not enable the workaround if INVPCID is not supported
by the core.

Reported by: "Chen, Alvin W" <Weike.Chen@Dell.com>
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D37940
sys/amd64/amd64/initcpu.c
sys/amd64/amd64/machdep.c
sys/amd64/amd64/pmap.c
sys/amd64/include/md_var.h