Message ID | 20211026033058.430010-22-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Heinrich Schuchardt |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=XBHF6Hod; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Hdcvw3C9dz9sRN for <incoming@patchwork.ozlabs.org>; Tue, 26 Oct 2021 14:37:32 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 21E2583664; Tue, 26 Oct 2021 05:34:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="XBHF6Hod"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4074683597; Tue, 26 Oct 2021 05:32:08 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 120AE8357A for <u-boot@lists.denx.de>; Tue, 26 Oct 2021 05:31:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd2d.google.com with SMTP id h196so18372064iof.2 for <u-boot@lists.denx.de>; Mon, 25 Oct 2021 20:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7xe9qiH0yZnM2dIjrnemyX3Ycqcn+YdMk2WCTS39u0I=; b=XBHF6Hod34jkb9No11kX6eZ6rtoEpABmMAHfIqzzFhYxsm47nlJAvS7afWsSDicN8b +2mD3dRK7f4MBjSMp0hCIG2LA0/7U8NhappzdDFyEWagzH/ftRrJnTo1MU9V6CSPrxMn C/Gv0tOZIIaQ6HQl8SszcLInzJgpavDasg6y0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7xe9qiH0yZnM2dIjrnemyX3Ycqcn+YdMk2WCTS39u0I=; b=491il1IiWyfmvL+cUV1vYkfHYpUb8x4GPeHm7FSWJDpk2Eb+fdNnoeURoq4ARIMu71 n6n5QL1MmDHegeIbOoEbmi0Fez+FlDiO0ODHG5YKmhQRP/oiGwl7pJjmynZy9xEh7HUT /cR0k2EmrCEJYCbA3IgArVWL5hZqIcX/bbiS2i/CXfdoS9c6z1lyfI+IkcKJ6bly+2bT 9UzWuqMHpoH0V3rzSvDFGmZQ8p2cFwC8kKu1rFod30Pgf+64CYI+ymFiD8lD+MS1gkM6 tqTlEz818BuuNVaYt/kHdRn5sg2yV16wOOwaH251H7lNI8p2iTnF0Yc2FZ9StiqpVo78 CaUQ== X-Gm-Message-State: AOAM530aVYM5mInprSAFIAxkHzcy9dehYsIot+4evYWStVVw6jgWIhKC at+f9JCOv0IsdjE4eqOuhmtPjG/Z4A6eIg== X-Google-Smtp-Source: ABdhPJyWhTGZySe0pphsIKJnjc+seB9xaxr3ABBseUGKdNV8m2qkllTqX5vzDZ4GMjB/A+nqls99MA== X-Received: by 2002:a05:6602:2d85:: with SMTP id k5mr13601412iow.92.1635219097682; Mon, 25 Oct 2021 20:31:37 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id s10sm10127203ild.78.2021.10.25.20.31.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Oct 2021 20:31:37 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>, Christian Melki <christian.melki@t2data.com>, Bin Meng <bmeng.cn@gmail.com>, Tom Rini <trini@konsulko.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org>, Alexander Graf <agraf@csgraf.de> Subject: [PATCH v3 35/35] efi: Show the system-table revision Date: Mon, 25 Oct 2021 21:30:58 -0600 Message-Id: <20211026033058.430010-22-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog In-Reply-To: <20211026033058.430010-1-sjg@chromium.org> References: <20211026033058.430010-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
efi: Improvements to U-Boot running on top of UEFI
|
expand
|
diff --git a/arch/x86/cpu/efi/payload.c b/arch/x86/cpu/efi/payload.c index d2aa889a2b9..b7778565b19 100644 --- a/arch/x86/cpu/efi/payload.c +++ b/arch/x86/cpu/efi/payload.c @@ -7,6 +7,7 @@ #include <common.h> #include <cpu_func.h> #include <efi.h> +#include <efi_api.h> #include <errno.h> #include <init.h> #include <log.h> @@ -296,8 +297,14 @@ void setup_efi_info(struct efi_info *efi_info) void efi_show_bdinfo(void) { struct efi_entry_systable *table = NULL; + struct efi_system_table *sys_table; int size, ret; ret = efi_info_get(EFIET_SYS_TABLE, (void **)&table, &size); - bdinfo_print_num_l("efi_table", (ulong)table); + if (!ret) { + bdinfo_print_num_l("efi_table", table->sys_table); + sys_table = (struct efi_system_table *)(uintptr_t) + table->sys_table; + bdinfo_print_num_l(" revision", sys_table->fw_revision); + } }
Show the revision of this table this is can be important. Alo update the 'efi table' entry to show the actual address of the EFI table rather than our table that points to it. This saves a step and the intermediate table has nothing else in it. Signed-off-by: Simon Glass <sjg@chromium.org> --- Changes in v3: - Add new patch to show the system-table revision arch/x86/cpu/efi/payload.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)