From: Keir Fraser Subject: Re: [Patch] Make memory hole for PCI Express bigger and prevent roll-over Date: Sat, 01 Mar 2008 08:50:28 +0000 Message-ID: References: <9dd432e50802291255i1b195047jbbab266d5ea7bd5d@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1720464885==" Return-path: In-Reply-To: <9dd432e50802291255i1b195047jbbab266d5ea7bd5d@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Doucette , David Stone Cc: Xen Developers List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============1720464885== Content-type: multipart/alternative; boundary="B_3287206233_31892826" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3287206233_31892826 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit You missed hvmloader/acpi/build.c:construct_bios_info_table(). Apologies for the lack of referential integrity. -- Keir On 29/2/08 20:55, "Dan Doucette" wrote: > Hello David,Keir, > > I am trying to increase the PCI aperture in my vista guest using the direct > approach outlined by David above, i.e. modifying dsdt.asl and recompiling. > > This does not work, and I am wondering about the statement made above by Keir, > > " Actually that's a bad way to do it. I've just checked in a patch which > modifies the DSDT to fetch the PCI hole parameters from a memory location > which is initialised by hvmloader. " > > Is this update the code in hvmloader.c:pci_setup.c > > struct resource mem_resource = { 0xf0000000, 0xfc000000 }; > ... > > By modifying that constant to 0xc0000000, I do see devices enumerated in vista > starting at 0xc0000000, but the acpi pci bus device in vista still reports an > aperture starting at 0xf0000000, which I believe is fetched from dsdt tables.? > > Thanks, > > Dan. > > > > On Mon, Jan 21, 2008 at 11:28 AM, David Stone wrote: >>>> > > My only hesitation is that 0xF0000000-0xF4FFFFFF = 80Mb is smallish, >>>> > > especially considering the wasteful algorithm the Xen HVM BIOS >>>> > > currently uses to assign addresses (it can waste a lot of space). >>> > >>> > How is it wasteful? We could only do better if we assigned PCI resources >>> in >>> > descending order of size (and hence alignment requirement). Which we >>> *could* >>> > do, I suppose. Certainly the resource assignment code is going to get >>> rather >>> > more exciting anyway, to fully support the dynamic PCI hole. >> >> Pretty much that...the way it is now if the order in which BARs are >> enumerated is such that the first BAR wants a small amount (say 1KB >> and gets 0xF0000000-0xF00003FF) and then the second BAR wants a large >> amout (say 64 MB and gets 0xF4000000-0xF7FFFFFF) then a there is a big >> waste (0xF0000400-0xF3FFFFFF == ~64 MB). In the various >> configurations I was running almost as much PCI device address space >> got wasted as assigned. >> >> Thanks, >> Dave >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >> > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel --B_3287206233_31892826 Content-type: text/html; charset="US-ASCII" Content-transfer-encoding: quoted-printable Re: [Xen-devel] [Patch] Make memory hole for PCI Express bigger and = prevent roll-over You m= issed hvmloader/acpi/build.c:construct_bios_info_table(). Apologies for the = lack of referential integrity.

 -- Keir

On 29/2/08 20:55, "Dan Doucette" <doucette.daniel@gmail.com>= ; wrote:

Hello David,Keir,
 
I am trying to increase the PCI aperture in my vista guest using the direct= approach outlined by David above, i.e.  modifying dsdt.asl and recompi= ling.
 
This does not work, and I am wondering about the statement made above by Ke= ir,
 
" Actually that's a bad way to do it. I've just checked in a patch whi= ch
modifies the DSDT to fetch the PCI hole parameters from a memory location which is initialised by hvmloader. "
 
Is this update the code in hvmloader.c:pci_setup.c
 
    struct resource mem_resource =3D { 0xf0000000, 0xfc00= 0000 };
 ...
 
By modifying that constant to 0xc0000000, I do see devices enumerated in vi= sta starting at 0xc0000000, but the acpi pci bus device in vista still repor= ts an aperture starting at 0xf0000000, which I believe is fetched from dsdt = tables.?
 
Thanks,
 
Dan.


 
On Mon, Jan 21, 2008 at 11:28 AM, David Stone <unclestoner@gmail.com>= wrote:
> > My only hesitation is that 0xF0000000-0xF4FFF= FFF =3D 80Mb is smallish,
> > especially considering the wasteful algorithm the Xen HVM BIOS > > currently uses to assign addresses (it can waste a lot of space).=
>
> How is it wasteful? We could only do better if we assigned PCI resourc= es in
> descending order of size (and hence alignment requirement). Which we *= could*
> do, I suppose. Certainly the resource assignment code is going to get = rather
> more exciting anyway, to fully support the dynamic PCI hole.

Pretty much that...the way it is now if the order in which BARs are
enumerated is such that the first BAR wants a small amount (say 1KB
and gets 0xF0000000-0xF00003FF) and then the second BAR wants a large
amout (say 64 MB and gets 0xF4000000-0xF7FFFFFF) then a there is a big
waste (0xF0000400-0xF3FFFFFF =3D=3D ~64 MB).  In the various
configurations I was running almost as much PCI device address space
got wasted as assigned.

Thanks,
Dave

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/x= en-devel



____________________= ___________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/x= en-devel

--B_3287206233_31892826-- --===============1720464885== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1720464885==--