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 D3EDCC433EF for ; Thu, 4 Nov 2021 03:14:19 +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 5AB6860F56 for ; Thu, 4 Nov 2021 03:14:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5AB6860F56 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 46F2183707; Thu, 4 Nov 2021 04:11:36 +0100 (CET) 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="dN5ICt8C"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3B82583668; Thu, 4 Nov 2021 04:10:46 +0100 (CET) Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) (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 D23EC8364B for ; Thu, 4 Nov 2021 04:10:20 +0100 (CET) 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-oi1-x235.google.com with SMTP id u2so6954037oiu.12 for ; Wed, 03 Nov 2021 20:10:20 -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=jOVo9kpBJOSfKqVMYA75yQ3UXr7DrTcWgebgLm60buE=; b=dN5ICt8C2rHN/0rk07ynT3TJbRpuFwnyPyaL2YajauiAfH80cbjb8GJrXz9wgDuq19 lPGilUeOskZ1VkP8EXfeEEMRIMGkKnh3snTvzwGQanOnDi9HMckq0SMQCgs+GZgJE5N2 CFsKtpv7zqLPQoXhoanjgvIPWLP5+FirJyWsA= 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=jOVo9kpBJOSfKqVMYA75yQ3UXr7DrTcWgebgLm60buE=; b=xDvTocu/6AuhJlOMlT6w3PWnKl1T5eH1qyEuVWBjZQismtAt+my7cIZ6FfYmG+0ovu f0rSXtuSaVuZrC7uVFEwVI1JHjmhdyJb+M/D5FASDX1c23Ftm44gRTRQwRtGeeKPCG0T YShXeSjCORivYe9vq/VmCZvzsRqSQzMg/iFJ7r35iSZG0bggg0Zz0VCOwjbfzvkCvsf6 GoB2FtBXElQ5C0EntAyjp80vHY+36TTiLwWOaqj7qtcfZr8L/hPLHhcn2+hAVki03bXi 2HVORht+MBVSwH1RV4WZEv/oif50tRn8CDDGO2UTfmlfm566EOMytqTX3hjLUE/NpsRd vNmw== X-Gm-Message-State: AOAM532qF0SNUl6NYYDsTULd6YIFyypKF8gWmxF6/K2hGuSWElbDrGEr HWpKcrw7S+ERb17F0VUEzwldNfVHdtKkSA== X-Google-Smtp-Source: ABdhPJzbnWlZy9FUozyT0nn7qMp6JLC8z4JnVMIPFzTMFYRyingz8x22qRDADd0KxfJISKyYWk2hlQ== X-Received: by 2002:aca:120e:: with SMTP id 14mr5166207ois.128.1635995419302; Wed, 03 Nov 2021 20:10:19 -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 j25sm1050197oos.23.2021.11.03.20.10.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 20:10:18 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Ilias Apalodimas , Tom Rini , Christian Melki , Heinrich Schuchardt , Bin Meng , Simon Glass , Alexander Graf Subject: [PATCH v4 34/34] efi: Show the system-table revision Date: Wed, 3 Nov 2021 21:09:36 -0600 Message-Id: <20211104030936.2446706-22-sjg@chromium.org> X-Mailer: git-send-email 2.34.0.rc0.344.g81b53c2807-goog In-Reply-To: <20211104030936.2446706-1-sjg@chromium.org> References: <20211104030936.2446706-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 --- (no changes since v3) Changes in v3: - Add new patch to show the system-table revision Changes in v2: - Add new patch to support the efi command in the app 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.34.0.rc0.344.g81b53c2807-goog