From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 7FC4ED80233 for ; Tue, 25 Jul 2023 23:38:40 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=hZ3f8CyxHy1zk9rnbcKiMsYhvEv+Wr78+akEfu9L18Y=; c=relaxed/simple; d=groups.io; h=X-Received:X-Received:ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:X-Received:X-Received:X-MS-Exchange-Authentication-Results:Received-SPF:X-Received:X-Received:X-Received:X-Received:From:To:CC:Subject:Date:Message-ID:X-NVConfidentiality:MIME-Version:X-NV-OnPremToCloud:X-EOPAttributedMessage:X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam-Message-Info:X-OriginatorOrg:X-MS-Exchange-CrossTenant-OriginalArrivalTime:X-MS-Exchange-CrossTenant-Network-Message-Id:X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp:X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs:X-MS-Exchange-CrossTenant-FromEntityHeader:X-MS-Exchange-Transport-CrossTenantHeadersStamped:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:X-Gm-Message-State:Co ntent-Type; s=20140610; t=1690328319; v=1; b=AJGRsdDk13y18ypvRH0IwgP05DL555hvcRDnQInT8LM+bAPyL+KaJHOAS86+5TXJlh+tRI9O eDynzUpV/1Sm6IjAdW3WJuHoxM9GTsrkCQx8lI2/EyKI/TU9TWdYXo97gVlo5freX27U9eSQrGD ZvTYgxm3aqbSXa0vlmyhK8Do= X-Received: by 127.0.0.2 with SMTP id jmqCYY7687511xA8EImGEcx6; Tue, 25 Jul 2023 16:38:39 -0700 X-Received: from NAM11-BN8-obe.outbound.protection.outlook.com (NAM11-BN8-obe.outbound.protection.outlook.com [40.107.236.40]) by mx.groups.io with SMTP id smtpd.web11.104.1690328318450506975 for ; Tue, 25 Jul 2023 16:38:38 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DmXIpTpPOdPPfa24Zm2y/x9p32SqVRtSHUQW7AqxlDQGYOR6XHHy5OQtDaMyQcpa5OsrBIUirFSoqCuELIZBYtNfU+wGHkiUL1pad+9s98NQJeEClWBgOfg/EP7QTtDK8qa8wgrJOYn75JCpSF8aJvzUifPY/wmhO5IWXGfmbEL4lK7/8x0RRCWrlidNvGNmFut6dVuXqChERdZeDqhs15zbilx2B5kB30zkhkRMw5TFEpLSBYk5nkSi6Hrac6IBAa2flIAukXARxwx2KXD5+pUKpHuloxQOu1ycINMW6NCzVGcWnin4tB7TrXkJbES2HpY6NNTt4hrCRhfNTJxIag== 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=GnZv7kwUvee5oEnu68JCC++0j1SJnky04x4d/p5gjbU=; b=OeemAjHptuDJdDkO7dRrt92vpAuzSvaFhe3LcnwC8CXmBH7u4QwU6bYO2XNT846X/EE6jv09Cdp5F9vphoov+TmXuf1aIBCQPPKaHhPNsvN5oN+NEo2uvPh1ViLXc5Mrf1D4DaLgUYg8olKksplpJs6XIBCn2123b86mVrpvfksKZAWw7SXzVrAgDm8j3PUOmF9l6xWvltg1T2Na6IAz3nmUem9FwzvDe10gZAZIIMfbTBEd63ShT30k/ke9ZZBozGM7k5jxoXMhP7PeWCbx2yZb3K2Ei1ElcIX38sMfU3D4ZhxsWyHsWYQKutqCFQeoZNxdud1eABfEX2ZoPb6AIg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none X-Received: from MW4P220CA0015.NAMP220.PROD.OUTLOOK.COM (2603:10b6:303:115::20) by SJ0PR12MB5471.namprd12.prod.outlook.com (2603:10b6:a03:300::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.33; Tue, 25 Jul 2023 23:38:35 +0000 X-Received: from CO1NAM11FT060.eop-nam11.prod.protection.outlook.com (2603:10b6:303:115:cafe::d3) by MW4P220CA0015.outlook.office365.com (2603:10b6:303:115::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.33 via Frontend Transport; Tue, 25 Jul 2023 23:38:35 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C X-Received: from mail.nvidia.com (216.228.117.160) by CO1NAM11FT060.mail.protection.outlook.com (10.13.175.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.29 via Frontend Transport; Tue, 25 Jul 2023 23:38:35 +0000 X-Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 25 Jul 2023 16:38:22 -0700 X-Received: from rnnvmail201.nvidia.com (10.129.68.8) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 25 Jul 2023 16:38:21 -0700 X-Received: from build-gmahadevan-20230109T020417557.nvidia.com (10.127.8.12) by mail.nvidia.com (10.129.68.8) with Microsoft SMTP Server id 15.2.986.37 via Frontend Transport; Tue, 25 Jul 2023 16:38:21 -0700 From: "Girish Mahadevan via groups.io" To: , CC: , , , , , Subject: [edk2-devel] [PATCH v3 0/5] DynamicTablesPkg: Add SMBIOS Table Generation Date: Tue, 25 Jul 2023 23:38:00 +0000 Message-ID: <20230725233805.646668-1-gmahadevan@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT060:EE_|SJ0PR12MB5471:EE_ X-MS-Office365-Filtering-Correlation-Id: cffa9a14-a316-4d72-10b8-08db8d6843c0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: Hmv799jhzGV/QQPgZC+pA5ZJeWZkMXJdfOsMLCGrwK/havJ9W6728MGOVV50HrCPD1LWI+939LViJj+zoDxD6E0GuDH/GLFwoZuixtWZ3v/o/clekjPBWcVO6LaCnNTSL2aIvSC5kGiviTtTZzH6rlz9UrSI55fffjeREhwmv+asrcFv9Eu43jbGFb3GBZzyFyVgj9VFkYv0sTFH7IH9mJHf86eyPFyEEacZTO4bOQlVZDqKNExGY4QKDM8IvFXjBnU5Lta7Z/b/pASjj7DNbeTA1+qdyYZHZFyfcjtEtb5XO3/XN6NJ925D8DTxXE6BN775Z6odriyEf+nMXlF5iZvTYsK1d0y4Bhfu/N5suTc5H+LDQ1EBX/q+UZIoH9NrGgnFV0DW6vxLGUluEuGDpNCFUcZeefmHY0T2wCcHcNnR5M7jn7H8aNTDAQHSEI3wGnw/OZpVXCcCJBeXmKPxF+72B2OdGv9LjtEj1s4aOdRcqykqzLTI6yAg7eVglu0NJOSTwPIPTrpGh5/9DiywnBUNuWSBtmKgNo9dQdbNct4oB0clOLL8kxmh0ez7wFzzfcxEQCdkDxQPnbZf9EYx1mOEshkTdXCcAAkCfHO2Q/YXzXWmxQhe+XgRXDRIBRP1rvEXdX8x893Pjl6F6ZclFPgiP+dEep/anJsLQF9frzz5WwInWRGYuebCddthqyqLWrqfXLCcAD/oad+914qexociUsq3YHnHhPs8Ihg2iNJbojL5yS3SxLPSvlYPPKGTVGpXLsTkRaKxLVN9aSeRUblfq2VUMhGYungnnGFUxZdU5gI2h5CQnaOgKWPxGVag X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2023 23:38:35.4895 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cffa9a14-a316-4d72-10b8-08db8d6843c0 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT060.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5471 Precedence: Bulk 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,gmahadevan@nvidia.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: NpvAkvfydCJkA6JK7xUfoNN0x7686176AA= Content-Type: text/plain X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=AJGRsdDk; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=none; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") Patch series to add SMBIOS Table generation using DynamicTablesPkg This patch series builds on top of the SMBIOS table dispatcher work that dispatches and installs SMBIOS tables in the correct order. This patches series does the following: - Modify the existing DynamicTableManagerDxe driver to remove the Depex on AcpiTableProtocolGuid , instead setup notify callbacks for the ACPI and SMBIOS protocols. This is because not all systems mandate ACPI tables be present in which case SMBIOS tables won't get installed. - Add functions to build and install single and multiple SMBIOS tables similar to ACPI tables. - Modify the Smbios Table Factory code to add a Handle map to go between the SMBIOS handles and the CMObject Token that is used to generate the SMBIOS tables. - After installing each SMBIOS table update the Handle map with the generated SMBIOS handle and the CMObject Token (usually the CM Object used to generate the table) or a generated Token. - Split the ACPI and SMBIOS table manager code into their own files. - Introduce a new namepsace for SMBIOS CM objects. - Add new generator libraries for SMBIOS table type17 (Memory Device) and type16 (Physical Memory Array) This patch series can be seen at https://github.com/tianocore/edk2/compare/master...gmahadevan:RFC/smbios-dyntables-v2-genonly The complete patch series which includes 18 Table Generators is available here: https://github.com/tianocore/edk2/compare/master...gmahadevan:edk2-upstream:RFC/smbios-dyntables-v2 Girish Mahadevan (5): DynamicTablesPkg: Add SMBIOS table generation DynamicTablesPkg: Split the ACPI and SMBIOS table generators DynamicTablesPkg: Introduce new namespace for SMBIOS Objects DynamicTablesPkg: Smbios Memory Device (Type 17) DynamicTablesPkg: Smbios Physical Memory Array (Type 16) .../DynamicTableFactory.h | 5 + .../DynamicTableFactoryDxe.c | 10 + .../SmbiosTableFactory/SmbiosTableFactory.c | 108 +++ .../DynamicTableManagerDxe/AcpiTableBuilder.c | 798 ++++++++++++++++++ .../DynamicTableManagerDxe.c | 781 +---------------- .../DynamicTableManagerDxe.inf | 5 +- .../SmbiosTableBuilder.c | 603 +++++++++++++ .../Include/ConfigurationManagerObject.h | 14 +- .../Protocol/DynamicTableFactoryProtocol.h | 10 + .../Include/SmbiosNameSpaceObjects.h | 131 +++ .../Include/SmbiosTableGenerator.h | 204 ++++- .../SmbiosType16Lib/SmbiosType16Generator.c | 361 ++++++++ .../SmbiosType16Lib/SmbiosType16Lib.inf | 35 + .../SmbiosType17Lib/SmbiosType17Generator.c | 445 ++++++++++ .../SmbiosType17Lib/SmbiosType17Lib.inf | 36 + MdePkg/Include/IndustryStandard/SmBios.h | 8 + 16 files changed, 2805 insertions(+), 749 deletions(-) create mode 100644 DynamicTablesPkg/Drivers/DynamicTableManagerDxe/AcpiTableBuilder.c create mode 100644 DynamicTablesPkg/Drivers/DynamicTableManagerDxe/SmbiosTableBuilder.c create mode 100644 DynamicTablesPkg/Include/SmbiosNameSpaceObjects.h create mode 100644 DynamicTablesPkg/Library/Smbios/SmbiosType16Lib/SmbiosType16Generator.c create mode 100644 DynamicTablesPkg/Library/Smbios/SmbiosType16Lib/SmbiosType16Lib.inf create mode 100644 DynamicTablesPkg/Library/Smbios/SmbiosType17Lib/SmbiosType17Generator.c create mode 100644 DynamicTablesPkg/Library/Smbios/SmbiosType17Lib/SmbiosType17Lib.inf -- 2.17.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107254): https://edk2.groups.io/g/devel/message/107254 Mute This Topic: https://groups.io/mt/100361558/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-