]> git.baikalelectronics.ru Git - kernel.git/commit
x86/microcode: Attempt late loading only when new microcode is present
authorBorislav Petkov <bp@suse.de>
Wed, 14 Mar 2018 18:36:14 +0000 (19:36 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 16 Mar 2018 19:55:51 +0000 (20:55 +0100)
commit92176b079884a22602edbf74fa786cb706681131
tree47c242f71716d90d80c84f6e8c2ac576737fc4a3
parent9b8de77f9a42a7981ba038be5c0699f3089a1ab4
x86/microcode: Attempt late loading only when new microcode is present

Return UCODE_NEW from the scanning functions to denote that new microcode
was found and only then attempt the expensive synchronization dance.

Reported-by: Emanuel Czirai <xftroxgpx@protonmail.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Emanuel Czirai <xftroxgpx@protonmail.com>
Tested-by: Ashok Raj <ashok.raj@intel.com>
Tested-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lkml.kernel.org/r/20180314183615.17629-1-bp@alien8.de
arch/x86/include/asm/microcode.h
arch/x86/kernel/cpu/microcode/amd.c
arch/x86/kernel/cpu/microcode/core.c
arch/x86/kernel/cpu/microcode/intel.c