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 44546AC0E49 for ; Thu, 23 Nov 2023 05:54:58 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=339lT0uUIbJOXOzT5RBDwaWsGTPGVfHA+/IS/uQ2Axw=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: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=1700718896; v=1; b=QfIzKSJrUDvcz2hLzrTQqxU+IbJsMWxC0Azq6oA987Z0v3wJVKGtpwWYXDdPPb29adkmSotY 5+9WxYTJBBCvOwxj8cDlzZZcLi8w9oJ3/dn6E6Lu0L2izPCY/Qg7381sQpK8NfVvPUtEi95ZoQx aVVA4uPdhwAjZExQFdBBZvr4= X-Received: by 127.0.0.2 with SMTP id ckA2YY7687511xitvkBParFj; Wed, 22 Nov 2023 21:54:56 -0800 X-Received: from NAM10-MW2-obe.outbound.protection.outlook.com (NAM10-MW2-obe.outbound.protection.outlook.com [40.107.94.79]) by mx.groups.io with SMTP id smtpd.web10.85465.1700718896220276845 for ; Wed, 22 Nov 2023 21:54:56 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y0VQ686ZQ/haDVA9ONGFu9I+38SsBLxH71Xw+bpo+zuooyEdX+9YiVFyy1ZhqXD/5aDYFz+GoghryjVIg2e+mge7EA8AvxhkO3BakYBKlJhGlB1YfHAr4a8oyWCe7GwzWw0L4cxem56WG5Nm+DUG8spd6/jTsqx74BG/1y5OJI5ovm8ImbxAt8RMY0Gns6Crj3Ir42b0lFT/dolP63jOIQnnnGzxvZ0g0kiLdy5yI7yI+4z9mn0kcNfC7jqIMPGsBejHdUsu/LRO5LQk1oc6gfIpbLKWNph0s5zXr5gfkq7zn2N6NpDhTByScKa1MUSePDHG7gXdPgU5Ph9BIPltVQ== 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=LKMJTk2sepOJe2W+QgC6ewF5eEvLMWNUugeWDVwZ/3o=; b=nYesb60dHxGHRsd+knyKAysEsFFRwOHO78ARCx4TYgX4BxGOMIS5ARZURgYJIdv3MgFL3gOTuqdwB92QXwXmRcmD4L7htghoPJy43CEuHoVfrztqgr4WnEC56rQtQIMOeSsWbGbbiPP/d+z9486HPkvyYaew0PrApiEdnqSaJZeARZBnV2Z3YlgoWurRGGenUHM3LOmWwfw+yfAKa5dIltiGnfUwYK3ZThMxwM56WBWTZWQ9axDOSVCol8gDaaoNuqcrIE8VGZV7/X36M/fuCzLv0Np3Zqr3y/QpnXMa/p6HQUzFym5HvEzElKSJOURsJI5kaDDPYPeo6J6glVE9wg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) X-Received: from DS7PR03CA0071.namprd03.prod.outlook.com (2603:10b6:5:3bb::16) by CH0PR12MB5331.namprd12.prod.outlook.com (2603:10b6:610:d6::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.20; Thu, 23 Nov 2023 05:54:54 +0000 X-Received: from CY4PEPF0000E9D5.namprd05.prod.outlook.com (2603:10b6:5:3bb:cafe::66) by DS7PR03CA0071.outlook.office365.com (2603:10b6:5:3bb::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.19 via Frontend Transport; Thu, 23 Nov 2023 05:54:53 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C X-Received: from SATLEXMB04.amd.com (165.204.84.17) by CY4PEPF0000E9D5.mail.protection.outlook.com (10.167.241.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7025.12 via Frontend Transport; Thu, 23 Nov 2023 05:54:53 +0000 X-Received: from TPE-L1-ABNCHANG.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Wed, 22 Nov 2023 23:54:49 -0600 From: "Chang, Abner via groups.io" To: CC: Nickle Wang , Igor Kulchytskyy , Mike Maslenkin Subject: [edk2-devel] [PATCH 2/6] RedfishPkg/RedfishHostInterfaceDxe: Add Redfish HI readiness notification Date: Thu, 23 Nov 2023 13:54:28 +0800 Message-ID: <20231123055432.86-3-abner.chang@amd.com> In-Reply-To: <20231123055432.86-1-abner.chang@amd.com> References: <20231123055432.86-1-abner.chang@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D5:EE_|CH0PR12MB5331:EE_ X-MS-Office365-Filtering-Correlation-Id: 83cc0b1e-3988-431f-b842-08dbebe8b706 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: 2sS+HKXT+pAWu8YiJImCKJDY5epXqUcfqyVDoX+W6A1l+Sumi7LYEiW6MppG2Figr59F4SjWQhLm15hjtIEljOKE1uLF/NGXWc2574koO/08WGk76fpVY4rwXl53hN4+SoXVz8K2SZghA9j1X9iheg5o9iZqysUVqBzSMQDZul3CK4v7EkM45ABBLKr/axtDHyicMNNEHZ3EXVLevOeQYpBHNRA2wgBZvB1zqyMYV9DN8sjgB0peAVPh0/JufnqcJ0l5deQkllc60BjnHtTGlD5m5FKHDCxzZFqK/EGuBtEG6pIoOHIr+CurdIey3VWY9aoKSlZvC1YSu/rbgAPUGkpj4bMT25UzXd6U0/+HQUGvykNSxmqDh92KeSADhLKoDsKjkz82AII9o8sbS3ZlKBy6IxSk8DeUg0oIvzbSUOQ7a3gl5TdIz/zhW6NpT8adl+fekNaMluSq6Hs9m3rt+7Flqn6eLsT3RJeeuJ/ybbrYXuWkJnOntuoocDM4znuDoJWm3uC6+GKCjy22le0GjPm1PElCoQJQZquB7vPNObq9KvrSSMgoXQ/vO5M8Cr8csT/HU2rbbv89VakpBUeMOJRRPIJS5TraAUipxx9ftba5nT8CXOSLzZ9HoW/eEvXZBdwfOxoXtFK9mAUgrAc5BmRcMiVmQQZAcKGJ/QV/vNrfgrvJ0ANJ7M+PBaMu1jlCwj2TciiQEyfBH3BjctgHWxPcLZabpEzPXRx8gCFWh8VR2xbjSLAtIU3cjsvykLADXlhQfYhM5Z8s+s4HfUG9qw== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2023 05:54:53.7574 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 83cc0b1e-3988-431f-b842-08dbebe8b706 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D5.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5331 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: evFMJyyPwzNjqFzjlTDk2fJPx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=QfIzKSJr; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); 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 From: Abner Chang Introduce gEdkIIRedfishHostInterfaceReadyProtocolGuid and produce it when Redfish Host Interface is installed on system. Signed-off-by: Abner Chang Cc: Nickle Wang Cc: Igor Kulchytskyy Cc: Mike Maslenkin --- RedfishPkg/RedfishPkg.dec | 3 +++ .../RedfishHostInterfaceDxe.inf | 3 ++- .../RedfishHostInterfaceDxe.c | 16 ++++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/RedfishPkg/RedfishPkg.dec b/RedfishPkg/RedfishPkg.dec index 0f18865cea0..e40538247c2 100644 --- a/RedfishPkg/RedfishPkg.dec +++ b/RedfishPkg/RedfishPkg.dec @@ -90,6 +90,9 @@ ## Include/Protocol/EdkIIRedfishPlatformConfig.h gEdkIIRedfishPlatformConfigProtocolGuid =3D { 0X4D94A7C7, 0X4CE4, 0X4A84= , { 0X88, 0XC1, 0X33, 0X0C, 0XD4, 0XA3, 0X47, 0X67 } } =20 + # Redfish Host Interface ready notification protocol + gEdkIIRedfishHostInterfaceReadyProtocolGuid =3D { 0xC3F6D062, 0x3D38, 0x= 4EA4, { 0x92, 0xB1, 0xE8, 0xF8, 0x02, 0x27, 0x63, 0xDF } } + [Guids] gEfiRedfishPkgTokenSpaceGuid =3D { 0x4fdbccb7, 0xe829, 0x4b4c, { 0x= 88, 0x87, 0xb2, 0x3f, 0xd7, 0x25, 0x4b, 0x85 }} =20 diff --git a/RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.inf= b/RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.inf index 1cdae149aad..f969e75463f 100644 --- a/RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.inf +++ b/RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.inf @@ -43,7 +43,8 @@ UefiLib =20 [Protocols] - gEfiSmbiosProtocolGuid ## TO_START + gEfiSmbiosProtocolGuid ## TO_START + gEdkIIRedfishHostInterfaceReadyProtocolGuid ## PRODUCED =20 [Depex] gEfiSmbiosProtocolGuid diff --git a/RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.c b= /RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.c index 55a66decfc8..94c0f9b6a92 100644 --- a/RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.c +++ b/RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.c @@ -53,7 +53,9 @@ RedfishCreateSmbiosTable42 ( SMBIOS_TABLE_TYPE42 *Type42Record; EFI_SMBIOS_PROTOCOL *Smbios; EFI_SMBIOS_HANDLE MemArrayMappedAddrSmbiosHandle; + EFI_HANDLE Handle; =20 + Handle =3D NULL; // // Get platform Redfish host interface device type descriptor data. // @@ -228,6 +230,20 @@ RedfishCreateSmbiosTable42 ( =20 Status =3D EFI_SUCCESS; =20 + // + // Install Redfish Host Interface ready protocol. + // + Status =3D gBS->InstallProtocolInterface ( + &Handle, + &gEdkIIRedfishHostInterfaceReadyProtocolGuid, + EFI_NATIVE_INTERFACE, + (VOID *)NULL + ); + if (EFI_ERROR (Status)) { + DEBUG ((DEBUG_ERROR, "Failed to install gEdkIIRedfishHostInterfaceRead= yProtocolGuid.\n")); + DEBUG ((DEBUG_ERROR, "PlatformConfigHandler driver may not be triggere= d to acquire Redfish service.\n")); + } + ON_EXIT: if (DeviceDescriptor !=3D NULL) { FreePool (DeviceDescriptor); --=20 2.37.1.windows.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 (#111649): https://edk2.groups.io/g/devel/message/111649 Mute This Topic: https://groups.io/mt/102762734/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-