From patchwork Mon Oct 6 23:21:50 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 539 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759793002; bh=lfkC1J/ATxXUNvEudMggg7zKn/G27nUH7RXCfb/MEyc=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=c4R4CQQZpwp0Gx3pDVoiV62RZg2YgKgoFvyV+/J18g3xoMaxw6Id3jmKsMtlhICyD xmqX9+DUO+XaiyrZJU8c38SZUjGDClLZ3gAYDyTJIyCUACn8hQCA+Vu+K5OxEp7kup V4BnvKqpbmWPGUpUve0bz34LB7gG9xLfcPTCptO7t8xNJJQdryytU3zGsS9n6XFTkk GtXwa/F2rb/jbFEyg2YLeqxWD0h7PY6V5tsq9oRfFjdXPfiIvFyQf9viY9LKKKoilb HovnIbS+xy4PfbX+6HxzvhKgfWmn/bxMn0qhf79UiLuj5AOy0Zr8XX1SycXAKYMwoX Ccv9v79iINMXw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id F2DA467FDE for ; Mon, 6 Oct 2025 17:23:22 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id niDeLh_Qq-5H for ; Mon, 6 Oct 2025 17:23:22 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759793002; bh=lfkC1J/ATxXUNvEudMggg7zKn/G27nUH7RXCfb/MEyc=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=c4R4CQQZpwp0Gx3pDVoiV62RZg2YgKgoFvyV+/J18g3xoMaxw6Id3jmKsMtlhICyD xmqX9+DUO+XaiyrZJU8c38SZUjGDClLZ3gAYDyTJIyCUACn8hQCA+Vu+K5OxEp7kup V4BnvKqpbmWPGUpUve0bz34LB7gG9xLfcPTCptO7t8xNJJQdryytU3zGsS9n6XFTkk GtXwa/F2rb/jbFEyg2YLeqxWD0h7PY6V5tsq9oRfFjdXPfiIvFyQf9viY9LKKKoilb HovnIbS+xy4PfbX+6HxzvhKgfWmn/bxMn0qhf79UiLuj5AOy0Zr8XX1SycXAKYMwoX Ccv9v79iINMXw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3529A67DB4 for ; Mon, 6 Oct 2025 17:23:22 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759793000; bh=cf3tm/icY4oJ4coiaNN6NVRWOVyM0OWc6yFDfe+MqNg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lNfwwQdRb2k+LY2xPRv3xDZM5tw4Ek5gVjZVwuYwqjN22dJlEKJw/F5OHi39SBlKu MZ3GQwsJZGY2si6hfPxb9YMfSzxYAppsL6onyYKBboMS4tpXjbkFmLOYP8Xf60xJXo BbBhT3VhBXbcfRLjrPX08J9JRqkHCDP/f0ZlxWSq3XBIgky91Qe2Ko3kT+CqX3TOOv CJLHiJlvBwW5QTBYwCiHMohQLDZorJPJIG0yRq6AshQdGgq6PhALDyMWhB3R1iUa85 XkLElMOHBO/jEhDQ+6TcMOwCY7o346SY4LxkZhn3Z9oom4T6l4V93W/g4DDO1RcJyX 12VKF7li0qgUQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 26A6167AF3; Mon, 6 Oct 2025 17:23:20 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id GpZ06tG7TnTP; Mon, 6 Oct 2025 17:23:20 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759792998; bh=YpHUwS0ExShiI9v3AMgNjLGBspZfpU9Ew7OaLeSYS3g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rjnn02T1dAPzJOk4cSQxpX4pQ5wheaDiBbw5vvN5YebKhv/wUDUGc+xU0DTzHyJ6m 2ka/mo6uaV8+/OxXW5GyNspxE87sxmE7qQNNbZht6i94s8US1cLAAKXDOBaXdZ9g6+ eOh/3mE3ClxkgvSo2sEx/fNOVUQ+qXjcE4/sifsivakTCxekoMLvr/A+4gXUdYYouI 6XLWykxgyAPw7g2wvmGxasT0c9IW4fGu9o+H+jYgQ/EcpBkz6LonK+EnmNjL0HtBHm SFAf7cmxLtyTmGYf+B+El04sOMQ9wFR9LAdaUG1yRR20cPForm+FBGtKnm7nK9wneQ XSyHEaV7zdP4Q== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 5D13C67DB4; Mon, 6 Oct 2025 17:23:18 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Mon, 6 Oct 2025 17:21:50 -0600 Message-ID: <20251006232236.2091941-9-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251006232236.2091941-1-sjg@u-boot.org> References: <20251006232236.2091941-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 6KT5EMEMAGJ5K7IB5ZUF2J33ZEQ7EG6W X-Message-ID-Hash: 6KT5EMEMAGJ5K7IB5ZUF2J33ZEQ7EG6W X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass , Claude X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 08/17] efi: app: Support reading SMBIOS3 tables List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Check for both GUIDs when looking for the SMBIOS tables. This allows both table versions to be detected when running from OVMF. Co-developed-by: Claude Signed-off-by: Simon Glass --- lib/efi_client/efi_app.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/efi_client/efi_app.c b/lib/efi_client/efi_app.c index c851173f1ae..00003c27ec5 100644 --- a/lib/efi_client/efi_app.c +++ b/lib/efi_client/efi_app.c @@ -164,7 +164,8 @@ static void free_memory(struct efi_priv *priv) static void scan_tables(struct efi_system_table *sys_table) { efi_guid_t acpi = EFI_ACPI_TABLE_GUID; - efi_guid_t smbios = SMBIOS3_TABLE_GUID; + efi_guid_t smbios = SMBIOS_TABLE_GUID; + efi_guid_t smbios3 = SMBIOS3_TABLE_GUID; uint i; for (i = 0; i < sys_table->nr_tables; i++) { @@ -172,8 +173,9 @@ static void scan_tables(struct efi_system_table *sys_table) if (!memcmp(&tab->guid, &acpi, sizeof(efi_guid_t))) gd_set_acpi_start(map_to_sysmem(tab->table)); - else if (!memcmp(&tab->guid, &smbios, sizeof(efi_guid_t))) - gd->arch.smbios_start = map_to_sysmem(tab->table); + else if (!memcmp(&tab->guid, &smbios, sizeof(efi_guid_t)) || + !memcmp(&tab->guid, &smbios3, sizeof(efi_guid_t))) + gd_set_smbios_start(map_to_sysmem(tab->table)); } }