WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] Enable K8 GART as an IOMMU

To: Uli Meis <um@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Enable K8 GART as an IOMMU
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Wed, 14 Feb 2007 14:51:32 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, "Langsdorf, Mark" <mark.langsdorf@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxxxx>
Delivery-date: Wed, 14 Feb 2007 06:51:23 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070214143305.GB6490@xxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcdQR52U3CSCnrw6EduYZgAX8io7RQ==
Thread-topic: [Xen-devel] [PATCH] Enable K8 GART as an IOMMU
User-agent: Microsoft-Entourage/11.2.5.060620
On 14/2/07 14:33, "Uli Meis" <um@xxxxxxxxx> wrote:

> Usually, yes, the BIOS should allocate the aperture. However, on all
> systems I've tested on the BIOS allocated only 32MB (probably because
> they had no AGP). Sometimes it would even keep the memory location that
> was set on the last boot---potentially pointing to usable RAM.
> 
> The patch will only allocate the aperture from RAM if the BIOS reserved
> less than 64MB. In that case, it will also make the call to
> xen_create_contiguous_region. The memory is lost. There's also a boot
> mesage telling people that.

Might it typically be possible to find some free space in the hole just
below 4GB? I don't believe most BIOSes make effort to keep the RAM hole
small.

Looking back to the particular approach you have taken, expanding the static
argument arrays for this one particular user is not really desirable. It
would be better to do a dynamic GFP_ATOMIC allocation in the case that order
> MAX_CONTIG_ORDER. We want to avoid that in the general case because
GFP_ATOMIC allocations can fail, but this will be happening at start of day
when there should be no memory pressure.

 -- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel