]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Nov 2014 17:23:13 +0000 (09:23 -0800)
commit25bc2ccef6c4f2312086423da6f150d86d956d37
tree4c79233b29abd38148ed76a907eb88be42c68814
parentaf07bb46530c26de20eeeafea7f7272d5d5d78c1
x86, microcode, AMD: Fix ucode patch stashing on 32-bit

commit c0a717f23dccdb6e3b03471bc846fdc636f2b353 upstream.

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")
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/microcode/amd_early.c