Commit fda4fa81 authored by Simon Glass's avatar Simon Glass Committed by Bin Meng
Browse files

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's avatarSimon Glass <>
Reviewed-by: Heiko Schocher<>
Reviewed-by: Bin Meng's avatarBin Meng <>
parent ff62bdfb
...@@ -42,8 +42,10 @@ int cpu_common_init(void) ...@@ -42,8 +42,10 @@ int cpu_common_init(void)
enable_lapic(); enable_lapic();
ret = microcode_update_intel(); ret = microcode_update_intel();
if (ret && ret != -EEXIST) if (ret && ret != -EEXIST) {
debug("%s: Microcode update failure (err=%d)\n", __func__, ret);
return ret; return ret;
/* Enable upper 128bytes of CMOS */ /* Enable upper 128bytes of CMOS */
writel(1 << 2, RCB_REG(RC)); writel(1 << 2, RCB_REG(RC));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment