diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2019-05-21 22:56:21 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2019-05-21 22:56:21 +0000 |
commit | 48ec6d3bc99905973fbff667672adb82a3b88a91 (patch) | |
tree | f39a1b71d20a10df4d6a525d59bc83e2221331a7 /sys/amd64 | |
parent | bfc5d3f9c267193574a269d9d265021980292072 (diff) | |
download | src-48ec6d3bc99905973fbff667672adb82a3b88a91.tar.gz src-48ec6d3bc99905973fbff667672adb82a3b88a91.zip |
Do not call hw_mds_recalculate() from initializecpu().
If MDS mitigation is enabled by the tunable but MDS microcode is not
early-loaded, software mitigation is selected. This causes
initializecpu() to try to allocate memory which makes boot process
very unhappy.
Create SYSINIT that runs sufficiently late to succeed.
Reported by: naddy
PR: 237968
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=348075
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/initcpu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/amd64/amd64/initcpu.c b/sys/amd64/amd64/initcpu.c index b1a1b4a5532a..5b574faa9544 100644 --- a/sys/amd64/amd64/initcpu.c +++ b/sys/amd64/amd64/initcpu.c @@ -257,7 +257,6 @@ initializecpu(void) hw_ibrs_recalculate(); hw_ssb_recalculate(false); amd64_syscall_ret_flush_l1d_recalc(); - hw_mds_recalculate(); switch (cpu_vendor_id) { case CPU_VENDOR_AMD: init_amd(); |