From nobody Tue Apr 18 03:21:43 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q0q2w1Xfpz45cPx; Tue, 18 Apr 2023 03:21:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q0q2w0KfMz4BGw; Tue, 18 Apr 2023 03:21:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681788104; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8DYbPrBTEB9UPOnPGQ0wAe2LPE0YGDlHu89/F2eSMAA=; b=tkvC657Qwq8kZbqkc+LIP6DwB3OD9LbGBiaTzebKP1t3Qly8V+BRvVBywIIeOup+t+rhaE sGhHmavoHCc0yomfRy01+BH+KSCXLQzqVnmgqG1uALmAljaw0528akM9mcYXckk9QJYfrL UVuLgO05Ii0R3aQNf1NN/VlD2HPxzLWjYkhbGlTb2O9pvVu/Lh35q3qWJ4ERYqin4GzpEZ sWwtBfLnCWlWZCSP/iJAdwJew+/NL1W6IESxiqHtUYes6MFsmQrG/SzL6BczAqWrL5G1dP niULShu09XxO3hN6232YoiQTASMX5JUxjVXoO682qoeUOpSgvgrpB3E4Vm+GcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681788104; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8DYbPrBTEB9UPOnPGQ0wAe2LPE0YGDlHu89/F2eSMAA=; b=lAcrmTXCly27dg7AnnVJSPNjqVFo8ArE79DwJPI01Fw81fwlqO/t3jCYcvoQ5h6MWCcqcD I5GD/gtnL8/dNKQB4lhWCcnFGDCwE/RJbfnaxqUSfbMPSoKDl28f+OqqKnAr8qU1eNZ6lf m9FE9JXSQAgkwgGeVRS96e3hcXCGXcx96VrrhDYZg/rhRLY5uEuW2W3CB/BDBwWormSWEe AAb/yduK1GqwKNJFYSGal9QUR8bWq5Ire9tuX++/qeZBaCcJO3wm9PnJYmkfHgTri5bYM8 83TAyJSPrzwiu8/5Xx6MB3Coa474FUfsnWB6VYWT+7fwunw3NDkZWck9cQHXig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681788104; a=rsa-sha256; cv=none; b=BRVFKktE5+TxHik8bRimJFBcCFmUUjrkLhg6CuxToRkiehvZanst+dVOV6cGfkBTV+wnjT ykJEjAaCJf1sUaGMEeR4MlufkeqN/IYL0XZKtQWL70Kp6H6He4poO98/BDi5dIO/1gZIqI rSkB8ZxlErQ22O8BL4Vqp8czwOUtaA4i/O/uUtyTeEUtxTfBtiLYhvQBsxFhxX+WajB7wT uriZnEreKRoZVbEbE4L/5puyaeErhRqgGemQubkI/71QKNLA29A8Bpr16oOnFnj7pMoRMQ cocV5w4bobL7aThgGbBwoj9IRsfWNYELf/X4fAANslxZpfFCikGCBGAGBF0xSA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q0q2v6VXhzw6c; Tue, 18 Apr 2023 03:21:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33I3Lhju024030; Tue, 18 Apr 2023 03:21:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33I3LhxW024029; Tue, 18 Apr 2023 03:21:43 GMT (envelope-from git) Date: Tue, 18 Apr 2023 03:21:43 GMT Message-Id: <202304180321.33I3LhxW024029@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Stephen J. Kiernan" Subject: git: b5c3ade7657a - main - libsa: Update comments about SMBIOS specification List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: stevek X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b5c3ade7657a0ebb0c0f829d90919858a39dba94 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by stevek: URL: https://cgit.FreeBSD.org/src/commit/?id=b5c3ade7657a0ebb0c0f829d90919858a39dba94 commit b5c3ade7657a0ebb0c0f829d90919858a39dba94 Author: Stephen J. Kiernan AuthorDate: 2023-04-18 01:36:37 +0000 Commit: Stephen J. Kiernan CommitDate: 2023-04-18 03:21:04 +0000 libsa: Update comments about SMBIOS specification Summary: Include details from the SMBIOS 3 specification and some additional details for SMBIOS 2.1. Obtained from: Juniper Networks, Inc. Reviewers: jmg, manu Subscribers: imp, dab Differential Revision: https://reviews.freebsd.org/D39635 --- stand/libsa/smbios.c | 47 +++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a/stand/libsa/smbios.c b/stand/libsa/smbios.c index 1bb78faa3b01..257aa15bd5f5 100644 --- a/stand/libsa/smbios.c +++ b/stand/libsa/smbios.c @@ -43,16 +43,51 @@ __FBSDID("$FreeBSD$"); * * System Management BIOS Reference Specification, v2.6 Final * http://www.dmtf.org/standards/published_documents/DSP0134_2.6.0.pdf + * + * System Management BIOS (SMBIOS) Reference Specification, 3.6.0 + * https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.6.0.pdf */ /* - * 2.1.1 SMBIOS Structure Table Entry Point + * The first quoted paragraph below can also be found in section 2.1.1 SMBIOS + * Structure Table Entry Point of System Management BIOS Reference + * Specification, v2.6 Final + * + * (From System Management BIOS (SMBIOS) Reference Specification, 3.6.0) + * 5.2.1 SMBIOS 2.1 (32-bit) Entry Point + * + * "On non-UEFI systems, the 32-bit SMBIOS Entry Point structure, can be + * located by application software by searching for the anchor-string on + * paragraph (16-byte) boundaries within the physical memory address + * range 000F0000h to 000FFFFFh. This entry point encapsulates an intermediate + * anchor string that is used by some existing DMI browsers. + * + * On UEFI-based systems, the SMBIOS Entry Point structure can be located by + * looking in the EFI Configuration Table for the SMBIOS GUID + * (SMBIOS_TABLE_GUID, {EB9D2D31-2D88-11D3-9A16-0090273FC14D}) and using the + * associated pointer. See section 4.6 of the UEFI Specification for details. + * See section 2.3 of the UEFI Specification for how to report the containing + * memory type. + * + * NOTE While the SMBIOS Major and Minor Versions (offsets 06h and 07h) + * currently duplicate the information that is present in the SMBIOS BCD + * Revision (offset 1Eh), they provide a path for future growth in this + * specification. The BCD Revision, for example, provides only a single digit + * for each of the major and minor version numbers." + * + * 5.2.2 SMBIOS 860 3.0 (64-bit) Entry Point + * + * "On non-UEFI systems, the 64-bit SMBIOS Entry Point structure can be located + * by application software by searching for the anchor-string on paragraph + * (16-byte) boundaries within the physical memory address range 000F0000h to + * 000FFFFFh. * - * "On non-EFI systems, the SMBIOS Entry Point structure, described below, can - * be located by application software by searching for the anchor-string on - * paragraph (16-byte) boundaries within the physical memory address range - * 000F0000h to 000FFFFFh. This entry point encapsulates an intermediate anchor - * string that is used by some existing DMI browsers." + * On UEFI-based systems, the SMBIOS Entry Point structure can be located by + * looking in the EFI Configuration Table for the SMBIOS 3.x GUID + * (SMBIOS3_TABLE_GUID, {F2FD1544-9794-4A2C-992E-E5BBCF20E394}) and using the + * associated pointer. See section 4.6 of the UEFI Specification for details. + * See section 2.3 of the UEFI Specification for how to report the containing + * memory type." */ #define SMBIOS_START 0xf0000 #define SMBIOS_LENGTH 0x10000