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)
commitc0a717f23dccdb6e3b03471bc846fdc636f2b353
tree5dca56fcd2b5f92621911f8afb1f6ea5993ba885
parent85be07c32496dc264661308e4d9d4e9ccaff8072
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: 5335ba5cf475 ("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