]> git.baikalelectronics.ru Git - kernel.git/commit
x86, microcode: Update BSPs microcode on resume
authorBorislav Petkov <bp@suse.de>
Tue, 18 Nov 2014 09:46:57 +0000 (10:46 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Nov 2014 17:32:24 +0000 (18:32 +0100)
commit903e6fc3ca935f3b40b9c5d1db3a6f54c4b0bf19
treee564169a28aa0daac10a4d80a3e8ea9d6dd1be6c
parent8e79963ec97fb18ff2a8496c821392996e089654
x86, microcode: Update BSPs microcode on resume

In the situation when we apply early microcode but do *not* apply late
microcode, we fail to update the BSP's microcode on resume because we
haven't initialized the uci->mc microcode pointer. So, in order to
alleviate that, we go and dig out the stashed microcode patch during
early boot. It is basically the same thing that is done on the APs early
during boot so do that too here.

Tested-by: alex.schnaidt@gmail.com
Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=88001
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: <stable@vger.kernel.org> # v3.9
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/20141118094657.GA6635@pd.tnic
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/microcode/core.c