aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/cpu/intel_common
diff options
context:
space:
mode:
authorSimon Glass2016-07-25 18:58:57 -0600
committerBin Meng2016-08-30 09:26:05 +0800
commitfda4fa8195bab36879272e92973a7ef39e759795 (patch)
tree5d68192384d861ba8527af7e2ea476242e4e4bee /arch/x86/cpu/intel_common
parentff62bdfbd5dd67d37901002a35b541f2c65ad78d (diff)
x86: Add debugging when a microcode update fails
Add a debug() at this point to help figure out what is wrong. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher<hs@denx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu/intel_common')
-rw-r--r--arch/x86/cpu/intel_common/cpu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/cpu/intel_common/cpu.c b/arch/x86/cpu/intel_common/cpu.c
index 0fdef6f3690..ae42095f4b0 100644
--- a/arch/x86/cpu/intel_common/cpu.c
+++ b/arch/x86/cpu/intel_common/cpu.c
@@ -42,8 +42,10 @@ int cpu_common_init(void)
enable_lapic();
ret = microcode_update_intel();
- if (ret && ret != -EEXIST)
+ if (ret && ret != -EEXIST) {
+ debug("%s: Microcode update failure (err=%d)\n", __func__, ret);
return ret;
+ }
/* Enable upper 128bytes of CMOS */
writel(1 << 2, RCB_REG(RC));