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 D7FEFD811BB for ; Thu, 22 Feb 2024 09:11:25 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=iHtTIrSBuVGvPrMnQv95zi/DZeCDFkhLACN9C7Xtuxw=; 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=1708593084; v=1; b=uMlQ2Aj2R6hJ9jIJFEbf/g4+S++mkC1/dQg/0bTkdSN3NNnahLS8ZepwlTQonBIeYZWOeN1V 9gBHjpCd+wxo9Eqsuydbgbj9A2zv9qmYapAhmagrLE5Dm/s2Ci2TSWdwYgoiqUbOzHImUQxtfLX f515ekc5LtzLjhJM27J/ithY= X-Received: by 127.0.0.2 with SMTP id Qyk9YY7687511xDj4ZGA1JNB; Thu, 22 Feb 2024 01:11:24 -0800 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.9024.1708593083422169729 for ; Thu, 22 Feb 2024 01:11:23 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GWseCXFC/aropVZ6VE1JCCgbpCbITN1PsL4zcBfgv1iWXn9mNLFywPuGuEL+JzB6uHJnDpq06TyR9UMAP8X+nIMI8JzDu79bBdVMlv8QcOZYGmzpzPW7D39b2JmIlA4iH6ntbuU0+ohtNrswFB1Pkt6yobAM7yfUzJ/zaGnHFT1DZ62Z31DJDCMvUeyeEgH5+lSGOLk5swRBi39DrUGakAqg9y0Ns7qXsWbGQLIBMGYYX8wGDJXCprzDK/RckZ1EbuMFkkgHQZ8uKkprlI0xLnUuAtsMcbK80qK5ejKtPp9J8JNlRbudAXA4Pf1g91OLkILiIjH6Dg3kx1U0c4aLOg== 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=qsNxttsHlpZDvCFF38ITc/tMr8QGceRfyBnizpC8Yl0=; b=fBanXxpiKh8Sj/zswuu7Of8uB0BJn4HuR625gILmKxpZep6Pd4NklOk/g48mAGBtRu/8ht4nycnGtVS+PSiQG2rLGEnm9+HpmA6KACYd1ti3fTdNYc4gDbjeXTj3PcJ1sBTFUEZgWZjfnd8O4XSB8h2XM2E/wMJ0cG8WfmukAzVWDMxzpDHoaXzqved9neM0SQyOZ3Mxwq7OltRGqJuVYuJ4WIkTuaCpFOrKYrWFdM57YKF2XkQ5IFJmEd2/PgriKbz9Ka9bYqqeCjQoAizNYufFm5PabdzVlaM1skbN5KUz1F57IaHsDXLskyJRBWXr71OvVOrG7HPJHt9SzyAvcA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) 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 BL0PR0102CA0066.prod.exchangelabs.com (2603:10b6:208:25::43) by PH7PR12MB5975.namprd12.prod.outlook.com (2603:10b6:510:1da::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.23; Thu, 22 Feb 2024 09:11:19 +0000 X-Received: from BL6PEPF0001AB4A.namprd04.prod.outlook.com (2603:10b6:208:25:cafe::fd) by BL0PR0102CA0066.outlook.office365.com (2603:10b6:208:25::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.41 via Frontend Transport; Thu, 22 Feb 2024 09:11:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) 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.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C X-Received: from mail.nvidia.com (216.228.118.232) by BL6PEPF0001AB4A.mail.protection.outlook.com (10.167.242.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Thu, 22 Feb 2024 09:11:18 +0000 X-Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 22 Feb 2024 01:11:04 -0800 X-Received: from drhqmail201.nvidia.com (10.126.190.180) 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; Thu, 22 Feb 2024 01:11:03 -0800 X-Received: from NV-CL38DL3.nvidia.com (10.127.8.14) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Thu, 22 Feb 2024 01:11:03 -0800 From: "Nickle Wang via groups.io" To: CC: Abner Chang , Igor Kulchytskyy , "Nick Ramirez" Subject: [edk2-devel] [PATCH v2 0/6] Introduce Redfish http protocol Date: Thu, 22 Feb 2024 17:11:02 +0800 Message-ID: <20240222091102.536-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: BL6PEPF0001AB4A:EE_|PH7PR12MB5975:EE_ X-MS-Office365-Filtering-Correlation-Id: 29f3ba72-68dd-4d0c-0e15-08dc33863afe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: tpfiwHp8Rd2apZmqI5EApSWCIeM9m+d2wHpcI+MmmOHMgyJV/tmhleQuLBvhgrsRCAYpxdUe0Pg8yTxAuCftyYpF4bmQH/ZPP6SNTTOxZ92s6yLri1VRTKNu7LUDDZQ6WTqMp85nhzFrDhRAyVRJsy1E8RIvUxNIu/tRC+Fygn5ahjN2yY39SiS92ldzMcL2L+r98iQ3fv5iEtZ0FqgCCYMmqupcL1xWWTmdO24NuCtrYW0PIGrAkLCIwqimAjy3nF7JNt2yfJM+ijYHUIV4e82M6hVjqRmgJKB8TyjHbBIpJBgvT42I+LB87Iv3K3nTsfZQa1loJSrg+4mVN1SvK0ilSabp7rUQNBcBefKYalwRg8m7/85vZJH//xhMACsjmtUgcPrWDMDlFcvjfds4BddwDxnjbR2zDNISn1CwTUTycZoK2AUwpnqqsZCTwJsdErqIsDudwgcb8H9UksSwGAbXIz5iODCumfcc3uAohfM4Y7nK53J7XCyLlQgBKXcjCMZbkayaP7V0UYp5rK+0EaoFbWz6qoqrGBEmqlnoUFi5QU0qgJaXjSaVFxvohVK89e703XMV6IpNiqZ6CMBuwEZI2e0/TGRqBf6z49TiddsWg2tEL2SGyC9jxQxvNPBvwXCtHmpkRS9knP3bD5LJl03AuAxZTwxkYDcq3uhFPg5Lw3MxasDwLxEjgS0AE9FUJ2ilK1N58Gu2+Us4Ivlbcg== X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2024 09:11:18.6255 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 29f3ba72-68dd-4d0c-0e15-08dc33863afe 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.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB4A.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5975 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: XIXfzOkgCYmCOUrn2CQF6M6Jx7686176AA= 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=uMlQ2Aj2; 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=pass (policy=none) header.from=groups.io; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") v2: address review comments. 1) add comment to show the source file of MathFtol.c 2) update macro to follow file name in RedfishHttpOperation.h This patch series introduce Redfish HTTP protocol to RedfishPkg.=20 This is to improve Redfish performance and communication stability=20 between BIOS and Redfish service. Two big functions are introduced: 1) HTTP cache mechanism is implemented to reduce the number of=20 communiocation between BIOS and BMC.=20 2) HTTP request retry mechanism is implemented to handle communication=20 failure. With retry mechanism, Redfish feature driver can finish its job=20 as best as possible. Several libraries are updated to fix build issues. Pull request is created: https://github.com/tianocore/edk2/pull/5348 Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez Nickle Wang (6): RedfishPkg: introduce Redfish HTTP protocol RedfishPkg: implement Redfish HTTP protocol RedfishPkg: introduce RedfishHttpLib RedfishPkg/RedfishLib: include RedfishServiceData.h RedfishPkg/RedfishDebugLib: use RedfishHttpLib RedfishPkg/RedfishCrtLib: fix unresolved external symbol issue RedfishPkg/RedfishPkg.dec | 32 +- RedfishPkg/RedfishComponents.dsc.inc | 3 +- RedfishPkg/RedfishLibs.dsc.inc | 3 +- RedfishPkg/RedfishPkg.dsc | 5 +- .../RedfishDebugLib/RedfishDebugLib.inf | 4 +- .../Library/RedfishHttpLib/RedfishHttpLib.inf | 43 + .../RedfishCrtLib/RedfishCrtLib.inf | 7 +- RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.inf | 73 + RedfishPkg/Include/Library/RedfishDebugLib.h | 2 +- RedfishPkg/Include/Library/RedfishHttpLib.h | 326 ++++ RedfishPkg/Include/Library/RedfishLib.h | 17 +- .../Protocol/EdkIIRedfishHttpProtocol.h | 308 ++++ RedfishPkg/Include/RedfishServiceData.h | 43 + RedfishPkg/RedfishHttpDxe/RedfishHttpData.h | 256 ++++ RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.h | 44 + .../RedfishHttpDxe/RedfishHttpOperation.h | 76 + .../Library/RedfishDebugLib/RedfishDebugLib.c | 1 + .../Library/RedfishHttpLib/RedfishHttpLib.c | 585 +++++++ .../RedfishCrtLib/Ia32/MathFtol.c | 37 + RedfishPkg/RedfishHttpDxe/RedfishHttpData.c | 667 ++++++++ RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.c | 1344 +++++++++++++++++ .../RedfishHttpDxe/RedfishHttpOperation.c | 693 +++++++++ RedfishPkg/Redfish.fdf.inc | 3 +- RedfishPkg/RedfishPkg.ci.yaml | 2 + 24 files changed, 4549 insertions(+), 25 deletions(-) create mode 100644 RedfishPkg/Library/RedfishHttpLib/RedfishHttpLib.inf create mode 100644 RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.inf create mode 100644 RedfishPkg/Include/Library/RedfishHttpLib.h create mode 100644 RedfishPkg/Include/Protocol/EdkIIRedfishHttpProtocol.h create mode 100644 RedfishPkg/Include/RedfishServiceData.h create mode 100644 RedfishPkg/RedfishHttpDxe/RedfishHttpData.h create mode 100644 RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.h create mode 100644 RedfishPkg/RedfishHttpDxe/RedfishHttpOperation.h create mode 100644 RedfishPkg/Library/RedfishHttpLib/RedfishHttpLib.c create mode 100644 RedfishPkg/PrivateLibrary/RedfishCrtLib/Ia32/MathFtol.c create mode 100644 RedfishPkg/RedfishHttpDxe/RedfishHttpData.c create mode 100644 RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.c create mode 100644 RedfishPkg/RedfishHttpDxe/RedfishHttpOperation.c --=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 (#115773): https://edk2.groups.io/g/devel/message/115773 Mute This Topic: https://groups.io/mt/104505401/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-