]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/microcode: Update the new microcode revision unconditionally
authorFilippo Sironi <sironi@amazon.de>
Tue, 31 Jul 2018 15:29:30 +0000 (17:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Sep 2018 20:43:37 +0000 (22:43 +0200)
commitff225750dc4e70ce5c4288fe3850ae9dc69df024
treef9daf54eea4094323f8bcb071603c4e3aa0cf9d5
parent05104410c9d109e1d9b4d2e59f7de9d9722ec47f
x86/microcode: Update the new microcode revision unconditionally

commit 8da38ebaad23fe1b0c4a205438676f6356607cfc upstream.

Handle the case where microcode gets loaded on the BSP's hyperthread
sibling first and the boot_cpu_data's microcode revision doesn't get
updated because of early exit due to the siblings sharing a microcode
engine.

For that, simply write the updated revision on all CPUs unconditionally.

Signed-off-by: Filippo Sironi <sironi@amazon.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: prarit@redhat.com
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/1533050970-14385-1-git-send-email-sironi@amazon.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/microcode/amd.c
arch/x86/kernel/cpu/microcode/intel.c