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 E5BAD740034 for ; Mon, 4 Mar 2024 13:26:52 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=eQJUzGf64vnU3b78Crsa/X/kLpgR5cFfW2W0+O9YG/o=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results: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=20140610; t=1709558811; v=1; b=SCYf3uCvjwU3QVrdJbzzh75IuoCx1M8D1/qBOdv1A2EWKnbyNBN6V27tormFeW2KJAdOo0KR 7JmZWHL5Is/5jRG4d6lkunibtu00bm2Z1k7NZmp7vNQQR7hFrpID7wMdxg+XjiVEfL4AbbQ3DO9 7qrJkOGl66Rfwao8TGRPdnWI= X-Received: by 127.0.0.2 with SMTP id u9eKYY7687511x6EE18KzeGU; Mon, 04 Mar 2024 05:26:51 -0800 X-Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com [40.107.220.68]) by mx.groups.io with SMTP id smtpd.web10.98370.1709558810889295464 for ; Mon, 04 Mar 2024 05:26:51 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LuLxmpv41vfCzoynBl37dKsQhuEs9iR6i8CXOm7IwhQyZyfvaTKBLMkH/qe3YF8VLm3mTEY1BdxCHyMhac22fKCF/eQXfFApYS7qgMV4p9oxlcxhyPSTYJcDT1UAhT1l6AMkzG+Ysfq3aKeXrMZ15vtYf+lI51coPx/PNXa4KEAEflsoT8QSGM/C5v1FnJ2huzJZ9Rwvd4ROnvQnB6yZ/4Hb16ZYwMkGm9Km+NusbjRxkUiQl+Ewe4xyntOv633W08P5pPBkBFeCiX6YVXaQrvNawRAYyfOTeMWxgvdIsrWrxBfo2BcBuyzcx7zVsTzykNN726XllEXNCkOTprDgSA== 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=j4/mqeJNETjeUZRayxX5La8oHgXgF2hjCiJ7AYZ/bTM=; b=Xu1S0P2qkvFZtrWlVX3C/ZRSj0LQOa0zZekl2DGBwiTKc79g6N1eaUkhybbkTzOGGldFXsAruZMlcy/SqGJ7s/oiaytlSfGe8yM/1u7Tfy52WY0hH29uAXTpWzsgxU7USZd3YMT99rakVBmtzdnF4/KCXLCFUyR5s5jIMB/oqfGxteXol6D2luVOUmZzVxWchPOxCJp/GfjlKU/wOMgFUIFjbKEjoZzlSFMzVrPqUE+r4LKAJwY6UQwa2UkyDgrnFL9xNrDKDbi2dU4HQC/3ZwiHIyaVuDUrrwJISV232EwR79hlaNf4Sc1zGcko9ylA4U3cwzbDIh9FmDjEyVehNQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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 (0) X-Received: from CH2PR10CA0020.namprd10.prod.outlook.com (2603:10b6:610:4c::30) by SA1PR12MB6752.namprd12.prod.outlook.com (2603:10b6:806:259::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.38; Mon, 4 Mar 2024 13:26:47 +0000 X-Received: from DS2PEPF00003447.namprd04.prod.outlook.com (2603:10b6:610:4c:cafe::32) by CH2PR10CA0020.outlook.office365.com (2603:10b6:610:4c::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.39 via Frontend Transport; Mon, 4 Mar 2024 13:26:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C X-Received: from mail.nvidia.com (216.228.117.161) by DS2PEPF00003447.mail.protection.outlook.com (10.167.17.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.11 via Frontend Transport; Mon, 4 Mar 2024 13:26:47 +0000 X-Received: from rnnvmail205.nvidia.com (10.129.68.10) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 4 Mar 2024 05:26:37 -0800 X-Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail205.nvidia.com (10.129.68.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Mon, 4 Mar 2024 05:26:36 -0800 X-Received: from NV-CL38DL3.nvidia.com (10.127.8.10) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Mon, 4 Mar 2024 05:26:35 -0800 From: "Nickle Wang via groups.io" To: CC: Abner Chang , Igor Kulchytskyy , "Nick Ramirez" Subject: [edk2-devel] [edk2-redfish-client][PATCH 0/3] introduce Redfish Resource Config2 protocol. Date: Mon, 4 Mar 2024 21:26:34 +0800 Message-ID: <20240304132634.41025-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: DS2PEPF00003447:EE_|SA1PR12MB6752:EE_ X-MS-Office365-Filtering-Correlation-Id: 137212de-4f48-48dc-a7c9-08dc3c4ebe04 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: p7kJ/9EgXANwH1kCeE+1H2YfFgKnSjQOtYL7ATJ/V8Ay8KFZeNPbaGLsheyjqB4uFtHTHw+hNGlLip+3HbDO7+Uk0EXBiVrX0f1U8H08bmo6Zv6WGX44f8xm7JxQs0rFF4Sx6Fwq3Jz+o+z70tnndQdNDCba/s99fE5mC2eQB7Z2134OpP3TNf79XmRumsiyjH6/rs6BzZDcbWjSNYn+Inztf0cGuc0h3IuXJ+6kcXki8BzglW4n6yzqeNmiVaWcu2raVIfNR+TuspTD2g9rX3+1bLUrzVYQWXiSBCGPsgYl+Zx0UejkpQm5cYqUcKFOIlM5Z8Dx2XWKzHg/hStdKAjvkEOCcbtAoEtxaANtN2nrlyibTDKoa9f+LWdrJUzu3C+Lr2PTQzNwktvKyIwAo5RFvyymB7otoHJWgx71Pq7R+cIL8NnZBukkLULLaxwxHB80uh8rD98LO4VeKUwyI4kBzbJ0cLGIreL79+n6U9bTIl7rsLnpw/eXIyJoQATvV0jpK28krjpSAz0Drmwa9ShEysB0FXvx+DnFxM/0WPT11wZHaJVAjaBWwBlJ1QH7bbbEYKDpPjc4YISWyH7Vf+RxXF0yUgdOxP8niSdnderyQt1fScnh72lBWCC00HDZIj7vLiVbcGRVU4ZzPJFECHC9t1hHifMqnJr/llPo3N2KBOewEfUL9nyUXAvwOgiA0MKK1q9FxzOsB26n8ibr5o/StLGVXuSBxjW24i5D0hRA0cKk7gFV7iqBKC2HhSPN X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Mar 2024 13:26:47.1453 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 137212de-4f48-48dc-a7c9-08dc3c4ebe04 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.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS2PEPF00003447.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6752 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: TgR2fawD8nRoDMScecJ3sFrcx7686176AA= 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=20140610 header.b=SCYf3uCv; 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; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") 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 | 148 +++++++ .../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, 565 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 (#116314): https://edk2.groups.io/g/devel/message/116314 Mute This Topic: https://groups.io/mt/104721505/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-