From nobody Sun May 12 22:07:02 2024 Delivered-To: importer@patchew.org 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+86989+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1645717802877926.8210571430993; Thu, 24 Feb 2022 07:50:02 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id gO6WYY1788612xKusQ5i3B5p; Thu, 24 Feb 2022 07:50:02 -0800 X-Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.61]) by mx.groups.io with SMTP id smtpd.web09.12105.1645717801355058976 for ; Thu, 24 Feb 2022 07:50:01 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C1P4fzpW0sIubXbtpWAoPWPiNQwRe++vEH10lAOd44bFO0E00z22ebjTUnPKqds4+USHH7h1Qh31UAp9uY5D8LPrPlftsFIINjuLzmegYDnLBs2mOxYEZN9WarUFbS8yYTuNEgS9QnVnZAC/iOvf8ljSvMy97UPav/blK2jeMQRAVIuMRk1D2hAT507PkLhx5VFrQsE7PyVHYHMgBYiZc2qyGYw9RfYNxxVkc6aYiQqEfEzZmEvHGTAcHjt/XMX9mBPrAxibZyyjhCKKZFi32zFSUpE7AAPgKBadxV3D/6YqroQPEnpnDExh9Pe/VI/NDIiPpNGjO8gecYHDjzrQWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Apw4vOR0ZR/aAEmbnUF1XVJZuof2cz8ojLAFkX/DVrM=; b=N/YWlBB+bAeAZZlZ6TRPi2DQZ8vQJM21uBnIPPpPpJAEudB9MhDhwYaPVAHQhbJgkoVtEx7385LDBpsEynJC+ByWLmTgbb9ONJLI1uI95VhEP3NPjUY9V0A1h3Po2BCCFMcUC/nXA0xbMh4OdgKtq03sR1qOi+3/0RcRqDZGeMN6qAQ2HSN8eRGiqtFiCdoe4IVSm3DT7uU+jXyUDzTCGgG4JErHBJcVlcVuhnJdRvQaEIYtWp/FSt8nl6FMpuhGe4k6sCbBw6Z9I68H5VL6jB1OGRn8AwmZdhOPyIGL7KmV/7jeYkTLVFbDcfn3qaFgMFwpOJ0F5IfaKuQhY5EnAg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none X-Received: from MW4PR03CA0205.namprd03.prod.outlook.com (2603:10b6:303:b8::30) by BYAPR12MB2629.namprd12.prod.outlook.com (2603:10b6:a03:69::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.24; Thu, 24 Feb 2022 15:49:58 +0000 X-Received: from CO1NAM11FT040.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b8:cafe::ef) by MW4PR03CA0205.outlook.office365.com (2603:10b6:303:b8::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.21 via Frontend Transport; Thu, 24 Feb 2022 15:49:58 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; 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+86989+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; X-Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1NAM11FT040.mail.protection.outlook.com (10.13.174.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5017.22 via Frontend Transport; Thu, 24 Feb 2022 15:49:58 +0000 X-Received: from SATLEXMB08.amd.com (10.181.40.132) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Thu, 24 Feb 2022 09:49:57 -0600 X-Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Thu, 24 Feb 2022 07:49:56 -0800 X-Received: from BLR-LAB-SFW01.amd.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2375.18 via Frontend Transport; Thu, 24 Feb 2022 09:49:55 -0600 From: "Abdul Lateef Attar via groups.io" To: CC: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [edk2-devel] [PATCH v3 1/1] MdePkg/Include: Smbios Specification 3.5.0 changes Date: Thu, 24 Feb 2022 21:20:03 +0530 Message-ID: <20220224155003.24032-2-abdattar@amd.com> In-Reply-To: <20220224155003.24032-1-abdattar@amd.com> References: <20220224155003.24032-1-abdattar@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 02ab338e-1113-471b-6ea4-08d9f7ad4f7e X-MS-TrafficTypeDiagnostic: BYAPR12MB2629:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: 52od2NPAjw9yMd/VAfC/+LEgieoX4CeWhOQ9Y0b/mEUqzkSc/S4nhJaOMpcYAJukecIQrq56hwonrhRl4AxdbB66b++IO9kWvduZaWhIbo8POjCyEO0zsTDPs71j0DRXzgkwn5gbvUzI0EVF2xk8sFgSISqGxYWCEKxgzFBXHIlxC/PTiz1eZTbxHjOoFqEqHltG5qftjaoDNNFDCbOX/U4XxYmXxkW14PcQp5IZqZstGIpnUMc940Vpr1Hkp3Kqf1zfl6tqXac7/Ot1WJIXgxV4K91hJCDLIIIH/8n5WC1hDsBk38DR4TKgAUFIJTlBcDRlXLdrriK/OEp1Sh+ez715Md03Wg1TLZDFYTloHPyHa+Ezb6R7+wCUCTNoFeUVpikvhRQyEehK6XLjFDrPrRRYrQAyDMZ1CbRMUX1C8bGWsel1EET24AmelkppP9YFFZn7XcTHqq5KU5Zn3sRutCo96H8eLFzKrnLlQJRObGrqsueRkEflPM8zQufRvKL2ADBu7uqicooZCBJUzHlFbuAmAOUISs/fnnBQeppe86qe7F6Q/esKY0uJ9lRdtnMeq2FHhUEsIdptUPKDKfj8VjhODOcWoECq3IUkGe9UOc6LsgW83wJ4xZoWB4zr6kenidgPRZlWAu/DLFm69b99mJKVx+TZpgtx8eeLkYM738Xq6dl6zqii1mDuoRRnuFZRDHO1Mo5L8bdr/yxOZ5wVBw== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2022 15:49:58.3006 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 02ab338e-1113-471b-6ea4-08d9f7ad4f7e X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT040.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB2629 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,abdattar@amd.com X-Gm-Message-State: Q9UIXJ0pCQdS2WSLUyqlYZX9x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1645717802; bh=QzDq0OmDEVsVmSwR+oUDLmbtyJI/5WpjJKObENkcMSc=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=qRTw8TpakYHavpMclDwNrWaXA7ykjechp098zP2Q3Q5wwgz8OhTKXoVE9o2u/lJ/X1/ 5CShilq1P+ciBDY+23Y2NhsHMWjPBRsaUhg5KqfIOGxhadsO45ktUdWzLP4z+3n94tNgn xbR9opTpUiS+V3vBuxdaLPIPBk2D3I7dfT0= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1645717808121100001 Content-Type: text/plain; charset="utf-8" Adds following changes 1) Added support for manufacturing mode in BIOS Characteristics Extension Byte 2. 2) Added support for slot height in System Slot Table (type 9). 3) Updated Built-in pointing device interface with USB, I2C and SPI. 4) Updates Onboard Devices Extended Information with wireless LAN, bluetooth, WWAN, eMMC, NVMe and UFC. 5) Added new table Firmware Inventory Information (Type 45) and its corresponding enum values. 6) Added new table String Property Table (Type 46) and its corresponding enum values. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Abdul Lateef Attar Reviewed-by: Liming Gao --- MdePkg/Include/IndustryStandard/SmBios.h | 144 +++++++++++++++++++- 1 file changed, 140 insertions(+), 4 deletions(-) diff --git a/MdePkg/Include/IndustryStandard/SmBios.h b/MdePkg/Include/Indu= stryStandard/SmBios.h index 828ea6d753c2..2b1567b0528b 100644 --- a/MdePkg/Include/IndustryStandard/SmBios.h +++ b/MdePkg/Include/IndustryStandard/SmBios.h @@ -1,9 +1,10 @@ /** @file - Industry Standard Definitions of SMBIOS Table Specification v3.3.0. + Industry Standard Definitions of SMBIOS Table Specification v3.5.0. =20 Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.
(C) Copyright 2015-2017 Hewlett Packard Enterprise Development LP
(C) Copyright 2015 - 2019 Hewlett Packard Enterprise Development LP
+Copyright (c) 2022, AMD Incorporated. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -94,6 +95,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #define SMBIOS_TYPE_MANAGEMENT_CONTROLLER_HOST_INTERFACE 42 #define SMBIOS_TYPE_TPM_DEVICE 43 #define SMBIOS_TYPE_PROCESSOR_ADDITIONAL_INFORMATION 44 +#define SMBIOS_TYPE_FIRMWARE_INVENTORY_INFORMATION 45 +#define SMBIOS_TYPE_STRING_PROPERTY_INFORMATION 46 =20 /// /// Inactive type is added from SMBIOS 2.2. Reference SMBIOS 2.6, chapter = 3.3.43. @@ -252,7 +255,9 @@ typedef struct { UINT8 TargetContentDistributionEnabled : 1; UINT8 UefiSpecificationSupported : 1; UINT8 VirtualMachineSupported : 1; - UINT8 ExtensionByte2Reserved : 3; + UINT8 ManufacturingModeSupported : 1; + UINT8 ManufacturingModeEnabled : 1; + UINT8 ExtensionByte2Reserved : 1; } MBCE_SYSTEM_RESERVED; =20 /// @@ -1401,6 +1406,17 @@ typedef struct { UINT8 Reserved : 1; ///< Set to 0. } MISC_SLOT_CHARACTERISTICS2; =20 +/// +/// System Slots - Slot Height +/// +typedef enum { + SlotHeightNone =3D 0x00, + SlotHeightOther =3D 0x01, + SlotHeightUnknown =3D 0x02, + SlotHeightFullHeight =3D 0x03, + SlotHeightLowProfile =3D 0x04 +} MISC_SLOT_HEIGHT; + /// /// System Slots - Peer Segment/Bus/Device/Function/Width Groups /// @@ -1446,6 +1462,10 @@ typedef struct { UINT8 SlotInformation; UINT8 SlotPhysicalWidth; UINT16 SlotPitch; + // + // Add for smbios 3.5 + // + UINT8 SlotHeight; ///< The enumerati= on value from MISC_SLOT_HEIGHT. } SMBIOS_TABLE_TYPE9; =20 /// @@ -2004,7 +2024,9 @@ typedef enum { PointingDeviceInterfaceADB =3D 0x08, PointingDeviceInterfaceBusMouseDB9 =3D 0xA0, PointingDeviceInterfaceBusMouseMicroDin =3D 0xA1, - PointingDeviceInterfaceUsb =3D 0xA2 + PointingDeviceInterfaceUsb =3D 0xA2, + PointingDeviceInterfaceI2c =3D 0xA3, + PointingDeviceInterfaceSpi =3D 0xA4 } BUILTIN_POINTING_DEVICE_INTERFACE; =20 /// @@ -2508,7 +2530,13 @@ typedef enum { OnBoardDeviceExtendedTypeSound =3D 0x07, OnBoardDeviceExtendedTypePATAController =3D 0x08, OnBoardDeviceExtendedTypeSATAController =3D 0x09, - OnBoardDeviceExtendedTypeSASController =3D 0x0A + OnBoardDeviceExtendedTypeSASController =3D 0x0A, + OnBoardDeviceExtendedTypeWirelessLAN =3D 0x0B, + OnBoardDeviceExtendedTypeBluetooth =3D 0x0C, + OnBoardDeviceExtendedTypeWWAN =3D 0x0D, + OnBoardDeviceExtendedTypeeMMC =3D 0x0E, + OnBoardDeviceExtendedTypeNvme =3D 0x0F, + OnBoardDeviceExtendedTypeUfc =3D 0x10 } ONBOARD_DEVICE_EXTENDED_INFO_TYPE; =20 /// @@ -2646,6 +2674,112 @@ typedef struct { UINT32 OemDefined; } SMBIOS_TABLE_TYPE43; =20 +/// +/// Firmware Inventory Version Format Type (Type 45). +/// +typedef enum { + VersionFormatTypeFreeForm =3D 0x00, + VersionFormatTypeMajorMinor =3D 0x01, + VersionFormatType32BitHex =3D 0x02, + VersionFormatType64BitHex =3D 0x03, + VersionFormatTypeReserved =3D 0x04, /// 0x04 - 0x7F are reserved + VersionFormatTypeOem =3D 0x80 /// 0x80 - 0xFF are BIOS Vendor/O= EM-specific +} FIRMWARE_INVENTORY_VERSION_FORMAT_TYPE; + +/// +/// Firmware Inventory Firmware Id Format Type (Type 45). +/// +typedef enum { + FirmwareIdFormatTypeFreeForm =3D 0x00, + FirmwareIdFormatTypeUuid =3D 0x01, + FirmwareIdFormatTypeReserved =3D 0x04, /// 0x04 - 0x7F are reserved + InventoryFirmwareIdFormatTypeOem =3D 0x80 /// 0x80 - 0xFF are BIOS Ven= dor/OEM-specific +} FIRMWARE_INVENTORY_FIRMWARE_ID_FORMAT_TYPE; + +/// +/// Firmware Inventory Firmware Characteristics (Type 45). +/// +typedef enum { + CharacteristicsUpdatable =3D 0x00, + CharacteristicsWriteProtected =3D 0x01, + CharacteristicsReserved =3D 0x02 /// 0x02 - 0x0F are reserved +} FIRMWARE_INVENTORY_CHARACTERISTICS; + +/// +/// Firmware Inventory State Information (Type 45). +/// +typedef enum { + FirmwareInventoryStateOther =3D 0x01, + FirmwareInventoryStateUnknown =3D 0x02, + FirmwareInventoryStateDisabled =3D 0x03, + FirmwareInventoryStateEnabled =3D 0x04, + FirmwareInventoryStateAbsent =3D 0x05, + FirmwareInventoryStateStandbyOffline =3D 0x06, + FirmwareInventoryStateStandbySpare =3D 0x07, + FirmwareInventoryStateUnavailableOffline =3D 0x08, +} FIRMWARE_INVENTORY_STATE; + +/// +/// Firmware Inventory Information (Type 45) +/// +/// The information in this structure defines an inventory of firmware +/// components in the system. This can include firmware components such as +/// BIOS, BMC, as well as firmware for other devices in the system. +/// The information can be used by software to display the firmware invent= ory +/// in a uniform manner. It can also be used by a management controller, +/// such as a BMC, for remote system management. +/// This structure is not intended to replace other standard programmatic +/// interfaces for firmware updates. +/// One Type 45 structure is provided for each firmware component. +/// +typedef struct { + SMBIOS_STRUCTURE Hdr; + SMBIOS_HANDLE RefHandle; + + UINT8 FirmwareComponentName; + UINT8 FirmwareVersion; + UINT8 FirmwareVersionFormat; ///< The enumeration value= from FIRMWARE_INVENTORY_VERSION_FORMAT_TYPE + UINT8 FirmwareId; + UINT8 FirmwareIdFormat; + UINT8 ReleaseDate; + UINT8 Manufacturer; + UINT8 LowestSupportedVersion; + UINT64 ImageSize; + UINT32 Characteristics; + UINT8 State; + UINT8 AssociatedComponentCount; + /// + /// zero or n-number of handles depends on AssociatedComponentCount + /// handles are of type SMBIOS_HANDLE + /// +} SMBIOS_TABLE_TYPE45; + +/// +/// String Property IDs (Type 46). +/// +typedef enum { + StringPropertyIdNone =3D 0x0000, + StringPropertyIdDevicePath =3D 0x0001, + StringPropertyIdReserved =3D 0x0002, /// Reserved 0x0002 - 0x7FFF + StringPropertyIdBiosVendor =3D 0x8000, /// BIOS vendor 0x8000 - 0xBFFF + StringPropertyIdOem =3D 0xC000 /// OEM range 0xC000 - 0xFFFF +} STRING_PROPERTY_ID; + +/// +/// This structure defines a string property for another structure. +/// This allows adding string properties that are common to several struct= ures +/// without having to modify the definitions of these structures. +/// Multiple type 46 structures can add string properties to the same +/// parent structure. +/// +typedef struct { + SMBIOS_STRUCTURE Hdr; + SMBIOS_HANDLE RefHandle; + UINT16 StringPropertyId; + UINT8 StringPropertyValue; + SMBIOS_HANDLE ParentHandle; +} SMBIOS_TABLE_TYPE46; + /// /// Inactive (Type 126) /// @@ -2710,6 +2844,8 @@ typedef union { SMBIOS_TABLE_TYPE42 *Type42; SMBIOS_TABLE_TYPE43 *Type43; SMBIOS_TABLE_TYPE44 *Type44; + SMBIOS_TABLE_TYPE45 *Type45; + SMBIOS_TABLE_TYPE46 *Type46; SMBIOS_TABLE_TYPE126 *Type126; SMBIOS_TABLE_TYPE127 *Type127; UINT8 *Raw; --=20 2.25.1 -=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 (#86989): https://edk2.groups.io/g/devel/message/86989 Mute This Topic: https://groups.io/mt/89367741/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-