The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=55184423f93f7832681cbe5d55caa0f5789d44aa
commit 55184423f93f7832681cbe5d55caa0f5789d44aa Author: Osvaldo Janeri Filho <[email protected]> AuthorDate: 2026-12-04 13:10:51 +0000 Commit: Konstantin Belousov <[email protected]> CommitDate: 2026-12-04 19:21:13 +0000 amd64: Do not use INVLPGB on Zen 2 Cyan Skillfish (Family 17h Model 47h) reports INVLPGB, but using it crashes the system. No Zen 2 part supports INVLPGB, so ignore the CPUID bit there, as Linux does since a74bb5f202da. Reviewed by: kib Sponsored by: Advanced Micro Devices, Inc. Signed-off-by: Osvaldo Janeri Filho <[email protected]> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D62389 --- sys/amd64/amd64/machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 6e4cfd29852d..002f0b6c0ec4 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -1561,7 +1561,7 @@ hammer_time(u_int64_t modulep, u_int64_t physfree) finishidentcpu(); /* Final stage of CPU initialization */ invlpgb_works = (amd_extended_feature_extensions & - AMDFEID_INVLPGB) != 0; + AMDFEID_INVLPGB) != 0 && ident_zen_cpu() != CPU_AMD_ZEN2; TUNABLE_INT_FETCH("vm.pmap.invlpgb_works", &invlpgb_works); if (invlpgb_works) invlpgb_maxcnt = cpu_procinfo3 & AMDID_INVLPGB_MAXCNT;
