x86/microcode_intel_early.c: Early update ucode on Intel's CPU
authorFenghua Yu <fenghua.yu@intel.com>
Fri, 21 Dec 2012 07:44:28 +0000 (23:44 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 31 Jan 2013 21:19:18 +0000 (13:19 -0800)
commitec400ddeff200b068ddc6c70f7321f49ecf32ed5
treeccd0456a90f4dcc5b0aad47233d5d33836008601
parent086fc8f8037bf16f55f82c66b26a8b834f7349ec
x86/microcode_intel_early.c: Early update ucode on Intel's CPU

Implementation of early update ucode on Intel's CPU.

load_ucode_intel_bsp() scans ucode in initrd image file which is a cpio format
ucode followed by ordinary initrd image file. The binary ucode file is stored
in kernel/x86/microcode/GenuineIntel.bin in the cpio data. All ucode
patches with the same model as BSP are saved in memory. A matching ucode patch
is updated on BSP.

load_ucode_intel_ap() reads saved ucoded patches and updates ucode on AP.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Link: http://lkml.kernel.org/r/1356075872-3054-9-git-send-email-fenghua.yu@intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/microcode_intel_early.c [new file with mode: 0644]