From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0624.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe48::624]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 260A081C6B for ; Fri, 13 Jan 2017 14:14:34 -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=HwYCcV8U8l1vXC5fJ7i3RLsd2dH7CAA/fjZHszVqSX0=; b=ApI00pzh8OGOi/6OOJoQTdw8I9XQS3E8mI0UwATf+VhuuXFRuCx6pJVK06n3le9Er0emlRF56+fkQm445RFegI3vraUf1xTkwkEhWr8ze3EOvL5/tWcL6UEPWs3u4Hr1zx7Amgr6EP8kxgkHff9XrwMEcg2+Al7aKax/NWbeDy4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leo.duran@amd.com; Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by MWHPR12MB1248.namprd12.prod.outlook.com (10.169.205.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Fri, 13 Jan 2017 22:14:30 +0000 From: Leo Duran To: CC: , , , , , , , , Leo Duran Date: Fri, 13 Jan 2017 16:14:11 -0600 Message-ID: <1484345656-3574-2-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1484345656-3574-1-git-send-email-leo.duran@amd.com> References: <1484345656-3574-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: YQXPR01CA0019.CANPRD01.PROD.OUTLOOK.COM (10.165.102.157) To MWHPR12MB1248.namprd12.prod.outlook.com (10.169.205.8) X-MS-Office365-Filtering-Correlation-Id: 90b8704e-7301-403e-9729-08d43c018d08 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:MWHPR12MB1248; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1248; 3:4edK/yilNM7ITbhNPt7jqXy1sT3kOo9OOxxfzjKX87s0FXE8IbhT2e9JIxydrxHpj8pFuDIijPA6jQOyBxpsRcVEsqZQLKSv6/qIrqmgKPUhlSmn9/486p5gPLINoETANpK2KBWHnt6tONG5yvoSi0jYOa7w2xLqR+9SuJeU/0euQW8mbmfmQE0cpt9CB4TMXzjO7PageT+6VoatHpmj0aD++SSjKWdENFY86X+4oNt5/AAED1ic+fJ7dlIeIt4i3rtprdNzRJSYtjZMnWfQZQ==; 25:R/GOAAk6Fuqfy2yO11DSCz8N8fa6QgQsjvMuW617jhBRbDTNn92Q1vXbRLn/JN9G50Rj/RfDcQds6SsWU4i0tMt9LUEqPrW/yrfAPJk/4V57MzcGth50woi+ia3k+g/PW8yeG8j3+jqvyzLC9myhi91XdFygopN+dPTJdc1TP3NXGKOWUwCdMrlTEBU2DgbzFYSdhV7fgBLYV/p0R8qbTwMdXGuIVy2FVHDFDEqHRk74TlGcN+133W1R72OEd0GWeBYIjEFOlVeknj09I4YjkqgZWD8fMzgVqS5A49ZQ6IOOt5ivy5yNxhXU6+AelrsiSAfj2ZfJ39OfjRIu1Y/nkVt3NXvV+pvxCyJjUOcZpNsvxt2vD745VIFhv0TtD52M8WM13MNms597kCevnAybyzKcGcTqqx86WclUpzdmjOkqHYA0doyihU4FWjVzBH92A9K1O0CJ/XOIsxCq3oyMSw== X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1248; 31:CE3igBTYiR0AZqB4Zpb6dcv2CpO4Ol8QDNuHCXm3PKYpidNayUu+bdsv3e56lqffhlgVwF8dwULBJmLrmg5GZ3rdRl/VtqZXoUvMIwjZXhBDmSPpQpGUvND6hV7AfXaxFrHFnQRdSrXcrq3Ib33OytoCaRWKbjJIRBMTEyY2o2pU0+U0d6BiOMOaWPrh9DUBZeO/eFwElADrCFTsu7VxtR+t3Ig34xL6zK1Dc579Z2iXNkAzQKP7F5BSMyo4cOYy; 20:ErEN81sxf3GDtJa775kwt/eHCBPhKKe+QKihFHOG1QvF5Sb27bVkfCMzCrK8YY69FJh4Fmlg8TrzqFpHCy1KkjPR7RgczXph7OPo/ooU+b+/Is6YBzKJK1lKf+DSJQAm/NFhH2KOrz2Rr5Y8rGgys7log6mxrzLQKTMVWkZK/lUziM4IkW93Di97/QOA60CuEdU0Oa6+DZZ0ufft5hC1M//l6PodNGRTrTa5D0w+GhZrLEAvU7JPrl7j5wj2akAsRhj9p/9Plf+xe2DXYzz8JvEWyV2CjtcZIF/fhOontgy2P0NILGJu75Ga+qAGeHUJ5cHoRWwSJ7uDhrlBeQk1Nf0w5Y0O8SNWVgvUmIbuS3T8mtcw/nBQQmbapevdqZHXF9GwFQLgIHSoTPzEnYTu4s7EKOzjO8t3jbCulniyb/WeAgZvRYxn1a2TknKbxEctZgHheQ8+FBtGDW/jQz6MKDDQ3pYWgNtw3mo+yZlRc8k7F/rTTCWJSiLLyBts/yyp X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123558021)(20161123555025)(20161123562025)(20161123564025)(6072148); SRVR:MWHPR12MB1248; BCL:0; PCL:0; RULEID:; SRVR:MWHPR12MB1248; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1248; 4:jsuEE/URqBFsvCtYVGrp7mrI4lL5KsAq+DAt9GxYWVZKYOdVWxkYeDYGpemitFHyyf+xoCtA/+5LrpVHcH3vey4RLsKJHX+e5DxfaylZgpMydyKFZGfstT648lIonbBclIw0J2JB84MSseFDwj4+mh/IKwOQnMLYVSiTNK32bTLPdKOgyIxpbVsbz+47vmUbM+w5TE1p3JrscV2tfEJXNdI4D/wh6Z+XyTmRAc8ibtFU+idpOSP4CRMkn9JRvLaefK3kIzcWALpSKDfWPHYOI0Lu1XFWSw71ElY1IFhGHriBAGIDOqawRMe6t5obKiuCeoxnPm7gzv22GHvhCXBA+ii55lS+FYcXf9vFAsapSc7sAJy5krKYlFcjG30rzhsFfZmG2Jf6KZ7OFDNnWmDwMA/YBdzzxsmlEJl7mc+vu1xiVTbj7Iba1wIFHz4Um37nuHmUnz5ReM/14p5oJMMR3q1AnXhZeLto4Zvdjtsy2+b1Kbr2HeUxwy5KslvYsl/Mu7e9DZuHBCgehhr0Hh7pX/1Dnyw8mJKwrjvQ2/lsHj+bc4YO8UFskeNgF+opbI+vWwtl5CE2Bn1gQ0/py9Kpmw/SVZ89lEpZpbZOZ9prgRyQEjrdxaFf07iYVm0662pv X-Forefront-PRVS: 018632C080 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6029001)(6009001)(7916002)(39450400003)(39410400002)(39860400002)(39840400002)(39850400002)(199003)(189002)(5003940100001)(50466002)(48376002)(50986999)(76176999)(92566002)(25786008)(5660300001)(38730400001)(54906002)(6916009)(2950100002)(6486002)(110136003)(305945005)(7736002)(6666003)(81166006)(81156014)(36756003)(31430400001)(189998001)(68736007)(97736004)(86362001)(8676002)(53416004)(42186005)(33646002)(106356001)(101416001)(2351001)(47776003)(50226002)(6116002)(3846002)(2906002)(4326007)(105586002)(66066001)(27001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR12MB1248; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR12MB1248; 23:ms+nAR2h0QsNJqxeoksQqBLSWZlK05ujjKB6XPtuU?= =?us-ascii?Q?ODs4ZrSe5TYQPPvDJ3K2W3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sdtk=; 24:zwxq2zL/JOzYV+a2u52HF2FPEsx9lHhjYG1JGBIVO5d2WbS138c7fr8cR4n2dryH3RsjyCRPop9OWUob7DbNiGul2xGpZUfW89mBMxAuqHk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1248; 7:8H1XH3QGRXSEw1i/JPBwK32FG6J38JGbDmjYbTim63BFlTeYJUf52qnE/+hGk3+ORp30MBj3xQeLar2EMMhouuFXaK50YgtGp12b9ffDD3VvO/Y0laryFJ8pXHhIZJn42hF6GbUIZOM2E1rSceCu2xpf5atHwlmbdMk5ftbfAxVrOzxUN3UdDVeg7sRNlm3DgzNk2ewUdL4b34qIr9xv9CgaX/nPUL4b+3iRTVGxCES3yOi3pwOj4+8rxW8x7eROWimFFznNuezZSALdiqpbzV8sZg4sx4PuB+FL+xzKhQLYFXp5/LXcOCPluX72zq5lWxOlSlGwCfy6KXv/byx5dLCGl04MgpWGDwIi75Zi7ng8JQa4mOxWTCJpjzlMBEnZa487SsmQevWoJwcmqwbX7iivvITv7EFBB2t22LvEMCDfmD0MNXhK0W0yqR+LFWWpcnqMYa4i8P+7/anmKaKJBA==; 20:Nsw45uLBtZEaEXHJKhPxV3suBUuRDfXBs8XHK+7KkJfq4tDmMksvoJI3t0wZPKj+SP1g4cqw1GRD/hmnf80xvWA0TDH57GHJTGbnX3WoPfEHAihVQetRrUcpAJ/VY0Iz5QtibWvRC5f8Fyy1Jmio+AbC+NPW+wZqhaT9L2WzuA6MASeJYgrwBRBoObTEMbRL3izO2ytAGacAtscPttvgZR8QsgSnwgZSIGvAWbDrts7UMMKSLvzmniiRYstweZfA X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2017 22:14:30.9443 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1248 Subject: [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: Fri, 13 Jan 2017 22:14:34 -0000 Content-Type: text/plain 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/UefiMemoryAllocationProfileLib.inf MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf -- 1.9.1