From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on060f.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe42::60f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id DAD9B821F9 for ; Fri, 3 Mar 2017 07:06:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=A5VNE5m7NE9hkhi76TlgG4lQst2X02d5QE0ifm4gAFs=; b=kNsmDbk+boFXqkJ5Txj4gynvzCW1fFi2Vx6miTLQ8/qYZ/Ui+feYG0C9ZFSyYn3h/TQZveHHQr766XPW+7HgJ7J4HWXGryybneRQwBZU306s2GOWL93Hzm6DsF+ik09PrWzCiThBt5yg/adziFCA0e04q65ZmCYW2Z4ttrVGwpc= Received: from DM5PR12MB1243.namprd12.prod.outlook.com (10.168.237.22) by DM5PR12MB1244.namprd12.prod.outlook.com (10.168.237.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12; Fri, 3 Mar 2017 15:06:21 +0000 Received: from DM5PR12MB1243.namprd12.prod.outlook.com ([10.168.237.22]) by DM5PR12MB1243.namprd12.prod.outlook.com ([10.168.237.22]) with mapi id 15.01.0947.015; Fri, 3 Mar 2017 15:06:21 +0000 From: "Duran, Leo" To: "'Ni, Ruiyu'" , "edk2-devel@ml01.01.org" CC: "Yao, Jiewen" Thread-Topic: [edk2] [PATCH v4 0/6] DxeBmDmaLib (BmDmaLib class) library Thread-Index: AQHSk4VZhWPDQ+EoT0Cs/UJDr3mKoKGCXeyAgADaZZA= Date: Fri, 3 Mar 2017 15:06:21 +0000 Message-ID: References: <1488480396-32358-1-git-send-email-leo.duran@amd.com> <734D49CCEBEEF84792F5B80ED585239D5B8BE9E0@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <734D49CCEBEEF84792F5B80ED585239D5B8BE9E0@SHSMSX104.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=amd.com; x-originating-ip: [165.204.77.1] x-ms-office365-filtering-correlation-id: 72252cde-2b86-4768-3d96-08d46246da5e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:DM5PR12MB1244; x-microsoft-exchange-diagnostics: 1; DM5PR12MB1244; 7:DqAblqLhE/HbTqgTPIjmdUEY68wkpw4M8QX9kFNfSS8CSRyMNa8G9Nt82sSA09kivzhxkYL3pjxOt+96nsHgC2K5IiVaRY4NoeGOEcyruACi9i13pcTLNpBYpXcveA5U9Mq4EE44k6WmHuHF103QvTEXl0zMMt8zjy1IteKlitzv1AgQ7FRudfLgWgyrav1V84DsHutw3gEuOFN2A8iJyT4tKcYDmjgNak0seSNvxQaYtll/RdDy9mTc4/x5xXDuzLveVqzDreR03YeQoCPgb07kz2e3bKdUXx5ewH/ssUwPSiSHQNVMgaCuk7uDXN9QJFu+hGINRKQVMn8Rq1Prcw==; 20:cY6XQ83FY7Q4fVw7rqKuGIEj1YqxFxEvStEZxpNSRGyChzbO2LP7ddCT4Fj+3nGdX/hEh6e+L6DeJo8/jT9ACX/gQytSFcZGzl5s40v7k9FmX54eS2tjmhdasWfI1Rx3vyK7UW1Xr2QzWpR5qGBUwBlD29yEV4UWkjR/CG+7ItplkIXTtf+5QfCJp/eCuAwn8pQzX4J5Wh16QFUvreELpgdm3iSl8AQkHe9UFCwSZ16UCR+oCiCqVr32PgYtEKEL x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(767451399110)(162533806227266)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123558025)(20161123555025)(20161123564025)(20161123562025)(20161123560025)(6072148); SRVR:DM5PR12MB1244; BCL:0; PCL:0; RULEID:; SRVR:DM5PR12MB1244; x-forefront-prvs: 0235CBE7D0 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(6029001)(7916002)(39450400003)(39850400002)(39410400002)(39860400002)(39840400002)(209900001)(13464003)(377454003)(7696004)(76176999)(50986999)(54356999)(2900100001)(2501003)(9686003)(55016002)(2950100002)(86362001)(7736002)(305945005)(5660300001)(74316002)(189998001)(229853002)(4326008)(6306002)(53546006)(53376002)(53936002)(38730400002)(99286003)(77096006)(6246003)(6436002)(25786008)(92566002)(33656002)(66066001)(106116001)(122556002)(2906002)(6506006)(3280700002)(6116002)(8676002)(8936002)(102836003)(81166006)(3846002)(3660700001)(6606295002)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1244; H:DM5PR12MB1243.namprd12.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2017 15:06:21.5203 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1244 Subject: Re: [PATCH v4 0/6] DxeBmDmaLib (BmDmaLib class) library X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2017 15:06:23 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Sounds good, thanks. Leo > -----Original Message----- > From: Ni, Ruiyu [mailto:ruiyu.ni@intel.com] > Sent: Thursday, March 02, 2017 8:04 PM > To: Duran, Leo ; edk2-devel@ml01.01.org > Cc: Yao, Jiewen > Subject: RE: [edk2] [PATCH v4 0/6] DxeBmDmaLib (BmDmaLib class) library >=20 > Leo, > I talked with Jiewen in office today. He felt that Intel might have a sim= ilar > need of such layer of abstraction (BmDmaLib). > We are investigating it. Can you please wait for several days? > We'd like to review the current interfaces of BmDmaLib to make sure it's > general enough to meet any potential needs. > Sorry about the delay. >=20 > Regards, > Ray >=20 > >-----Original Message----- > >From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > >Leo Duran > >Sent: Friday, March 3, 2017 2:47 AM > >To: edk2-devel@ml01.01.org > >Cc: Leo Duran > >Subject: [edk2] [PATCH v4 0/6] DxeBmDmaLib (BmDmaLib class) library > > > >This series provides an abstraction layer for Bus-master DMA operations > >as currently implemented by the PciHostBridgeDxe driver. The intent is > >to then allow override of this library as may be required by specific > >hardware implementations, such as AMD's Secure Encrypted Virtualization > (SEV). > > > >Please refer to the RFC discussion for SEV here: > >http://marc.info/?l=3Dlinux-mm&m=3D147190814023863&w=3D2 > > > >This new BmDmaLib class library is cloned from the existing DmaLib with > >an additional DmaAbove4GB (BOOLEAN) parameter for the Map and > Allocate > >interfaces, so that decisions can be made about the need to allocate > >DMA buffers below the 4GB boundary. > > > >NOTE: The abstraction layer is intended for Bus-master (DMA capable) > >devices, and not restricted to the PCI Root-Bridge use-case. Thus the > >rationale for not using EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_OPERATION > types. > > > >Changes since v3: > >- Add copyright notice on changed files. > >- Re-order parameters on BmDmaFreeBuffer(), consistent with gBS- > >FreePages(). > > > >Leo Duran (6): > > MdeModulePkg: Add DxeBmDmaLib (BmDmaLib class) library > > ArmVirtPkg: Resolve BmDmaLib class for PciHostBridgeDxe driver > > CorebootPayloadPkg: Resolve BmDmaLib class for PciHostBridgeDxe > >driver > > MdeModulePkg: Resolve BmDmaLib class for PciHostBridgeDxe driver > > OvmfPkg: Resolve BmDmaLib class for PciHostBridgeDxe driver > > MdeModulePkg: Modify PciHostBridgeDxe to use new BmDmaLib class > > library > > > > ArmVirtPkg/ArmVirtQemu.dsc | 2 + > > ArmVirtPkg/ArmVirtQemuKernel.dsc | 2 + > > CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc | 3 + > > CorebootPayloadPkg/CorebootPayloadPkgIa32X64.dsc | 3 + > > .../Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf | 1 + > > .../Bus/Pci/PciHostBridgeDxe/PciRootBridge.h | 15 +- > > .../Bus/Pci/PciHostBridgeDxe/PciRootBridgeIo.c | 274 ++++----------= -- > > MdeModulePkg/Include/Library/BmDmaLib.h | 161 ++++++++++ > > MdeModulePkg/Library/DxeBmDmaLib/DxeBmDmaLib.c | 351 > +++++++++++++++++++++ > > MdeModulePkg/Library/DxeBmDmaLib/DxeBmDmaLib.inf | 41 +++ > > MdeModulePkg/MdeModulePkg.dsc | 3 + > > OvmfPkg/OvmfPkgIa32.dsc | 2 + > > OvmfPkg/OvmfPkgIa32X64.dsc | 2 + > > OvmfPkg/OvmfPkgX64.dsc | 2 + > > 14 files changed, 642 insertions(+), 220 deletions(-) create mode > > 100644 MdeModulePkg/Include/Library/BmDmaLib.h > > create mode 100644 > MdeModulePkg/Library/DxeBmDmaLib/DxeBmDmaLib.c > > create mode 100644 > MdeModulePkg/Library/DxeBmDmaLib/DxeBmDmaLib.inf > > > >-- > >2.7.4 > > > >_______________________________________________ > >edk2-devel mailing list > >edk2-devel@lists.01.org > >https://lists.01.org/mailman/listinfo/edk2-devel