]> Git Repo - J-u-boot.git/commitdiff
x86: Add debugging when a microcode update fails
authorSimon Glass <[email protected]>
Tue, 26 Jul 2016 00:58:57 +0000 (18:58 -0600)
committerBin Meng <[email protected]>
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 <[email protected]>
Reviewed-by: Heiko Schocher<[email protected]>
Reviewed-by: Bin Meng <[email protected]>
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));
This page took 0.03638 seconds and 4 git commands to generate.