From nobody Mon Apr 29 15:51:08 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+67178+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 160493019442978.71141989787975; Mon, 9 Nov 2020 05:56:34 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id IEnvYY1788612xCFy5me0fof; Mon, 09 Nov 2020 05:56:34 -0800 X-Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com [40.107.237.63]) by mx.groups.io with SMTP id smtpd.web11.9891.1604919794727220619 for ; Mon, 09 Nov 2020 03:03:14 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QaqtuCsjyv/QTLamLYuCKS8cqtpBnEf2v1Ijk4aoMTw3ABh9h1ELGrk4xMvUyxetyFVNUuLS2BjYtuDfC6iIedOaZ7dvsx/G6QU1Rflp1vFb2/VcllZVhjndT9Hi8MLaHJus7bY90YcGmP2yIYscSzeSsutX0NHBnKq4h9LwS57JcWoqmHwr5pLzMcScGA+2CJhAcvM+AIL+etEdcDyROBYDeo//fVkTws++kSUUA/idnWMR4e6qL+LgOvP9AC7e2y/GDfh2XUqrU35KVqynUjDMJgp2qIRp2LyHkvR8zmrH17+x7oIsQtjhOmGuD4LuzQWtcx/Jsp9jyH6iDwyQMQ== 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-SenderADCheck; bh=5ECWTFSKh/ii7gCWKvnCit6evfVGbHjY3gQuzthlRnE=; b=dxiFNsbsIzAHMeboirXFxY/6jdWzDwNQqKnurJtvVjjs805gjvuedrnYaEpwYbAGiaXwOvOrvmUjmcMVUtPqZD3YTbShE5fTCBGfTO+RRLeU2jScPNqH6/PKA6bfHKUs6HlmckpIrPsS2ka0TrFiZ+cguI4kytnISpoTp/SYjpU8Rq2iMsCKMH1v2j4QC7KNfpY8fVfWcy3vZ7Bqn8sWDwVsfB/8J3g6lBTaBmLQa+3soDZ2FiIC19v87bLZ4wuBjLhqd4kRgAqIJYUKE4VL6CLojgo7HLxwKLh+o7xuVC4qugFSuq/BIWuSyNvvOtDzEUsQcKllDOAA2bJkcZ+qXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none X-Received: from MN2PR22CA0016.namprd22.prod.outlook.com (2603:10b6:208:238::21) by CH2PR02MB6181.namprd02.prod.outlook.com (2603:10b6:610:1::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.23; Mon, 9 Nov 2020 11:03:12 +0000 X-Received: from BL2NAM02FT005.eop-nam02.prod.protection.outlook.com (2603:10b6:208:238:cafe::ce) by MN2PR22CA0016.outlook.office365.com (2603:10b6:208:238::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Mon, 9 Nov 2020 11:03:12 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+67178+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; X-Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by BL2NAM02FT005.mail.protection.outlook.com (10.152.76.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3541.17 via Frontend Transport; Mon, 9 Nov 2020 11:03:11 +0000 X-Received: from xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Mon, 9 Nov 2020 03:03:11 -0800 X-Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Mon, 9 Nov 2020 03:03:11 -0800 Envelope-to: sandeep.dhanvada@xilinx.com, devel@edk2.groups.io X-Received: from [172.23.155.43] (port=42892 helo=xhdengvm155043.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1kc4x5-0004jf-4P; Mon, 09 Nov 2020 03:03:11 -0800 From: "Sandeep Dhanvada" To: CC: Subject: [edk2-devel] [PATCH 1/2] MdeModulePkg: Capsule upgrade fixes. Date: Mon, 9 Nov 2020 16:33:03 +0530 Message-ID: <8c8e1cbd38d4f7daaf135b1728d57dfa70fab7c3.1604918017.git.sandeep.dhanvada@xilinx.com> In-Reply-To: References: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 44900af2-5d11-4552-6d52-08d8849f0c9e X-MS-TrafficTypeDiagnostic: CH2PR02MB6181: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: fCqd994q0jDaAE+orrwcqsFKYx4GN4WEzHCs/YYGwF8yUvbuR3Wih4atfmhjdHlfnqPH7nnb3ut6+nwYqyMPCFCizb6n9neu0CVtcIINYE1KhdKh9hMzCS2+QkNA8AuzNLgkdnf+fdeSEvgj7S1vVMR7VAaMNx1ie+pQWsJJ0/YJ2UbaoOQn+3JM+5jxl57IARYudCvR3fFO+hm7l0HzieTt5v85UGs5o/LHvYqtzFVBYMJ/iqHL+slvAfP509nuK8tSogg/MxE+2kePxNGayn+wsWJsAE0m9KeDPIZu2Dwv7H/qUK+g/O0/1rMc1dXPfcm7YreK17L4t6StYyvNE1WYtgFjDUBjdaSibbmsdWRy/ukyneft2uy91rMhSlvStM2GTfeBBo3rBHbxbp3FRtHEcELskrmm49Qc+z7Xc/0= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2020 11:03:11.7893 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 44900af2-5d11-4552-6d52-08d8849f0c9e X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: BL2NAM02FT005.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR02MB6181 Precedence: Bulk List-Unsubscribe: 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,sandeep.dhanvada@xilinx.com X-Gm-Message-State: CYSomwfJPqHBubIuatE4Mwsmx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1604930194; bh=VFeM36AEzxxuBpon12gWZ/73ZMmgAPhWdgQroFMwRms=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=s7IKS/rsQJ6zY5bVdFG3IL2rGsS0mI8Kl2ZylqWr7WDOgFC6k0yR71FAx8gmXCyZVdr u/DKf4LkQoU88F8ZvHazfDK6i+zaPD581tFOX3YTF2vthrfZM/HuFBmh52iHzKB3FHsn+ 3rDHtENoTo87KJjju/3rt+7nXNqk/9t+n7Q= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" ConnectAllControlers() function is taken from ShellPkg/Library/UefiShellLevel2CommandsLib/Load.c:ConnectAllEfi() without this function call, connect command should be explicitly exeucted on shell for the FMP SetImage to be executed after capsule update. Signed-off-by: Sandeep Dhanvada --- .../Library/DxeCapsuleLibFmp/DxeCapsuleLib.c | 43 ++++++++++++++++++= ++++ 1 file changed, 43 insertions(+) diff --git a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c b/MdeMod= ulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c index 9094213..818a91b 100644 --- a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c +++ b/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c @@ -1001,6 +1001,48 @@ SetFmpImageData ( } /** + This function will connect all current system handles recursively. The + connection will finish until every handle's child handle created if it h= ave. + + This function is taken from ShellPkg/Library/UefiShellLevel2CommandsLib/= Load.c + + @retval EFI_SUCCESS All handles and it's child handle have been + connected + @retval EFI_STATUS Return the status of gBS->LocateHandleBuff= er(). + +**/ + +EFI_STATUS +ConnectAllControllers (VOID) +{ + EFI_STATUS Status; + UINTN HandleCount; + EFI_HANDLE *HandleBuffer; + UINTN Index; + + Status =3D gBS->LocateHandleBuffer ( + AllHandles, + NULL, + NULL, + &HandleCount, + &HandleBuffer + ); + if (EFI_ERROR (Status)) { + return Status; + } + + for (Index =3D 0; Index < HandleCount; Index++) { + Status =3D gBS->ConnectController (HandleBuffer[Index], NULL, NULL, TR= UE); + } + + if (HandleBuffer !=3D NULL) { + FreePool (HandleBuffer); + } + + return EFI_SUCCESS; +} + +/** Start a UEFI image in the FMP payload. @param[in] ImageBuffer A pointer to the memory location containing a = copy of the image to be loaded.. @@ -1067,6 +1109,7 @@ StartFmpImage ( DEBUG ((DEBUG_ERROR, "Driver Return Status =3D %r\n", Status)); } + ConnectAllControllers(); FreePool(DriverDevicePath); return Status; } -- 2.1.1 This email and any attachments are intended for the sole use of the named r= ecipient(s) and contain(s) confidential information that may be proprietary= , privileged or copyrighted under applicable law. If you are not the intend= ed recipient, do not read, copy, or forward this email message or any attac= hments. Delete this email message and any attachments immediately. -=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 (#67178): https://edk2.groups.io/g/devel/message/67178 Mute This Topic: https://groups.io/mt/78135577/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Mon Apr 29 15:51:08 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+67179+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1604930194969783.3821840778373; Mon, 9 Nov 2020 05:56:34 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id nwuVYY1788612xumNa76OHku; Mon, 09 Nov 2020 05:56:34 -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.web12.9870.1604919796620891211 for ; Mon, 09 Nov 2020 03:03:16 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WmI2dy97I8O+7m1Ra2p7OHurDLD/IgzxoHD2KsVwf0zGDoRD4voUcd+4c4958EMcP3GwZkcJHRtpirzVhjkwxdVPiuxNYSkej6dF8Mgm6nPeQzujXU6NtmoRHkuyv2YOkPl573C38x0ROuQAAOcxKiGaKSnq69ejfvs0TUD/7p3A6AJRo++rPt27t1TsaKrqpOJhgF34e1MKlC8tcHM8P84poO4qWU2GphNPUWJSjJPInagQkTpvbrd5v+eKhT+vK6Y7MAfh6OZS/tZVvmNNqq21c71T/Sl4VAiPxY9fohiznGynKkP4RuUuyv+IHn2fN51LqelAhBVMj75iBLg3Uw== 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-SenderADCheck; bh=QHJv+OeZH/3myjnKnkuzK0bvK5ezYFq6bofJb3iIYqo=; b=RFSttV88OKcRqwwO2PV/Df8c3AODAUo/N6mEguc/OazGdnLou6nMSW1g4XTsNY9vdB9rQOas/Rt/8q2TZqz2unjhg/ctB6uwwFtXa8uuUCWGzzlwmCmwWVahZLZ8ktXW8U6nwTaINIzzuE7WXhY/PdkWBUomXgTGWoGNbQpaV3x/03UD5rmiDjy8iDXIbbkaJYjPtiGW93jvloTbPPvqoadpodOtfeJsmxqH6sH2SvLH+34F5Pqljl7unrGWzYKdH51QtkQUp1TkRmY/iHNSAoRybYVrMm4aWyq9TkP4fWi6P45F43/hzvT4WnzQpBpI2odcGWWCwZ02reo0Uj6M+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none X-Received: from MN2PR10CA0007.namprd10.prod.outlook.com (2603:10b6:208:120::20) by DM6PR02MB5115.namprd02.prod.outlook.com (2603:10b6:5:4b::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.22; Mon, 9 Nov 2020 11:03:14 +0000 X-Received: from BL2NAM02FT033.eop-nam02.prod.protection.outlook.com (2603:10b6:208:120:cafe::53) by MN2PR10CA0007.outlook.office365.com (2603:10b6:208:120::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Mon, 9 Nov 2020 11:03:14 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+67179+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; X-Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by BL2NAM02FT033.mail.protection.outlook.com (10.152.77.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3541.17 via Frontend Transport; Mon, 9 Nov 2020 11:03:14 +0000 X-Received: from xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Mon, 9 Nov 2020 03:03:14 -0800 X-Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Mon, 9 Nov 2020 03:03:14 -0800 Envelope-to: sandeep.dhanvada@xilinx.com, devel@edk2.groups.io X-Received: from [172.23.155.43] (port=42892 helo=xhdengvm155043.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1kc4x7-0004jf-Go; Mon, 09 Nov 2020 03:03:13 -0800 From: "Sandeep Dhanvada" To: CC: Subject: [edk2-devel] [PATCH 2/2] OvmfPkg: Add EsrtFmpDxe in OVMF X64 Builds. Date: Mon, 9 Nov 2020 16:33:04 +0530 Message-ID: <878edf2cd930731cf8bf8fc92779e76029f0da83.1604918017.git.sandeep.dhanvada@xilinx.com> In-Reply-To: References: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bbaa5b7b-6724-4fdb-dabc-08d8849f0e50 X-MS-TrafficTypeDiagnostic: DM6PR02MB5115: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: Rpdv11CagJ6+/Zilpluutc6cI5c28XGEzvwfESZun1HIyBrdwPkGv0y/sAlQPYHNLY3F6+LoDYsO1AwPITzmEt6jJw5L/D6BkkZz5Kj3j4xqJAyY9Sn9FBaUTkewXmA0z3k5wcP6KSyv1QuZOy8Un6Z9eEpuBqTyPodISmJJpkAw/ZPRCtJvneKW61kvr/yHGda16nY//FPY8Rkkp5vs7KMGq8IH3bjdjA821GU8peofytTV7xY4H9h8t0xgEB1Tc7CKo3DdnlW6UrCuq5679+lmW7LTU5gE1DbxzIbZH88yOsIkYLK2shR9krqQ3+JXs0SQuEgrAnLbamR2QzdiujWQH7cu0+OlXIYJZsA8jyyvgvRA+EdoJpfukV487HJfgXWNqntG8I07pZlt7JREuLt2HOCVqMxpsaLw1GuwXvo= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2020 11:03:14.6372 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bbaa5b7b-6724-4fdb-dabc-08d8849f0e50 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: BL2NAM02FT033.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB5115 Precedence: Bulk List-Unsubscribe: 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,sandeep.dhanvada@xilinx.com X-Gm-Message-State: ZZsLVTT8SzkGzcOElNoUEPgwx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1604930194; bh=wggSC5J2s7gbn2nXd6dmUv0LCuGeokT9bfFcYtuaZ+o=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=X7PVA/h8j1qTkXajNQ+LkNogKIyXJ+MSWl74UVxnV5154eD7vLiJvHm9FKcWUpWXbWc h7R11w/Y3c1Kg+te4My3CIR1y/2jjQk9+/eVoYnPE7ZXP8/jKzalBzsueNSYr3KKTfq7J ZTHqbKPBtc+JVuD5rBdLBTKoeZUFzzAorho= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" This will allow testing of FMP Capsule update on a PCI device with OVMF. DxeRuntimeCapsuleLib from DxeCapsuleLibFmp enables capsule update support in OVMF. Inclusion of EsrtFmpDxe in OVMF X64 builds will enable dynamic creation of ESRT using FMP produced by UEFI device driver. Testing these changes with CapsuleApp.efi and with FMP support added in UEFI device driver shows that, dump ESRT using -E option displays ESRT table and using this efi with a capsule file as argument, is initiating the firmware update process using UpdateCapsule API. Signed-off-by: Sandeep Dhanvada --- OvmfPkg/OvmfPkgX64.dsc | 4 +++- OvmfPkg/OvmfPkgX64.fdf | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc index 7a8bdb8..07cc167 100644 --- a/OvmfPkg/OvmfPkgX64.dsc +++ b/OvmfPkg/OvmfPkgX64.dsc @@ -138,7 +138,7 @@ UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManag= erLib.inf BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf - CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf + CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibFmp/DxeRuntimeCapsuleLib.inf DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableL= ib.inf PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeC= offGetEntryPointLib.inf @@ -796,6 +796,8 @@ MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntim= eDxe.inf MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf + MdeModulePkg/Universal/EsrtFmpDxe/EsrtFmpDxe.inf + MdeModulePkg/Library/DxeCapsuleLibFmp/DxeRuntimeCapsuleLib.inf MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf= { diff --git a/OvmfPkg/OvmfPkgX64.fdf b/OvmfPkg/OvmfPkgX64.fdf index 17ba9e1..97405e8 100644 --- a/OvmfPkg/OvmfPkgX64.fdf +++ b/OvmfPkg/OvmfPkgX64.fdf @@ -281,6 +281,7 @@ INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseD= xe.inf INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe= .inf +NF MdeModulePkg/Universal/EsrtFmpDxe/EsrtFmpDxe.inf INF OvmfPkg/SioBusDxe/SioBusDxe.inf !if $(SOURCE_DEBUG_ENABLE) =3D=3D FALSE -- 2.1.1 This email and any attachments are intended for the sole use of the named r= ecipient(s) and contain(s) confidential information that may be proprietary= , privileged or copyrighted under applicable law. If you are not the intend= ed recipient, do not read, copy, or forward this email message or any attac= hments. Delete this email message and any attachments immediately. -=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 (#67179): https://edk2.groups.io/g/devel/message/67179 Mute This Topic: https://groups.io/mt/78135578/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-