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 B5795740032 for ; Thu, 2 Nov 2023 10:18:19 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=COpXVJEhduuXoDBNwQ4fmMzlOfIGhY5rgs1Tmbpx+Ww=; 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=1698920298; v=1; b=urEmik4K0tUq8V9R/BtUYP1nsdayoZOTiMjEOPH399CI1brZf82zsFXPXhpO5W7Exrj8fCrO J4d5xt5+p70e0liwSGeUSH535LEkLGyLCVGP4W7fKua1qASuTgtNTcwq21oYQ4HbnSSaRh55YO+ MmnbfiOGOBzuYG7R1Hn5qi3w= X-Received: by 127.0.0.2 with SMTP id gZmrYY7687511xkdX1nwcUk9; Thu, 02 Nov 2023 03:18:18 -0700 X-Received: from NAM12-DM6-obe.outbound.protection.outlook.com (NAM12-DM6-obe.outbound.protection.outlook.com [40.107.243.54]) by mx.groups.io with SMTP id smtpd.web11.27367.1698920297836239432 for ; Thu, 02 Nov 2023 03:18:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WhMijKtzPOVBvNgRBwC4IRABQ1YIXxHEecMTqjJttQi3+xXNuCf3n8yDkawg1g0fWmhvXoeudAf5B4DaWDrOPwKZrMBLZKrNWQHv9hqXGKs0BEbAI23nXXBmCReV7i9J4avF/CLUzPrgrIBnLY2gpdjeybd/o86TDQjmC0lkVSzeWSFhhX8ZduHb6HW7Sxi4tD+bFNvKM8ippIMa5fNhcswLeqkDU62sTwcjMtgvCidk/BXX5LBGkX0TBvD4wXc0LJkr5cMzd1RjyDIOMTzQ9eOcTHOBoNuutAdOFr5f6Q+++f8CnKpkKppK4apPc9PmP/VLmar+cL/KUc2SQiV7JQ== 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=2KiDFRULsohT8IZjgGkouYyDijzNw+ttzW3ALukICTM=; b=Mk00KHwhwCzQq8l96yMbIF3QQbrn2AeOXge8CZiQ4Q8mMBSWWThpysj/iALyLY2PW2uaDZ+PaEsW1lsszkvDD2Fpc/rje0M0dpwI1R5bdK9ChDhXsZGy7PLfxBi+Prk7qrkvP3xClFDKdt2lj7GiEl0wT7m4zqBbrboFu518V8oQfqkizbPdeIGJJJeL/G5/gp7dkAnn5UX1Va91r6qVsFSw5Gjk8mU/XqihMdOpjAPntBNZ5MP8HK6fJs281cVM3dmqSHmYwNQKesKDduBdK7phSoxkB7EO1uXlLt3R7CgYcLQvnd7EzDZp+HD1485T/e78Btrn/QFYJWBtxzn5Ng== 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 BLAPR03CA0084.namprd03.prod.outlook.com (2603:10b6:208:329::29) by MW3PR12MB4460.namprd12.prod.outlook.com (2603:10b6:303:2f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.21; Thu, 2 Nov 2023 10:18:14 +0000 X-Received: from MN1PEPF0000ECDB.namprd02.prod.outlook.com (2603:10b6:208:329:cafe::d) by BLAPR03CA0084.outlook.office365.com (2603:10b6:208:329::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.21 via Frontend Transport; Thu, 2 Nov 2023 10:18:13 +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 MN1PEPF0000ECDB.mail.protection.outlook.com (10.167.242.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.20 via Frontend Transport; Thu, 2 Nov 2023 10:18:13 +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; Thu, 2 Nov 2023 03:17:42 -0700 X-Received: from rnnvmail201.nvidia.com (10.129.68.8) 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.986.41; Thu, 2 Nov 2023 03:17:42 -0700 X-Received: from NV-CL38DL3.nvidia.com (10.127.8.10) by mail.nvidia.com (10.129.68.8) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Thu, 2 Nov 2023 03:17:41 -0700 From: "Nickle Wang via groups.io" To: CC: Abner Chang , Igor Kulchytskyy , "Nick Ramirez" Subject: [edk2-devel] [edk2-redfish-client][PATCH 0/2] introduce Redfish override protocol Date: Thu, 2 Nov 2023 18:17:40 +0800 Message-ID: <20231102101740.13707-1-nicklew@nvidia.com> MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000ECDB:EE_|MW3PR12MB4460:EE_ X-MS-Office365-Filtering-Correlation-Id: 1730b15c-261b-4556-3b7b-08dbdb8d05aa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: vIwE6q22T95+j/S+1dw4sGNUGnWci9xGNSnWIT8Ndg6rwNSD9nHjdGNddg8REBDqikq/ulyI/xyUVxWur8Qqw8367fHtH3D3RYJbkCOzAmEXuZKa/8Ij1H5OH9GRykhj3DapHrd21i/dDGc7m7bu5ZEfSFoKmhhRj9rzkoGfeyl4qtaoAVksyyGM2CxsnwgPMqQx4nCBehmTHoNrOwFgVsuf2FJZv5Wb4QHoph+ZSSkZ8X/Mc8eJ7w2/SWGD2DtvsG8KB45bv1eE5FEZG9dN3jI7JvloZ6Gktx1ebn7IgFmItWsj0Us4sy5vT7ha8/7GnnusZMBZx8WDhS5KgKfrRWLOeBV0KBtB0GlCuhCJvDx4QsE+JIbI9zQORW+/OTXhB+4D3Q631agClKK5X051UXCyk+0tFFw7HwhEKm2uwHNvT7MBFW2SgrvYuuiIMjzr3HRnYj+3//aTBLRjYbOF8rkK2py/f+xpwC6D9jlL49EXkjy/WI07UsepWvs578XMg8cNuL51puS5jYeEaxZsas7pqcKvLtyepkaUBloN589tTb9bBOEBX6fm0VMqnMcT/BO87NPMvdIyftwfwhBN8ZTapMfdbD3eLlwOB8D3Uf6hv9cPXCt44xZqrQnRODu4TxTHmGDoIG3z4WY7xwI+D7O1aQTGSg++vHYjWI4BZsozAEbsU+PUV614OHn9GfDg0/g58TKn4DS4HqJRObMgVvZEPwqG7MyNLIGbvqlcg5RSNjLNTmjFa9DF3iFcWOeA X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2023 10:18:13.2939 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1730b15c-261b-4556-3b7b-08dbdb8d05aa 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: MN1PEPF0000ECDB.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4460 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: 5WPeMsDSJLttwhXR3TRSJrpMx7686176AA= 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=urEmik4K; dmarc=none; 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 Redfish override protocol. If platform likes to do specific opera= tion before system reboot, platform implement this protocol and Redfish feature = core driver will call it to notify platform that system is going to reboot. Plat= form can reject system reboot by returning error status based on platform policy= . This=20 protocol can be extneded to support more platform notifications in the futu= re. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez Nickle Wang (2): RedfishClientPkg: introduce Redfish override protocol RedfishClientPkg/RedfishFeatureCoreDxe: notify platform before reboot. RedfishClientPkg/RedfishClientPkg.dec | 2 + .../RedfishFeatureCoreDxe.inf | 1 + .../Protocol/EdkIIRedfishOverrideProtocol.h | 60 +++++++++++++++++++ .../RedfishFeatureCoreDxe.h | 1 + .../RedfishFeatureCoreDxe.c | 25 +++++++- 5 files changed, 87 insertions(+), 2 deletions(-) create mode 100644 RedfishClientPkg/Include/Protocol/EdkIIRedfishOverrideP= rotocol.h --=20 2.17.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 (#110511): https://edk2.groups.io/g/devel/message/110511 Mute This Topic: https://groups.io/mt/102338706/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-