From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0610.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe41::610]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 83D9C81DF4 for ; Tue, 17 Jan 2017 08:06:58 -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=vAd6Ec6u1HzyYvm9dqOre1Q7CB2ouPZjY1Q2fcAHetM=; b=Jgj3C8O6wwElGYAjJ1NGbwpP4YybFedT0NAgwyNjY0+Mvq5fl4EEDn9tYIUuYAqHfFlMd9vLlK4YaJPAcKLm8zaEfd/ZsANY3WDjFT3nJwZ+dFRIMJi79MAU1OQlPcEOBzZLBHOlkaMWepB46mKFncGy6o7nVsFlWiGWGElXD0Y= Received: from DM5PR12MB1243.namprd12.prod.outlook.com (10.168.237.22) by CY1PR12MB0667.namprd12.prod.outlook.com (10.163.238.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Tue, 17 Jan 2017 16:06:56 +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.0845.013; Tue, 17 Jan 2017 16:06:55 +0000 From: "Duran, Leo" To: "edk2-devel@lists.01.org" CC: "feng.tian@intel.com" , "star.zeng@intel.com" , "lersek@redhat.com" , "jordan.l.justen@intel.com" , "maurice.ma@intel.com" , "prince.agyeman@intel.com" , "ard.biesheuvel@linaro.org" , "Singh, Brijesh" Thread-Topic: [RFC v2 0/6] DxeBmDmaLib (BmDmaLib class) library Thread-Index: AQHSbepqpNBleULC5Ua+9J0ZFzja4qE82oCg Date: Tue, 17 Jan 2017 16:06:55 +0000 Message-ID: References: <1484345656-3574-1-git-send-email-leo.duran@amd.com> In-Reply-To: <1484345656-3574-1-git-send-email-leo.duran@amd.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; CY1PR12MB0667; 7:fvz40xxphqKx2kBpMam9kzaRcXLY6fubxsDEIN91XTUCJYa1SD5otBh5AUf4ax/8ZpWBYgv3MdbI7OfkvDmfv0+EoGZGTjAAFM5O83ml+oVCkwLNFKvs8038aNeaiP7dKwSZo7MzTfoansqZvUsQ+K5iASDs+1yqUW1m0QDyIgAqx8iavM8fnmcrLyeNPLInT/gXD9BZyxzfFAxgRulUKL4sTVE42rIL4j8batch+c8r4wNO17x2s/fr5q6Z5Fbl2Ln+qcdmHN2VDTONxecDAVJFlnaegEp9OxLKFXYdcoJpPtnrC1qWKhochaBlhnV07suN7MG22UC6jGFsypzGdfAi4idF/ytWWXO1Dy+rcGfTQyqVu874kXOGAAjZxMkb2Te+ZLD0m7qjyy/DJdzeAvxtQV0M6fwTTfJs/r0USo+qAy/2/bsE6loRwyYIG3a3uCij4BpQWcuzSULMCt12DA==; 20:kAEl3Ftb1ji2eqo7QeD6TJuxaci5FCFSOPGWYV2H/ck0VxWeulVsVQr9wcmUW4/7xJ4vmI2iW5psGYcA1zTVhibMtmzLJCNEO1pKUSuiEn1d6GhFbPLZSdIzrg3qSMq7BGjzY8fUXXMwxIp7ROBJya2JqUXiOqRtKAtJ4nRrl455GGrFqpWFrKoCYeyvv6Pt609SFKTugbA/5ckfSaYh0SEnzGPLnseBahdMo+ZbO57ojxWr+GfUarzhPAak4WKv x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10009020)(6029001)(6009001)(7916002)(39860400002)(39850400002)(39410400002)(39840400002)(39450400003)(209900001)(377454003)(13464003)(189002)(199003)(9686003)(6306002)(6506006)(68736007)(86362001)(3280700002)(110136003)(15395725005)(4326007)(92566002)(2501003)(5660300001)(3660700001)(38730400001)(2950100002)(7696004)(3900700001)(54906002)(5640700003)(6436002)(229853002)(6916009)(99286003)(55016002)(81156014)(8676002)(54356999)(76176999)(97736004)(50986999)(189998001)(77096006)(25786008)(8936002)(66066001)(3846002)(102836003)(6116002)(122556002)(106356001)(106116001)(105586002)(2906002)(2900100001)(2351001)(101416001)(81166006)(74316002)(7736002)(305945005)(33656002)(19627235001)(6606295002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR12MB0667; H:DM5PR12MB1243.namprd12.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; x-ms-office365-filtering-correlation-id: da30bf2b-e0d2-4124-666d-08d43ef2db9d x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY1PR12MB0667; 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)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:CY1PR12MB0667; BCL:0; PCL:0; RULEID:; SRVR:CY1PR12MB0667; x-forefront-prvs: 01901B3451 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: 17 Jan 2017 16:06:55.1274 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0667 Subject: Re: [RFC v2 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: Tue, 17 Jan 2017 16:06:58 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Feng, Star, et al,=20 Any comments, questions or concerns? Thanks, Leo. > -----Original Message----- > From: Duran, Leo > Sent: Friday, January 13, 2017 4:14 PM > To: edk2-devel@lists.01.org > Cc: lersek@redhat.com; jordan.l.justen@intel.com; feng.tian@intel.com; > star.zeng@intel.com; maurice.ma@intel.com; prince.agyeman@intel.com; > ard.biesheuvel@linaro.org; Singh, Brijesh ; Duran, > Leo > Subject: [RFC v2 0/6] DxeBmDmaLib (BmDmaLib class) library >=20 > This series provides an abstraction layer for Bus-master DMA operations a= s > 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 > Please refer to the RFC discussion for SEV here: > http://marc.info/?l=3Dlinux-mm&m=3D147190814023863&w=3D2 >=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. >=20 > 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. >=20 > Changes since RFC v1: > - Patch 1: Restrict LIBRARY_CLASS to DXE_DRIVER in INF file. > - Patches 2 through 5: > Change Subject: XxxPkg: Resolve BmDmaLib class for PciHostBridgeDxe > driver > Add Reviewed-by: Laszlo Ersek > - Add clarifications from RFC discussion to this cover letter. >=20 > 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 library >=20 > ArmVirtPkg/ArmVirtQemu.dsc | 1 + > ArmVirtPkg/ArmVirtQemuKernel.dsc | 1 + > CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc | 1 + > CorebootPayloadPkg/CorebootPayloadPkgIa32X64.dsc | 1 + > .../Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf | 1 + > .../Bus/Pci/PciHostBridgeDxe/PciRootBridge.h | 13 +- > .../Bus/Pci/PciHostBridgeDxe/PciRootBridgeIo.c | 272 +++++----------= ------ > MdeModulePkg/MdeModulePkg.dsc | 3 + > OvmfPkg/OvmfPkgIa32.dsc | 1 + > OvmfPkg/OvmfPkgIa32X64.dsc | 1 + > OvmfPkg/OvmfPkgX64.dsc | 1 + > 11 files changed, 76 insertions(+), 220 deletions(-) >=20 > -- > 1.9.1