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 C75EED802CF for ; Mon, 6 Nov 2023 00:47:25 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=IG3pgwu99NOLd8ls66QDG7v5nJUgheYweD3x2QA1qpk=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:msip_labels:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1699231644; v=1; b=gaDGw1TuM8DUAxz27YpWKcSFE/8EwcXe0a9L7tG8Y2IXb0EkfyuyVitj+8BWzWLoks8vvijG AS3WUppTnwXSuGjkZLC13K9KMewesC/OLJCzvRUXoHfLry97+91rm0aGVb1LY5v3y2ynQaRqQXL PeTtlQU1b1ZkI4QZs8ytsx80= X-Received: by 127.0.0.2 with SMTP id s3jmYY7687511xK2NFYGaPzd; Sun, 05 Nov 2023 16:47:24 -0800 X-Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com [40.107.237.57]) by mx.groups.io with SMTP id smtpd.web11.43417.1699231643675794494 for ; Sun, 05 Nov 2023 16:47:23 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YzUbO8CDWmwFWFoCTteZ0Hor5CQH2AXUQgcKhirsHYI20vi8tEulQiWlNaogjefdBEt+gbVnV6UM1gpkooAZDsNsG+M5hHMRBNBFgq6o44wZq/Ohv6DhsVyp/J8MhwKAUE+CiTaVN2HkufcRRQUgaCNGnVMsORILgxSoHtbCymks6cEIPHXjjVDaLwCIyW0wDrjuMX5PeBCES9ukZnxxcrA0q65o1bhJ1MrzLS5k2LITqm86jMoLU6JYTPzKEQi3Xu1na5JfTZHZbBfv/CccxXMy9z/dCAamD0/UHIAJjObCWiQR9SFp4eAfXqefyERhzoGdMziONTQ0/kvLnXtPog== 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=RdjBaQmanOP/BEQmCyMRnpsR09Hc2qmAr33vdibgp64=; b=MFCLYr2Rci14hVZ2FhUz/plorfOpQxvkwzKen2LZ4YypFnIUmd0lAl7y2BmK61aJXk5/yv9M2DjwIX1HSscRQIPx+sWSeQD6dCPmv8Z8JsahOuKMvehwtmcUZOseSXqZcMs2Vu/xnw8em0UWKh73QbsTTrA00/1f8HC37M5AeKi7i7CX260w1XvvbeUSarbnpdEOh3BZ/QpNebr76swjDEUeRSk1nMcZzlrpRihQStgk+hwjji8q1NZehL2smS26/xGQQyUIEKvofMEIsE6CnxE5cwCkDhxFyeOkVp8dYRDWVbnHqnNfgammBANNLpU26mZgE4zCs1ogrVi3d9HyYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none X-Received: from MN2PR12MB3966.namprd12.prod.outlook.com (2603:10b6:208:165::18) by IA1PR12MB6355.namprd12.prod.outlook.com (2603:10b6:208:3e1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.27; Mon, 6 Nov 2023 00:47:21 +0000 X-Received: from MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::e670:e45f:fa32:2420]) by MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::e670:e45f:fa32:2420%7]) with mapi id 15.20.6954.027; Mon, 6 Nov 2023 00:47:21 +0000 From: "Chang, Abner via groups.io" To: Nickle Wang , "devel@edk2.groups.io" CC: Igor Kulchytskyy , Nick Ramirez Subject: Re: [edk2-devel] [edk2-redfish-client][PATCH 1/2] RedfishClientPkg: introduce Redfish override protocol Thread-Topic: [edk2-redfish-client][PATCH 1/2] RedfishClientPkg: introduce Redfish override protocol Thread-Index: AQHaDXXfYx9wpvuiKUS7h7pvPfBMMrBseoBg Date: Mon, 6 Nov 2023 00:47:20 +0000 Message-ID: References: <20231102101748.13807-1-nicklew@nvidia.com> In-Reply-To: <20231102101748.13807-1-nicklew@nvidia.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ActionId=bd4b9e98-883d-4510-a4ce-2f4ac0c8e74d;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ContentBits=0;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Enabled=true;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Method=Standard;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Name=General;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SetDate=2023-11-06T00:46:43Z;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN2PR12MB3966:EE_|IA1PR12MB6355:EE_ x-ms-office365-filtering-correlation-id: 81b32a01-19a6-4fef-b76d-08dbde61ef3e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: IWXZZCx63XGLW7B1LnWY0elVPIcb2HwJxVoaknrugmZvtYiDJH9LEC09e6At5zsKW/AFBgVaZd+CA0YLcaz9q8SxJ/xg0s78JkxPNe3TaV621p8CK0EkwzwPM2mxQGORAmSMRmCNWYypC7PdgbQNnPq9P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sbcNrt8KVr8wOjFGhjhBkTYCag9dJhEVs4rboyA5Ys9LjYAr/L/cQP978H/u?= =?us-ascii?Q?EjOEf5B5d53n3Bw/If6UdAlkunRBXdR6vVMVH8XKg9Q0AGi9aMuvNJlnVOE/?= =?us-ascii?Q?0Mree4jxdeYzncGQGUOd/zKFHZrOtFFA0Gz/toLiFOdhcnjnYoobyju15e38?= =?us-ascii?Q?u294kYLdIzgzEc/uZJtH8BpsixQF67X0P+wNlUakpmq9jFWoCuXEEdTyHKS2?= =?us-ascii?Q?vhBwWA7YgLAma3C8oecnNeHD5lcMOrM8NbWDIG6T48a9HOI13qwbYW4KXMZi?= =?us-ascii?Q?FMYnVIoLUNp3o4pv/Ks=3D?= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3966.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 81b32a01-19a6-4fef-b76d-08dbde61ef3e X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Nov 2023 00:47:20.9636 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: kEvkCJp5xeYBhAoxv5uHGNtn2Gpawwq0H+jqM6Jph7LNtrLN9HhTCg2sbJQrCZRAu+ER5mG2BLdbwkVOayGXwA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6355 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,abner.chang@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: yfRGYADcplC0yPVk0aSdAyNrx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=gaDGw1Tu; 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}") [AMD Official Use Only - General] Reviewed-by: Abner Chang > -----Original Message----- > From: Nickle Wang > Sent: Thursday, November 2, 2023 6:18 PM > To: devel@edk2.groups.io > Cc: Chang, Abner ; Igor Kulchytskyy > ; Nick Ramirez > Subject: [edk2-redfish-client][PATCH 1/2] RedfishClientPkg: introduce Red= fish > override protocol > > Caution: This message originated from an External Source. Use proper caut= ion > when opening attachments, clicking links, or responding. > > > Introduce Redfish override protocol to notify platform that the Redfish > changes system settings and about to perform system reboot. > > Signed-off-by: Nickle Wang > Cc: Abner Chang > Cc: Igor Kulchytskyy > Cc: Nick Ramirez > --- > RedfishClientPkg/RedfishClientPkg.dec | 2 + > .../Protocol/EdkIIRedfishOverrideProtocol.h | 60 +++++++++++++++++++ > 2 files changed, 62 insertions(+) > create mode 100644 > RedfishClientPkg/Include/Protocol/EdkIIRedfishOverrideProtocol.h > > diff --git a/RedfishClientPkg/RedfishClientPkg.dec > b/RedfishClientPkg/RedfishClientPkg.dec > index eccbc22e..5f8a0350 100644 > --- a/RedfishClientPkg/RedfishClientPkg.dec > +++ b/RedfishClientPkg/RedfishClientPkg.dec > @@ -45,6 +45,8 @@ > gEdkIIRedfishFeatureInterchangeDataProtocolGuid =3D { 0x4B8FF71C, > 0x4A7B, 0x9478, { 0xB7, 0x81, 0x35, 0x9B, 0x0A, 0xF2, 0x00, 0x91 } } > ## Include/Protocol/EdkIIRedfishResourceAddendumProtocol.h > gEdkIIRedfishResourceAddendumProtocolGuid =3D { 0xda36b12b, 0xaad4, > 0x4e90, { 0xba, 0xcb, 0xe3, 0xb5, 0x3b, 0x08, 0xbc, 0x54 } } > + ## Include/Protocol/EdkIIRedfishOverrideProtocol.h > + gEdkiiRedfishOverrideProtocolGuid =3D { 0xb55bef20, 0xf7c8, 0x= 4ae9, > { 0xa7, 0xca, 0x8b, 0xba, 0x9f, 0x7b, 0xbf, 0x9c } } > > [Guids] > ## Include/Guid/RedfishClientPkgTokenSpace.h > diff --git a/RedfishClientPkg/Include/Protocol/EdkIIRedfishOverrideProtoc= ol.h > b/RedfishClientPkg/Include/Protocol/EdkIIRedfishOverrideProtocol.h > new file mode 100644 > index 00000000..3c3e8bf2 > --- /dev/null > +++ b/RedfishClientPkg/Include/Protocol/EdkIIRedfishOverrideProtocol.h > @@ -0,0 +1,60 @@ > +/** @file > + This file defines the EDKII_REDFISH_OVERRIDE_PROTOCOL interface. > + > + Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights > reserved. > + > + SPDX-License-Identifier: BSD-2-Clause-Patent > + > +**/ > + > +#ifndef EDKII_REDFISH_OVERRIDE_PROTOCOL_H_ > +#define EDKII_REDFISH_OVERRIDE_PROTOCOL_H_ > + > +#include > + > +typedef struct _EDKII_REDFISH_OVERRIDE_PROTOCOL > EDKII_REDFISH_OVERRIDE_PROTOCOL; > + > +/// > +/// Definition of EDKII_REDFISH_PHASE_TYPE. > +/// > +typedef enum { > + EdkiiRedfishPhaseBeforeReboot, > + EdkiiRedfishPhaseMax > +} EDKII_REDFISH_PHASE_TYPE; > + > +/** > + The callback function to notify platform and provide Redfish phase. > + > + @param[in] This Pointer to EDKII_REDFISH_OVERRIDE_PROTOCOL > instance. > + @param[in] PhaseType The type of phase in Redfish operation. > + > + @retval EFI_SUCCESS The notify function completed successfully. > + @retval Others Some errors happened. > + > +**/ > +typedef > +EFI_STATUS > +(EFIAPI *EDKII_REDFISH_NOTIFY_PHASE)( > + IN EDKII_REDFISH_OVERRIDE_PROTOCOL *This, > + IN EDKII_REDFISH_PHASE_TYPE PhaseType > + ); > + > +// > +// The definition of _EDKII_REDFISH_OVERRIDE_PROTOCOL > +// > +struct _EDKII_REDFISH_OVERRIDE_PROTOCOL { > + // > + // Protocol version of this implementation > + // > + UINT32 Version; > + // > + // Callback to notify Redfish phase > + // > + EDKII_REDFISH_NOTIFY_PHASE NotifyPhase; > +}; > + > +#define EDKII_REDFISH_OVERRIDE_PROTOCOL_REVISION 0x00001000 > + > +extern EFI_GUID gEdkiiRedfishOverrideProtocolGuid; > + > +#endif > -- > 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 (#110686): https://edk2.groups.io/g/devel/message/110686 Mute This Topic: https://groups.io/mt/102338703/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-