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 C258AAC17C0 for ; Wed, 6 Mar 2024 14:15:36 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=9V9sbSV/Z2iD44lfqUiqGoaeu/flrbaMRJj8luEO+rQ=; c=relaxed/simple; d=groups.io; h=Received-SPF:From:To:CC:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20240206; t=1709734535; v=1; b=Ibrh+ZVpm15zpyKRdPk+Wc5s9eqfyCUJjCLRab2+9jEOmcWl3vxDuLsHnkCpunD9agQO3sCA iTJ5e6fzO65VClAzjo7kA9lwfQ8KLofciO7/d0L1fRdVdvczfORShfBy4zY5IDFZ2SV1zNa0l3I CVnxGZKspfhvVR8mK8rhvm6wKbs5gFHm8gWzWwiLtspnKN5yocgnKYpZ/JRY/c1+R3HOM0nb+Fb St7vaM5mZT23fVrUfOBPRyrdZDM5QUEL7KljFs9KjObfecv5XqnHgiVg4GWOhTGBOFwR7uV5Hnx juJI2YDC0o63Il7mhALjWcWPY/XpABYtfsu/tsAnsOqEA== X-Received: by 127.0.0.2 with SMTP id z0CjYY7687511xsSXaU3yGvG; Wed, 06 Mar 2024 06:15:35 -0800 X-Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.44]) by mx.groups.io with SMTP id smtpd.web10.12766.1709734534818744138 for ; Wed, 06 Mar 2024 06:15:35 -0800 X-Received: from CH2PR16CA0014.namprd16.prod.outlook.com (2603:10b6:610:50::24) by MN2PR12MB4437.namprd12.prod.outlook.com (2603:10b6:208:26f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.26; Wed, 6 Mar 2024 14:15:31 +0000 X-Received: from CH2PEPF0000009C.namprd02.prod.outlook.com (2603:10b6:610:50:cafe::55) by CH2PR16CA0014.outlook.office365.com (2603:10b6:610:50::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.39 via Frontend Transport; Wed, 6 Mar 2024 14:15:30 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) 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.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C X-Received: from mail.nvidia.com (216.228.118.233) by CH2PEPF0000009C.mail.protection.outlook.com (10.167.244.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.11 via Frontend Transport; Wed, 6 Mar 2024 14:15:30 +0000 X-Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Wed, 6 Mar 2024 06:15:17 -0800 X-Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Wed, 6 Mar 2024 06:15:16 -0800 X-Received: from NV-CL38DL3.nvidia.com (10.127.8.9) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Wed, 6 Mar 2024 06:15:15 -0800 From: "Nickle Wang via groups.io" To: CC: Abner Chang , Igor Kulchytskyy , "Nick Ramirez" Subject: [edk2-devel] [edk2-redfish-client][PATCH v2 0/3] introduce Redfish Resource Config2 protocol. Date: Wed, 06 Mar 2024 06:15:35 -0800 Message-ID: <20240306141515.24244-1-nicklew@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PEPF0000009C:EE_|MN2PR12MB4437:EE_ X-MS-Office365-Filtering-Correlation-Id: cdd93a1e-8a63-4f46-ff1a-08dc3de7e16c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: COQKcgMDKQQTYMLl6idgTUA5zB0d87B2vQJENwAkXTz2HJNZY2b5quLIjbKyto3gxFCnF1BqW04V3GZ0IHQcZZgSz69EygPDiPKF9Z5XEmdje7AJa9KZOB1mA22tiu3Y42yVK+nbQUfFqk7I51IOK08yDOeXOp7N7dktdDTPiPdtGzIu918/iVr65Od8tF20A79SnJgsZ9WBU2xeIC4iS/VwrYA3jHVolKJ3Udvs4QiKEgyemKltEh8LqPDvGHwpSaqC+eBcSjzgLQwLNHHkgO55E2QjrFHNMNRMBYF5zt+deOgMCYIzKek2UnmxX08UiHe3k5grBhI9Lomn6jGbfQMLh2fwCn1oc7AZAA1awI/Hla91kQPzcuY/C4AevWBysYqN8NVi6BLzHu2SXiluQS6CkpjeKLvu3GKoA7o/pgpvr6umVvkzkSCP2L0LrsgOqkq5xdaykyhlYnUl2SH2es8ljfA0GFQp86QvabdJw2bbpl0XSKvikONAwcV8ICG4nJLPxtHe3n5hpYRp3gvBSrsHn3wuLQEdnva8YyN2tlS/UVi33VTQo2Yho6FmCA3mGWZnjG90XV1p1fYLMCHPybH9LfmVM3CYxC/5+Gl3XfdGYgHtxC7CgDvjIzvneUtogSGfKSdNCi/7sWTkikCitygMC0OjxF5Z7r+si6JYMNr80mK2TLspE7bz7Hu51Jv+9McK99f9Dn+AED8ELFWc34UesqbjvXPWMQ8+agRNRNbEFyAdmOl6FjdkIbLqN54s X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2024 14:15:30.6961 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cdd93a1e-8a63-4f46-ff1a-08dc3de7e16c X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.233];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CH2PEPF0000009C.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4437 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,nicklew@nvidia.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: ar8O5VNto5cRhEnsBmJS8saGx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-Spam-Flag: yes X-Spam-Level: ************ X-GND-Spam-Score: 190 X-GND-Status: SPAM Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=Ibrh+ZVp; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io v2: address review comment about the description of "JsonText" parameter. Introduce EDKII Redfish Resource Config2 Protocol so that caller can=20 pass Redfish data to callee when caller uses "expand" query parameter to get multiple Redfish resources all together. Then, callee does not=20 get Redfish resource from Redfish service again and save the communication effort between BIOS and Redfish service. EdkIIRedfishConfigLib is updated to select Redfish Resource Config2=20 Protocol as first priority. If there is no Config2 protocol supported, library will use config protocol automatically. Pull request is created:=20 https://github.com/tianocore/edk2-redfish-client/pull/80 Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez Nickle Wang (3): RedfishClientPkg: introduce Redfish resource config2 protocol. RedfishClientPkg/Edk2RedfishResourceConfigLib: support config2 protocol RedfishClientPkg/Features: support config2 protocol RedfishClientPkg/RedfishClientPkg.dec | 2 + .../EdkIIRedfishResourceConfigLib.inf | 4 +- .../Library/EdkIIRedfishResourceConfigLib.h | 33 +- .../EdkIIRedfishResourceConfig2Protocol.h | 158 +++++++ .../EdkIIRedfishResourceConfigInternal.h | 44 ++ .../Features/Bios/v1_0_9/Common/BiosCommon.c | 14 +- .../BootOptionCollectionDxe.c | 14 +- .../ComputerSystemCollectionDxe.c | 16 +- .../MemoryCollectionDxe/MemoryCollectionDxe.c | 16 +- .../EdkIIRedfishResourceConfigLib.c | 391 ++++++++++++++---- 10 files changed, 575 insertions(+), 117 deletions(-) create mode 100644 RedfishClientPkg/Include/Protocol/EdkIIRedfishResourceC= onfig2Protocol.h create mode 100644 RedfishClientPkg/Library/EdkIIRedfishResourceConfigLib/= EdkIIRedfishResourceConfigInternal.h --=20 2.34.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 (#116444): https://edk2.groups.io/g/devel/message/116444 Mute This Topic: https://groups.io/mt/104766134/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-