]> git.baikalelectronics.ru Git - kernel.git/commit
x86, microcode, AMD: Fix ucode patch stashing on 32-bit
authorBorislav Petkov <bp@suse.de>
Wed, 5 Nov 2014 16:42:42 +0000 (17:42 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 10 Nov 2014 12:50:55 +0000 (13:50 +0100)
commit3228175de9a4df74fd16ef9cade7bf87ec95a560
tree5dca56fcd2b5f92621911f8afb1f6ea5993ba885
parent94f556d3a50be443a2a481cebb0110ad6f4e859e
x86, microcode, AMD: Fix ucode patch stashing on 32-bit

Save the patch while we're running on the BSP instead of later, before
the initrd has been jettisoned. More importantly, on 32-bit we need to
access the physical address instead of the virtual.

This way we actually do find it on the APs instead of having to go
through the initrd each time.

Tested-by: Richard Hendershot <rshendershot@mchsi.com>
Fixes: a6cb194d4964 ("x86, microcode, AMD: Fix early ucode loading")
Cc: <stable@vger.kernel.org> # v3.13+
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/kernel/cpu/microcode/amd_early.c