From: "Andrei Warkentin" <awarkentin@vmware.com>
To: Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>,
"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>,
Leif Lindholm <leif@nuviainc.com>, Pete Batard <pete@akeo.ie>
Subject: Re: [edk2-platform][PATCH v1 1/1] Platforms/RaspberryPi: Add SMBIOS Type 11
Date: Thu, 18 Jun 2020 07:01:20 +0000 [thread overview]
Message-ID: <BN6PR05MB3411EE1CFC0AF27025144667B99B0@BN6PR05MB3411.namprd05.prod.outlook.com> (raw)
In-Reply-To: <20200618042257.16093-1-Samer.El-Haj-Mahmoud@arm.com>
[-- Attachment #1: Type: text/plain, Size: 3058 bytes --]
Reviewed-by: Andrei Warkentin <awarkentin@vmware.com>
________________________________
From: Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>
Sent: Wednesday, June 17, 2020 11:22 PM
To: devel@edk2.groups.io <devel@edk2.groups.io>
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>; Leif Lindholm <leif@nuviainc.com>; Andrei Warkentin <awarkentin@vmware.com>; Pete Batard <pete@akeo.ie>
Subject: [edk2-platform][PATCH v1 1/1] Platforms/RaspberryPi: Add SMBIOS Type 11
SMBIOS Type 11 (OEM Strings) is recommended in SBBR 1.2.
Add a simlpe implementation to the RPi.
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Andrei Warkentin <awarkentin@vmware.com>
Cc: Pete Batard <pete@akeo.ie>
Signed-off-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com>
---
Platform/RaspberryPi/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.c | 27 ++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/Platform/RaspberryPi/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.c b/Platform/RaspberryPi/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.c
index 7b86e76a1248..f336084520a9 100644
--- a/Platform/RaspberryPi/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.c
+++ b/Platform/RaspberryPi/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.c
@@ -389,6 +389,20 @@ CHAR8 *mSysSlotInfoType9Strings[] = {
NULL
};
+
+/***********************************************************************
+ SMBIOS data definition TYPE 11 OEM Strings
+************************************************************************/
+
+SMBIOS_TABLE_TYPE11 mOemStringsType11 = {
+ { EFI_SMBIOS_TYPE_OEM_STRINGS, sizeof (SMBIOS_TABLE_TYPE11), SMBIOS_HANDLE_PI_RESERVED },
+ 1 // StringCount
+};
+CHAR8 *mOemStringsType11Strings[] = {
+ "https://github/tianocore/edk2-platforms/Platform/RaspberryPi/",
+ NULL
+};
+
/***********************************************************************
SMBIOS data definition TYPE16 Physical Memory ArrayInformation
************************************************************************/
@@ -854,6 +868,17 @@ SysSlotInfoUpdateSmbiosType9 (
LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER*)&mSysSlotInfoType9, mSysSlotInfoType9Strings, NULL);
}
+/***********************************************************************
+ SMBIOS data update TYPE11 OEM Strings
+************************************************************************/
+VOID
+OemStringsUpdateSmbiosType11 (
+ VOID
+ )
+{
+ LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER*)&mOemStringsType11, mOemStringsType11Strings, NULL);
+}
+
/***********************************************************************
SMBIOS data update TYPE16 Physical Memory Array Information
************************************************************************/
@@ -961,6 +986,8 @@ PlatformSmbiosDriverEntryPoint (
SysSlotInfoUpdateSmbiosType9 ();
+ OemStringsUpdateSmbiosType11 ();
+
PhyMemArrayInfoUpdateSmbiosType16 ();
MemDevInfoUpdateSmbiosType17 ();
--
2.17.1
[-- Attachment #2: Type: text/html, Size: 4890 bytes --]
prev parent reply other threads:[~2020-06-18 7:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-18 4:22 [edk2-platform][PATCH v1 1/1] Platforms/RaspberryPi: Add SMBIOS Type 11 Samer El-Haj-Mahmoud
2020-06-18 7:01 ` Andrei Warkentin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BN6PR05MB3411EE1CFC0AF27025144667B99B0@BN6PR05MB3411.namprd05.prod.outlook.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox