From nobody Tue Feb 10 23:13:08 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+73566+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+73566+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1617156991; cv=none; d=zohomail.com; s=zohoarc; b=FMkS/AYr07PEcVgibjRNbfl1tfuVLe2Bw3ryY13fSpiH3DRqH4f5H4dz3Gv9xpLA2/61jCJ2K66mHtPiwbX206bADF6lUtIgxIXlO2CXw04noeX8CXGOwPANtK2zxzua4tU20A+YP3z1MeeIdtwzDLVlH4iX9E3Xy1vjvAKVhfI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617156991; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=I7wnXoiZv7/1B+PUne3I3FdR394IV5pPd8kD4dU/zgQ=; b=WqcPMdvCIWMv4K7JWn1xIwVb3XllZAEcKe/qkN12E01btJEO9uF6wmAlzMcoz2mL7+mG8sGYBUUBgFU7/4rwYmtrs0qQtAtUMjJ9jKMGE6VGhTk1bHIehVduyg9Rm18ZM1Zhm/QzkoM8VZx6twPuF+jL0AOgavVCldPfNFi8Rmo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+73566+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1617156991699994.9167052263907; Tue, 30 Mar 2021 19:16:31 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id V2sLYY1788612xVLFmop36en; Tue, 30 Mar 2021 19:16:31 -0700 X-Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) by mx.groups.io with SMTP id smtpd.web09.1271.1617156990305223847 for ; Tue, 30 Mar 2021 19:16:30 -0700 X-Received: by mail-oi1-f176.google.com with SMTP id n140so18547172oig.9 for ; Tue, 30 Mar 2021 19:16:30 -0700 (PDT) X-Gm-Message-State: RIXC7h9oXwwEBggkdsiD8QsAx1787277AA= X-Google-Smtp-Source: ABdhPJyooYq8yQm05n5U1jV6alJl8BJmX1JjlgMFIRG783E9uGt6pMulXKs3RgJlmXl95ZzWNAdgIg== X-Received: by 2002:aca:c791:: with SMTP id x139mr626897oif.91.1617156989435; Tue, 30 Mar 2021 19:16:29 -0700 (PDT) X-Received: from cube.nuviainc.com (c-174-52-16-57.hsd1.ut.comcast.net. [174.52.16.57]) by smtp.gmail.com with ESMTPSA id u11sm199996oif.10.2021.03.30.19.16.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Mar 2021 19:16:29 -0700 (PDT) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Leif Lindholm , Ard Biesheuvel Subject: [edk2-devel] [PATCH 3/5] ArmPkg: Allow platforms to report their boot status via OemMiscLib call Date: Tue, 30 Mar 2021 20:16:17 -0600 Message-Id: <20210331021619.19761-4-rebecca@nuviainc.com> In-Reply-To: <20210331021619.19761-1-rebecca@nuviainc.com> References: <20210331021619.19761-1-rebecca@nuviainc.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,rebecca@nuviainc.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1617156991; bh=gYlvxCeXji3WJlblKJSdufMmj23VwXqaX8gkjphLvFM=; h=Cc:Date:From:Reply-To:Subject:To; b=DLhBVC1RZQze8FxQ+/tzD7jmg5rRVHHImUFb7Pv6zkjX9yZbLAul25KjxANAunlUefX ilND32BzeFobjaSmEvtma2H1RbMCPEsdz88hiTvBXjt+Z0nOuE2pgJW03Mh6NOdFe0rwd xNREtPAHISdwvZMQz/JnnUri4LsNTlzibEU= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Add a new function to OemMiscLib to allow platforms to report their boot status into the Type32 SMBIOS table. Signed-off-by: Rebecca Cran --- ArmPkg/Include/Library/OemMiscLib.h = | 10 ++++++++++ ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLib.c = | 14 ++++++++++++++ ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type32/MiscBootInformationFunction.c= | 3 +++ 3 files changed, 27 insertions(+) diff --git a/ArmPkg/Include/Library/OemMiscLib.h b/ArmPkg/Include/Library/O= emMiscLib.h index 25ae508ddb03..0b03fe8d4de3 100644 --- a/ArmPkg/Include/Library/OemMiscLib.h +++ b/ArmPkg/Include/Library/OemMiscLib.h @@ -162,6 +162,16 @@ OemUpdateSmbiosInfo ( IN OEM_MISC_SMBIOS_HII_STRING_FIELD Field ); =20 +/** Fetches the Type 32 boot information status. + + @return Boot status. +**/ +MISC_BOOT_INFORMATION_STATUS_DATA_TYPE +EFIAPI +OemGetBootStatus ( + VOID + ); + /** Fetches the chassis status when it was last booted. =20 @return Chassis status. diff --git a/ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLib.c b/ArmPkg/U= niversal/Smbios/OemMiscLibNull/OemMiscLib.c index e6a4793fe1c2..74101beab1cb 100644 --- a/ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLib.c +++ b/ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLib.c @@ -140,6 +140,20 @@ OemUpdateSmbiosInfo ( ASSERT (FALSE); } =20 +/** Fetches the Type 32 boot information status. + + @return Boot status. +**/ +MISC_BOOT_INFORMATION_STATUS_DATA_TYPE +EFIAPI +OemGetBootStatus ( + VOID + ) +{ + ASSERT (FALSE); + return BootInformationStatusNoError; +} + /** Fetches the chassis status when it was last booted. =20 @return Chassis status. diff --git a/ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type32/MiscBootInformati= onFunction.c b/ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type32/MiscBootInforma= tionFunction.c index 733615bbcf1a..4be1e1cd29a9 100644 --- a/ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type32/MiscBootInformationFunct= ion.c +++ b/ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type32/MiscBootInformationFunct= ion.c @@ -16,6 +16,7 @@ #include #include #include +#include #include =20 #include "SmbiosMisc.h" @@ -59,6 +60,8 @@ SMBIOS_MISC_TABLE_FUNCTION(MiscBootInformation) =20 SmbiosRecord->Hdr.Length =3D sizeof (SMBIOS_TABLE_TYPE32); =20 + SmbiosRecord->BootStatus =3D OemGetBootStatus (); + // // Now we have got the full smbios record, call smbios protocol to add t= his record. // --=20 2.26.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#73566): https://edk2.groups.io/g/devel/message/73566 Mute This Topic: https://groups.io/mt/81741555/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-