From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0617.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe49::617]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id F113281F53 for ; Thu, 9 Feb 2017 07:10:02 -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=m2h3d+XbfdNqG/p0FM9eE8lNREGXRKWHA6GovoDDaBQ=; b=AnaGQuf6GNStNS4CRK60YjWxIS5iqygZ2g63VtryooLuIqtOv333/O0xdrVXwbmQ8qDvYDOFE7ikAR7bYH/REUf1ItAkGUJW5dkAMirY/AzZHLEGOIWqqfyQm78J2yefpqvX7ObBiRfI41DqTIUWm1S8vi3kWtFXHLBPOJdZybM= Received: from DM5PR12MB1243.namprd12.prod.outlook.com (10.168.237.22) by DM5PR12MB1610.namprd12.prod.outlook.com (10.172.40.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Thu, 9 Feb 2017 15:10:01 +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.0888.028; Thu, 9 Feb 2017 15:10:00 +0000 From: "Duran, Leo" To: "'Ni, Ruiyu'" , "edk2-devel@lists.01.org" CC: "Tian, Feng" , "Singh, Brijesh" , "ard.biesheuvel@linaro.org" , "Justen, Jordan L" , "Zeng, Star" , "lersek@redhat.com" , "Agyeman, Prince" Thread-Topic: [edk2] [RFC v2 1/6] MdeModulePkg: Add DxeBmDmaLib (BmDmaLib class) library Thread-Index: AQHSbeprU4VXiid1iEKcDKDfm/N1Q6FgFGwAgADcXKA= Date: Thu, 9 Feb 2017 15:10:00 +0000 Message-ID: References: <1484345656-3574-1-git-send-email-leo.duran@amd.com> <1484345656-3574-2-git-send-email-leo.duran@amd.com> <734D49CCEBEEF84792F5B80ED585239D5B89B143@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <734D49CCEBEEF84792F5B80ED585239D5B89B143@SHSMSX104.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=leo.duran@amd.com; x-originating-ip: [165.204.77.1] x-microsoft-exchange-diagnostics: 1; DM5PR12MB1610; 7:d5gDpsg43LEZd5y+LM4k9wNow2eaPwNPg6uiJzN54RiXOKaZDqxNFSupw/sQwtHl/98hMVLjB+qMyGhqo+JvN3NwAvhUwPUH3oNgz4LIeD1YrB9I+XpRjyaerTkhdudiVlRf9PDKtG/6FqPhwvHeJe1Q2HM9zwvknAm+NSPy+i80/Zh8C4pbwMOm2JT6D4JpzlcDvMVH2DiHNLHAvS3OKJw9//XN6bXtl/owequXiZ+ORVPhKMtq3U69aPpQYffTrD8hfyd+Rkj8u3S2FlD88SuCHiTkkEn87RG3asTST6ShJruJONeGl0bam767sYjSY/hqoDcBS6TnhXQ7KkWz4CLunqcNNoaGDWAojQ8NWWfpmJX8T7Mfs80jUG7uz2LQ9MSD3odJ1dclQPHR69+pgbNUbjPGT+v7mGM00OeTYqHwvl9OFRvCTi3syTeZf2NyEixTBLWXXyfRH2Yow/qPq5I0H7Z3vYrARRi8nBp6al/A+bJn1NukwI6mbzkzWOdaFTWMrC43yULdLsTvQ/Vgjg==; 20:s9Ea2cV80RYPFDHeUEuUHQdOKvzbPLpFnE/xREXsznxDIyoJUjVQRGpojQPVU/Okf73uNCfqWBzSplQ9B9Nr2E5/NRET6On4+Rfb7Cv5o9xahhYFueBsQyvmRJIH3KEJIlTPdZ4K8kANzLI6v2jnMoiuAyJvKPxgHjV2zs9WYDbwmBsnp8d2Se6EXYSVIJvKq4HXGkC5hnEKibWBHsBt3LKQP+nGkDjE76xdOMa26MIXA7vV01n/JFemyqu1C00S x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10009020)(6029001)(6009001)(7916002)(39450400003)(39840400002)(39410400002)(39850400002)(39860400002)(199003)(189002)(377454003)(13464003)(2501003)(2906002)(86362001)(4326007)(2900100001)(54356999)(76176999)(66066001)(122556002)(3660700001)(68736007)(3280700002)(50986999)(189998001)(31430400001)(81156014)(8936002)(305945005)(7736002)(74316002)(8676002)(81166006)(105586002)(106356001)(106116001)(6246003)(38730400002)(92566002)(7696004)(3846002)(77096006)(2950100002)(229853002)(5660300001)(33656002)(55016002)(99286003)(9686003)(97736004)(54906002)(101416001)(53936002)(102836003)(25786008)(6116002)(6306002)(6506006)(6436002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1610; H:DM5PR12MB1243.namprd12.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; x-ms-office365-filtering-correlation-id: fac6c563-bc84-4087-2007-08d450fdb7a4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:DM5PR12MB1610; 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)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(20161123558025)(6072148); SRVR:DM5PR12MB1610; BCL:0; PCL:0; RULEID:; SRVR:DM5PR12MB1610; x-forefront-prvs: 02135EB356 received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Feb 2017 15:10:00.1755 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1610 Subject: Re: [RFC v2 1/6] MdeModulePkg: Add 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: Thu, 09 Feb 2017 15:10:03 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Ray. I'll review what I previously sent, and will resend if necessary. Thanks, Leo. > -----Original Message----- > From: Ni, Ruiyu [mailto:ruiyu.ni@intel.com] > Sent: Wednesday, February 08, 2017 7:59 PM > To: Duran, Leo ; edk2-devel@lists.01.org > Cc: Tian, Feng ; Singh, Brijesh > ; ard.biesheuvel@linaro.org; Justen, Jordan L > ; Zeng, Star ; > lersek@redhat.com; Agyeman, Prince > Subject: RE: [edk2] [RFC v2 1/6] MdeModulePkg: Add DxeBmDmaLib > (BmDmaLib class) library >=20 > Leo, > Did you forget to add the BmDmaLib implementation in the patch? >=20 > Thanks/Ray >=20 > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > > Leo Duran > > Sent: Saturday, January 14, 2017 6:14 AM > > To: edk2-devel@lists.01.org > > Cc: Tian, Feng ; brijesh.singh@amd.com; > > ard.biesheuvel@linaro.org; Justen, Jordan L > > ; Leo Duran ; Zeng, > Star > > ; lersek@redhat.com; Agyeman, Prince > > > > Subject: [edk2] [RFC v2 1/6] MdeModulePkg: Add DxeBmDmaLib > (BmDmaLib > > class) library > > > > This patch 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). > > > > 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. > > --- > > MdeModulePkg/MdeModulePkg.dsc | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/MdeModulePkg/MdeModulePkg.dsc > > b/MdeModulePkg/MdeModulePkg.dsc index 5996fe5..311922e 100644 > > --- a/MdeModulePkg/MdeModulePkg.dsc > > +++ b/MdeModulePkg/MdeModulePkg.dsc > > @@ -275,6 +275,7 @@ [Components] > > MdeModulePkg/Core/Pei/PeiMain.inf > > MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf > > > > + MdeModulePkg/Library/DxeBmDmaLib/DxeBmDmaLib.inf > > MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf > > > > > MdeModulePkg/Library/UefiMemoryAllocationProfileLib/UefiMemoryAlloca > > tionProfileLib.inf > > > > > MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllo > > cationLib.inf > > -- > > 1.9.1 > > > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel