Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E055C433F5 for ; Tue, 26 Oct 2021 03:37:30 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DB17D60E0B for ; Tue, 26 Oct 2021 03:37:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DB17D60E0B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de 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) 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 ; 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 ; 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 To: U-Boot Mailing List Cc: Ilias Apalodimas , Christian Melki , Bin Meng , Tom Rini , Heinrich Schuchardt , Simon Glass , Alexander Graf 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean 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 --- 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(-) 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 #include #include +#include #include #include #include @@ -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); + } } -- 2.33.0.1079.g6e70778dc9-goog