]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Add debugging when a microcode update fails
authorSimon Glass <sjg@chromium.org>
Tue, 26 Jul 2016 00:58:57 +0000 (18:58 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 30 Aug 2016 01:26:05 +0000 (09:26 +0800)
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>
arch/x86/cpu/intel_common/cpu.c

index 0fdef6f3690b50ef1c472fa07fd4b7d8de771634..ae42095f4b053fe7d1df5ca1a34ef7951e10dd23 100644 (file)
@@ -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));