From patchwork Tue Oct 7 17:05:25 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 558 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=1759856805; bh=8OFeqHPt/d7g9BV1m/lJTUcioDMTVTERE0Dcut4OLL4=; 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=s3OBoMDANxDmKBCqZPaY8eI+BNBGolViKtxvgnzbVpzsJYEq7cjms3GS36EAZ+7Q6 egNJR/0oec34Ovv4OGYqUju2Ow/5UrmdzSGdwdUD+zGUpbfLC+HDNUfr5rslappGdj jzuQVrxgogDudsA87lAUW3w4dPvl54NglEr9lGbWbjTXphSVGsaidjFNuLcLi/hRdK h+SWEpTwycCL9zAp4P4g1qhBsuB7B10xPHPFvXAHcdADdDfyQC4WiqCVLQBPhoEGJf SEo2u/l7sRCKCbvurJNf7S5iqjaWyu6Y34m92IoXELXEwJjqHJhfb2m7Pc3nUpqrTq nAPAWQQCbgmhw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C6FF268014 for ; Tue, 7 Oct 2025 11:06:45 -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 VULgSY4eplKo for ; Tue, 7 Oct 2025 11:06:45 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759856804; bh=8OFeqHPt/d7g9BV1m/lJTUcioDMTVTERE0Dcut4OLL4=; 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=cBP3ZUNdHNjL/R1+oucTw1AdeiByMZZn1+cN4v/81aTuiJoi7B/8+4pwfYGnes7W7 fudcq4moKr0S3x//B+vnPc8YT9wtND5JVseIyPdkLIxOXU5Ivmca7bzIVuytCyk8Dl cyPh5vETi2Sseb2ZJTcLRuZ7Ontwdo3X6KWWefrju4h8FgaNTUMjquTkVpRUjTvx0q jGVdG8OhLDUwi/DKmNrHDEfElnve5C+37Oyjcson2AOFfpB8aRMsFrlROpKaXz5OZj sri9Z6SOIrN98bmrFMTQomYSBkuLQ20qaY6wMlqr/yIdkpsnZP2crbUNQcM4W2WudM 0+9EpBfL5mRHw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5E1FE68016 for ; Tue, 7 Oct 2025 11:06:44 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759856801; bh=Gj6cPPElmO0mYOIJjryH+c0nLixeyWuF1eXTA0sQd2U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k4hfmPK4cQsmPbvHrbFtmZpWRoQof5amNlw3A+hGrT50C7ScC5TibM5Ppa6IwGI1K uiYY1xQJVXuEaz7KvGv6rLH/HY6pWnVpKbwxcCBgIzQu84iBSHIOeYTY9yyvCxXNeQ 9QUBvVuKmt4lBd5wWbjBashWKtg7FMdpunG/NrwXaoRXcG0ZbDoXRXN8ahOE7p+z9k Qa/BICum6/zklmmuB6PCUeLi5Xctlt0kPTeeVj4opfj2oiRnw53hi8iOxvrkmdnBiI BK4fVrFAznMFfzgrMEq+PmcYnLa12NcFUBIYfyzafIxd/LdHMOCi1MTNSfaYbO40Oy 0sV41YgcxbmYg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D735067F1E; Tue, 7 Oct 2025 11:06:41 -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 72vhNPpp_TZd; Tue, 7 Oct 2025 11:06:41 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1759856801; bh=kuEKHPPw/FwGyIRP0dtTtAs2T50wpYqzuEQxoHApJUY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aMSlJYRRMaP0f8SNQ4butT0UvuDuC+L5BL9LEu8tcKasUmtVp8xkXzxOACuWHCL38 WFAPyfivWVO3+G64JSrd4mx9DIkDFXIe43wVYSP995kHDq6CtTL5qKoVr9GhAj+P5I He3hpvrjkM/oU7y2wmCQDVRr3vpMcLLsOvgbgeYLWJCr33f1vnrPOREg4YNITB7QeJ Gl56qf5QWrX8+2oKgeO6n6mqjMI2v+Q1cRG86vSDjWkTjl9A2BBeNYl7ecYTh3MvHI oh/rByuBXWpfMlwRDGQzTDpQgXvl9EvUPXEypPpTj5224mu5HNQpY6yRxfawqXmkqM AeC0muZWCdQRw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 444E467ECE; Tue, 7 Oct 2025 11:06:41 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Tue, 7 Oct 2025 11:05:25 -0600 Message-ID: <20251007170549.541981-12-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251007170549.541981-1-sjg@u-boot.org> References: <20251007170549.541981-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: DCINBZA7N2VFCUZ7OALURFBGEMP3J2VU X-Message-ID-Hash: DCINBZA7N2VFCUZ7OALURFBGEMP3J2VU 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 v2 11/20] 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 --- (no changes since v1) 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)); } }