From: Simon Glass Date: Tue, 26 Jul 2016 00:58:57 +0000 (-0600) Subject: x86: Add debugging when a microcode update fails X-Git-Tag: v2016.09~59 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fda4fa8195bab36879272e92973a7ef39e759795;p=oweals%2Fu-boot.git 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 Reviewed-by: Heiko Schocher Reviewed-by: Bin Meng --- diff --git a/arch/x86/cpu/intel_common/cpu.c b/arch/x86/cpu/intel_common/cpu.c index 0fdef6f369..ae42095f4b 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));