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] early_cpu_init() and identify_cpu()

To: Jan Beulich <jbeulich@xxxxxxxxxx>, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] early_cpu_init() and identify_cpu()
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Tue, 17 Jul 2007 11:15:32 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 17 Jul 2007 03:13:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <469CAF43.76E4.0078.0@xxxxxxxxxx>
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: AcfIW2hAppVaXzROEdy/GAAX8io7RQ==
Thread-topic: [Xen-devel] early_cpu_init() and identify_cpu()
User-agent: Microsoft-Entourage/11.3.3.061214
On 17/7/07 11:00, "Jan Beulich" <jbeulich@xxxxxxxxxx> wrote:

>> Does this mean that defaulting to setting up WC on a power-of-two-sized
>> region starting at the framebuffer address is not really safe on a fair
>> number of systems?
> 
> So I suppose, also based on the fact that Linux is defensive here too in
> defaulting to not touching the MTRRs at all. I implemented this in a similar
> fashion for Xen now.

How about remapping the framebuffer specifying WC in the PAT bits, if the
CPU is detected to support PAT? This might work more safely because we can
map at 4kB granularity rather than merely power-of-two. It depends on how
close the command queues actually are to the lfb in the VRAM map.

If we just mapped the 4kB-rounded region specified by lfb_base to
lfb_base+lfb_size (as determined via the VBE Get Mode Info call) as WC,
would that be safe?

If so we could use that unconditionally and avoid any MTRR-poking code. PAT
has been around for ages now.

 -- Keir


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