From patchwork Tue Jul 26 00:58:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 652507 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3rz0CY0hdCz9t1Z for ; Tue, 26 Jul 2016 11:00:09 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=lWrLhGaU; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 87944A7690; Tue, 26 Jul 2016 03:00:07 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dPFF-ebmtErL; Tue, 26 Jul 2016 03:00:07 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BF825A767A; Tue, 26 Jul 2016 03:00:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F23F5A767A for ; Tue, 26 Jul 2016 03:00:04 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8nwyJYd69tE6 for ; Tue, 26 Jul 2016 03:00:04 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-it0-f50.google.com (mail-it0-f50.google.com [209.85.214.50]) by theia.denx.de (Postfix) with ESMTPS id 376ACA763B for ; Tue, 26 Jul 2016 03:00:00 +0200 (CEST) Received: by mail-it0-f50.google.com with SMTP id f6so122436547ith.0 for ; Mon, 25 Jul 2016 18:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=AXGdHOFuH2Ns/YpT1sYPKAP1UmZSM+Qth1B6CIVJxpE=; b=lWrLhGaU0OLYGe8faHshiZpB6LoEEh4EfAaRxD32orPSL2Vg9UG3mXo0OPJ0CsZPmM bxQTLGGhD9ZvekoflTxA2I8QGgDeE8vmv9mvSkapc5zPdFzPJA8DC0KNXkUxBsHDlYwu gg4PZwcjHJrjeFVfoKecjsB2Z6uwfjlfCgRrnSyPmzVrtoei7pL/cUY3pOTeGa/7YFCs 39Mb8XTVottvUEjZnKy1HM0T9nFqXsbEpVuSBOmo9RaWz5q/n5FOo3766Nf4gzEFo8Xd C0UYIcKtYmr12EBcGPgfql3aO5oxaUWV3jaEB/1EWk1DjM1U8rRvs04qVCXKZKzdq5wb Zzfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=AXGdHOFuH2Ns/YpT1sYPKAP1UmZSM+Qth1B6CIVJxpE=; b=DCvFtseVofgF3+OxcjbiMQlRLD3CFzwTSAynU15Tj/2GHVLBQKXhWJ8QibstEyDmPX bLDzyPDAOlET7IKCvVlvXZS+C8uay5PX72MMJar4Jdm2J4jup1wauS2h6haThpf6ONFq SGo/eskj2ZsR4jOg+nxVglAb4nm3Pe3FBHHEZpLrinxpmPYmVr/WNQNTaHDsmA4n16bx nV7P0kOLoeC/futQpsVJ0W5mUpBP7apvOk/fKGCnCJn43xMx6AOxkQiePaxZy0VksBbk qjqCnpW+J6fktNWmA93YJhd3U4POYVMurDkHyinjkw+/nPwITHATmb4h2r6DBVzDsoip 9LHA== X-Gm-Message-State: ALyK8tLpZ5EKG8qKl7A5jDLnD0R8IF7aJ3bLo0SYgKpUfSv2MaGbn2fuQdKbsjsUPF3Xzj9q X-Received: by 10.36.228.138 with SMTP id o132mr85179426ith.49.1469494799529; Mon, 25 Jul 2016 17:59:59 -0700 (PDT) Received: from kaki.bld.corp.google.com ([100.100.202.55]) by smtp.gmail.com with ESMTPSA id v138sm10322907ita.13.2016.07.25.17.59.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jul 2016 17:59:58 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 6B204220F90; Mon, 25 Jul 2016 18:59:58 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Mon, 25 Jul 2016 18:58:57 -0600 Message-Id: <1469494766-26601-2-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1469494766-26601-1-git-send-email-sjg@chromium.org> References: <1469494766-26601-1-git-send-email-sjg@chromium.org> Cc: Tom Rini Subject: [U-Boot] [PATCH 01/30] x86: Add debugging when a microcode update fails X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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 --- arch/x86/cpu/intel_common/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/cpu/intel_common/cpu.c b/arch/x86/cpu/intel_common/cpu.c index 0fdef6f..ae42095 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));