From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7AF4A82132 for ; Wed, 8 Feb 2017 17:59:24 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Feb 2017 17:59:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,349,1484035200"; d="scan'208";a="1092555217" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga001.jf.intel.com with ESMTP; 08 Feb 2017 17:59:23 -0800 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 8 Feb 2017 17:59:23 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 8 Feb 2017 17:59:23 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.59]) by SHSMSX103.ccr.corp.intel.com ([10.239.4.69]) with mapi id 14.03.0248.002; Thu, 9 Feb 2017 09:59:21 +0800 From: "Ni, Ruiyu" To: Leo Duran , "edk2-devel@lists.01.org" CC: "Tian, Feng" , "brijesh.singh@amd.com" , "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: AQHSbepvAXtwnDsqqke/obA0VMl1YKFgFD/A Date: Thu, 9 Feb 2017 01:59:20 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D5B89B143@SHSMSX104.ccr.corp.intel.com> References: <1484345656-3574-1-git-send-email-leo.duran@amd.com> <1484345656-3574-2-git-send-email-leo.duran@amd.com> In-Reply-To: <1484345656-3574-2-git-send-email-leo.duran@amd.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 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 01:59:24 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Leo, Did you forget to add the BmDmaLib implementation in the patch? Thanks/Ray > -----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 >=20 > This patch provides an abstraction layer for Bus-master DMA operations as > currently implemented by the PciHostBridgeDxe driver. The intent is to th= en > allow override of this library as may be required by specific hardware > implementations, such as AMD's Secure Encrypted Virtualization (SEV). >=20 > 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(+) >=20 > 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 >=20 > + MdeModulePkg/Library/DxeBmDmaLib/DxeBmDmaLib.inf > MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf >=20 > MdeModulePkg/Library/UefiMemoryAllocationProfileLib/UefiMemoryAlloca > tionProfileLib.inf >=20 > MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllo > cationLib.inf > -- > 1.9.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel