From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=Xy4k79tI; spf=pass (domain: xilinx.com, ip: 40.107.220.68, mailfrom: sdhanvad@xilinx.com) 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QHJv+OeZH/3myjnKnkuzK0bvK5ezYFq6bofJb3iIYqo=; b=Xy4k79tIjG2z212MwLqRxjgCxPFs3ASEkbv3xt77No/dbBnM3xBfapNRuOcCsPpc/L0/niqmrROMJUEnPtdlLLCzJnkmrzuKNACtJbUKuLqnEyXQNZcQzZEtx4UGMXeMOZhQpQM2bmQ6c/fWKMc2C+k4Wqen7V7cFVY3+FZ96WU= 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 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 (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; 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 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 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 Return-Path: SDHANVAD@xilinx.com Envelope-to: sandeep.dhanvada@xilinx.com, devel@edk2.groups.io 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: [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> X-Mailer: git-send-email 2.1.1 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: BCL:0; X-Microsoft-Antispam-Message-Info: Rpdv11CagJ6+/Zilpluutc6cI5c28XGEzvwfESZun1HIyBrdwPkGv0y/sAlQPYHNLY3F6+LoDYsO1AwPITzmEt6jJw5L/D6BkkZz5Kj3j4xqJAyY9Sn9FBaUTkewXmA0z3k5wcP6KSyv1QuZOy8Un6Z9eEpuBqTyPodISmJJpkAw/ZPRCtJvneKW61kvr/yHGda16nY//FPY8Rkkp5vs7KMGq8IH3bjdjA821GU8peofytTV7xY4H9h8t0xgEB1Tc7CKo3DdnlW6UrCuq5679+lmW7LTU5gE1DbxzIbZH88yOsIkYLK2shR9krqQ3+JXs0SQuEgrAnLbamR2QzdiujWQH7cu0+OlXIYJZsA8jyyvgvRA+EdoJpfukV487HJfgXWNqntG8I07pZlt7JREuLt2HOCVqMxpsaLw1GuwXvo= X-Forefront-Antispam-Report: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch01.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(4636009)(396003)(136003)(376002)(346002)(39850400004)(46966005)(316002)(36906005)(36756003)(9786002)(356005)(2616005)(44832011)(186003)(82310400003)(7696005)(107886003)(26005)(82740400003)(4326008)(6666004)(426003)(336012)(478600001)(2906002)(7636003)(6916009)(47076004)(19627235002)(8676002)(8936002)(70586007)(5660300002)(70206006)(83380400001)(102446001);DIR:OUT;SFP:1101; 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 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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.in= f 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.