]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit2613f36ed965d0e5a595a1d931fd3b480e82d6fd
tree47c242f71716d90d80c84f6e8c2ac576737fc4a3
parente3b3121fa8da94cb20f9e0c64ab7981ae47fd085
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