From patchwork Tue Dec 9 14:49:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 419123 X-Patchwork-Delegate: sjg@chromium.org 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 C78DC14009B for ; Wed, 10 Dec 2014 01:54:42 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 318D54B69C; Tue, 9 Dec 2014 15:53:02 +0100 (CET) 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 J7cZuxIsOE1j; Tue, 9 Dec 2014 15:53:02 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 029FD4B670; Tue, 9 Dec 2014 15:53:00 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E6C694B66E for ; Tue, 9 Dec 2014 15:51:46 +0100 (CET) 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 eC+wARKVhLx3 for ; Tue, 9 Dec 2014 15:51:46 +0100 (CET) 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-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by theia.denx.de (Postfix) with ESMTPS id 724074B65A for ; Tue, 9 Dec 2014 15:51:40 +0100 (CET) Received: by mail-pd0-f171.google.com with SMTP id y13so701907pdi.2 for ; Tue, 09 Dec 2014 06:51:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=2Vqq0/4k2bm9+dYO57E//TKhCWtUofKFBo/8SYjZE4o=; b=SgQyZu0k7xOFvF7NNbG2gnX9Q3+Lgn0/LcYWZn1i1P0gp1Dt4kKLSuqUQlYo82VG9L zP9ITihkqrlVPhkbmtfEov+UhxGoTEv1FVVinwDgQ87GehkI/Iwse2Xp3BkJmKHZ74zV ALbKJ+0M3Pbbi3AvVujLihGsDsJHKswGFIB8uuREEYV6igMfP9J4wIpz5u872TURGDSo 3tzCCZ85IYnE/xLSZAQ/5clTmAN4s1CZ400R8i0Jp0XcueJf1CF205aCviHt7uC/bX5K UFuaYcYlPrLJpLbjVhRgghHxk7EH9vfswVfiBYS2DHlEf5VHo/yQ3HCQyYOxHB/RNzxy VrIA== X-Received: by 10.67.22.162 with SMTP id ht2mr6123514pad.49.1418136698240; Tue, 09 Dec 2014 06:51:38 -0800 (PST) Received: from localhost ([106.120.101.38]) by mx.google.com with ESMTPSA id dk5sm1755176pbc.9.2014.12.09.06.51.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 09 Dec 2014 06:51:37 -0800 (PST) From: Bin Meng To: Simon Glass , U-Boot Mailing List Date: Tue, 9 Dec 2014 22:49:58 +0800 Message-Id: <1418136613-4909-13-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1418136613-4909-1-git-send-email-bmeng.cn@gmail.com> References: <1418136613-4909-1-git-send-email-bmeng.cn@gmail.com> Subject: [U-Boot] [PATCH v2 12/27] x86: Add post failure codes for bist and car X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Bin Meng Acked-by: Simon Glass --- Changes in v2: None arch/x86/cpu/ivybridge/cpu.c | 1 + arch/x86/include/asm/post.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/x86/cpu/ivybridge/cpu.c b/arch/x86/cpu/ivybridge/cpu.c index 60976db..969b07b 100644 --- a/arch/x86/cpu/ivybridge/cpu.c +++ b/arch/x86/cpu/ivybridge/cpu.c @@ -263,6 +263,7 @@ static void enable_usb_bar(void) static int report_bist_failure(void) { if (gd->arch.bist != 0) { + post_code(POST_BIST_FAILURE); printf("BIST failed: %08x\n", gd->arch.bist); return -EFAULT; } diff --git a/arch/x86/include/asm/post.h b/arch/x86/include/asm/post.h index 6d2ae5d..f49ce99 100644 --- a/arch/x86/include/asm/post.h +++ b/arch/x86/include/asm/post.h @@ -33,6 +33,8 @@ #define POST_LAPIC 0x30 #define POST_RAM_FAILURE 0xea +#define POST_BIST_FAILURE 0xeb +#define POST_CAR_FAILURE 0xec /* Output a post code using al - value must be 0 to 0xff */ #ifdef __ASSEMBLY__