From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on060b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe46::60b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9AA07819BB for ; Thu, 5 Jan 2017 13:34:59 -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=GH5IPz3yl6kDApktcEGpZxqtdFocjRUmXuqbXADCMFY=; b=dzAcD7JlDaL2TETrRZHh04w/i3YrroaETxWYTuEemh0L/1ZehhKCUb9Den0Mo877UMBzOEbQks/BvCAv0SHpE8FQkl6liZjIuLlDYgWIZ5ISkq91rKGj6roaPlIYMUE2IzbzPS61mm+Hbb1NrEMUhBsycAqPsoRo5T639OW98G0= Received: from DM5PR12MB1243.namprd12.prod.outlook.com (10.168.237.22) by BLUPR12MB0660.namprd12.prod.outlook.com (10.163.217.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10; Thu, 5 Jan 2017 21:34:57 +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.0817.009; Thu, 5 Jan 2017 21:34:55 +0000 From: "Duran, Leo" To: "edk2-devel@lists.01.org" CC: "Singh, Brijesh" , "lersek@redhat.com" , "jordan.l.justen@intel.com" , "jeff.fan@intel.com" , "michael.d.kinney@intel.com" , "liming.gao@intel.com" , "maurice.ma@intel.com" , "prince.agyeman@intel.com" , "ruiyu.ni@intel.com" , "kelly.steele@intel.com" , "david.wei@intel.com" , "mang.guo@intel.com" Thread-Topic: [PATCH v2 0/4] BaseIoFifoLib Thread-Index: AQHSZ5TKVwkKrR3QQ0Gn8xw2kKcBFqEqZ56A Date: Thu, 5 Jan 2017 21:34:55 +0000 Message-ID: References: <1483649174-14011-1-git-send-email-leo.duran@amd.com> In-Reply-To: <1483649174-14011-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; BLUPR12MB0660; 7:KHiCkXZGlgJ0DDrytrBuiPVIT0hUBtrUSkKtWqpKSnzE6ViHUr9qVhDKBMxSdQa2M6sFqYZUlQEBheTFaY+qCIILdpJu54GweNFkNI2+VGwNpjqfk0KV1x3l1oBTqmvu2yolZxVjCyhrllElL7it06FQvrji0huOIo42FdA1Qrdj80ySDCVnl/V/8cIbeKWFgQD745hbaovrZon3a6CxS8wEOZMcyOEZQ/enkoQxZXVAJz6wb2l9UXfFra3e2NOt2Ah3wQ+067vgiy7LGpZs9Y78YsN069saXt4hqZ1vDcqEFel9h8j1k89Bz2HmgCKkILcscL0NwdM1NiIe0vqUxeFCqZ6WfDh+fgZDVO2lPpdK0Y0ESWPx90RwIyKuyRQBIxU4W3r8EwVsarFmjLJY5P8Id4SEEk7omPpRmAyS41qBDX4ZvcdzGe/Tm3E9fEiikhpw1W3EfHJcyjv0cq6jOw==; 20:fiw6LaCbKRTip4+GVzyAPEGu54BSoYzyaafPEyM4KI5sJllRGF6m5kjJwmxsfcbnE99dLSyIF6pkKlDnW7oQYXUj2LpWLdW3B3P1/Mw0oDJZB97JPPXQMxPc0mkEtzQdDr6wvWFDfAYfSh4YV1L0w+IX0Iw/8a/PutzMPMEAg5N4XIubgRsPSpRNQRWTV3pAk+Cm0dJsZAwY7hp14lgiGRJkWQrJCEGG/auSpqnIydpI0UKmu/VKYT9aaQqPJNGt x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10009020)(6029001)(6009001)(7916002)(39840400002)(39860400002)(39410400002)(39850400002)(39450400003)(13464003)(189002)(377454003)(199003)(3846002)(122556002)(102836003)(6506006)(3280700002)(2900100001)(92566002)(68736007)(3900700001)(3660700001)(54356999)(50986999)(6916009)(97736004)(54906002)(189998001)(8676002)(86362001)(99286003)(2501003)(305945005)(110136003)(55016002)(2351001)(101416001)(76176999)(74316002)(106116001)(7416002)(5660300001)(106356001)(105586002)(2950100002)(7696004)(81156014)(7736002)(81166006)(8936002)(33656002)(9686002)(6436002)(5640700003)(77096006)(38730400001)(229853002)(4326007)(2906002)(25786008)(66066001)(6116002)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR12MB0660; H:DM5PR12MB1243.namprd12.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; x-ms-office365-filtering-correlation-id: aa164025-e37a-4396-844a-08d435b2b117 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BLUPR12MB0660; 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)(20161123564025)(20161123555025)(20161123558021)(20161123562025)(20161123560025)(6072148); SRVR:BLUPR12MB0660; BCL:0; PCL:0; RULEID:; SRVR:BLUPR12MB0660; x-forefront-prvs: 0178184651 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: 05 Jan 2017 21:34:55.5990 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR12MB0660 Subject: Re: [PATCH v2 0/4] BaseIoFifoLib 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, 05 Jan 2017 21:34:59 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Oops... I left out a "Signed-off-by" on each the 4 patches, so I'll send ou= t a v3. Leo. > -----Original Message----- > From: Duran, Leo > Sent: Thursday, January 05, 2017 2:46 PM > To: edk2-devel@lists.01.org > Cc: Singh, Brijesh ; lersek@redhat.com; > jordan.l.justen@intel.com; jeff.fan@intel.com; michael.d.kinney@intel.com= ; > liming.gao@intel.com; maurice.ma@intel.com; prince.agyeman@intel.com; > ruiyu.ni@intel.com; kelly.steele@intel.com; david.wei@intel.com; > mang.guo@intel.com; Duran, Leo > Subject: [PATCH v2 0/4] BaseIoFifoLib >=20 > The UefiCpuPkg/CpuIo2Dxe driver and the QemuCfgLib library have > duplicate implementations of I/O Fifo routines. The patch series moves th= e > I/O Fifo routines into a common BaseIofifoLib library supporting IA32 and= X64 > architectures under MdePkg. >=20 > The intent of this patch series is twofold: > 1) Consolidate I/O Fifo routines into a common BaseIofifoLib library. > 2) Allow override of BaseIofifoLib for specific platform implementations. > For example, the OVMF package can provide its own version of BaseIoFifoLi= b > to support Secure Encrypted Virtualization (SEV) guests, since SEV does n= ot > support string I/O instructions (rep ins/outs), and requires unrolled loo= ps of > single in/out instructions. >=20 > Brijesh Singh (4): > MdePkg: Add BaseIoFifoLib library > Modify .DSC files that include UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf > Modify UefiCpuPkg/CpuIo2Dxe to use new BaseIoFifoLib library. > Modify QemuFwCfgLib to use new BaseIoFifoLib library. >=20 > CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc | 3 + > CorebootPayloadPkg/CorebootPayloadPkgIa32X64.dsc | 3 + > DuetPkg/DuetPkgIa32.dsc | 2 + > DuetPkg/DuetPkgX64.dsc | 2 + > MdePkg/Include/Library/IoFifoLib.h | 176 +++++++++++++ > MdePkg/Library/BaseIoFifoLib/BaseIoFifoLib.inf | 44 ++++ > .../Library/BaseIoFifoLib}/Ia32/IoFifo.asm | 280 ++++++++++-----= ------ > .../Library/BaseIoFifoLib}/Ia32/IoFifo.nasm | 272 ++++++++++-----= ----- > .../Library/BaseIoFifoLib}/X64/IoFifo.asm | 252 +++++++++------= ---- > .../Library/BaseIoFifoLib}/X64/IoFifo.nasm | 250 +++++++++------= --- > MdePkg/MdePkg.dec | 4 + > MdePkg/MdePkg.dsc | 2 + > OvmfPkg/Library/QemuFwCfgLib/Ia32/IoLibExAsm.nasm | 55 ---- > OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c | 54 +--- > OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf | 8 +- > OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf | 8 +- > OvmfPkg/Library/QemuFwCfgLib/X64/IoLibExAsm.nasm | 52 ---- > OvmfPkg/OvmfPkgIa32.dsc | 2 + > OvmfPkg/OvmfPkgIa32X64.dsc | 2 + > OvmfPkg/OvmfPkgX64.dsc | 2 + > QuarkPlatformPkg/Quark.dsc | 2 + > QuarkPlatformPkg/QuarkMin.dsc | 2 + > UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.c | 3 +- > UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.h | 3 + > UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf | 12 +- > UefiCpuPkg/UefiCpuPkg.dsc | 2 + > Vlv2TbltDevicePkg/PlatformPkgGccX64.dsc | 2 + > Vlv2TbltDevicePkg/PlatformPkgIA32.dsc | 2 + > Vlv2TbltDevicePkg/PlatformPkgX64.dsc | 2 + > 29 files changed, 794 insertions(+), 709 deletions(-) create mode 10064= 4 > MdePkg/Include/Library/IoFifoLib.h > create mode 100644 MdePkg/Library/BaseIoFifoLib/BaseIoFifoLib.inf > rename {UefiCpuPkg/CpuIo2Dxe =3D> > MdePkg/Library/BaseIoFifoLib}/Ia32/IoFifo.asm (96%) rename > {UefiCpuPkg/CpuIo2Dxe =3D> > MdePkg/Library/BaseIoFifoLib}/Ia32/IoFifo.nasm (96%) rename > {UefiCpuPkg/CpuIo2Dxe =3D> MdePkg/Library/BaseIoFifoLib}/X64/IoFifo.asm > (97%) rename {UefiCpuPkg/CpuIo2Dxe =3D> > MdePkg/Library/BaseIoFifoLib}/X64/IoFifo.nasm (97%) delete mode 100644 > OvmfPkg/Library/QemuFwCfgLib/Ia32/IoLibExAsm.nasm > delete mode 100644 > OvmfPkg/Library/QemuFwCfgLib/X64/IoLibExAsm.nasm >=20 > -- > 1.9.1