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:03 +0000 (09:23 -0800)
commit60f8e109c344d9fce0f8cc81bf0891cb25612ce8
treef2f387065f65497556ef92ee75ac109b0f4d4dd9
parentaf1017e6645da7d3c30f1e6b3c59ceb6219bf0b2
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