Received: from eggs.gnu.org ([2001:4830:134:3::10]:48599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z22QL-0008Pn-5C for qemu-devel@nongnu.org; Mon, 08 Jun 2015 15:09:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z22QG-0008MS-5W for qemu-devel@nongnu.org; Mon, 08 Jun 2015 15:09:29 -0400 Received: from mga14.intel.com ([192.55.52.115]:51000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z22QG-0008E9-0o for qemu-devel@nongnu.org; Mon, 08 Jun 2015 15:09:24 -0400 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID: <20150608190725.22098.98294@jljusten-ivb> From: Jordan Justen In-Reply-To: <55755B20.9090104@redhat.com> References: <1433617803-18892-1-git-send-email-pcacjr@zytor.com> <55755B20.9090104@redhat.com> Date: Mon, 08 Jun 2015 12:07:25 -0700 Subject: Re: [Qemu-devel] [edk2] [PATCH] OvmfPkg/PlatformPei: Initialise RCBA (B0:D31:F0 0xf0) register List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: edk2-devel@lists.sourceforge.net, Laszlo Ersek , Paulo Alcantara Cc: pbonzini@redhat.com, qemu-devel@nongnu.org, mst@redhat.com On 2015-06-08 02:06:40, Laszlo Ersek wrote: > On 06/06/15 21:10, Paulo Alcantara wrote: > > diff --git a/OvmfPkg/OvmfPkg.dec b/OvmfPkg/OvmfPkg.dec > > index 4cb70dc..a6586f3 100644 > > --- a/OvmfPkg/OvmfPkg.dec > > +++ b/OvmfPkg/OvmfPkg.dec > > @@ -78,6 +78,10 @@ > > # to PIIX4 function 3 offset 0x40-0x43 bits [15:6]. > > gUefiOvmfPkgTokenSpaceGuid.PcdAcpiPmBaseAddress|0xB000|UINT16|5 > > = > > + ## This flag determines the Root Complex Register Block BAR, written= to Q35 > > + # function 31 offset 0xf0-0xf3 bits [31:14] > > + gUefiOvmfPkgTokenSpaceGuid.PcdRootComplexBaseAddress|0xfed1c000|UINT= 32|0x1e > > + > = > I understand Jordan doesn't like the new PCD here, and proposes a > fixed macro for the same purpose, but I don't understand why we > should follow a different avenue for this base address when we opted > for a PCD with the PMBA. I'm not sure there is a good reason for the PMBA PCD at this point. Do you remember why we decided to add a PCD? It doesn't actually change values. I wonder if we were only half committed to the 0x400 =3D> 0xb000 value change at that point? :) I could also see adding a PCD if it looks better for some 'common' code to key off of the PCD, rather than including a chipset specific include file. -Jordan