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] xen and agpgart

To: Gerald Britton <gbritton@xxxxxxxxxxx>
Subject: Re: [Xen-devel] xen and agpgart
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Sat, 04 Sep 2004 02:50:29 +0100
Cc: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 04 Sep 2004 02:52:21 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Fri, 03 Sep 2004 21:19:22 EDT." <20040904011922.GA6505@xxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> That was actually my initial attempt.  The first problem I ran into was it
> attempting to do a cache flush:
> 
> #define flush_agp_cache() asm volatile("wbinvd":::"memory")

We can fix this by virtualising the instruction. But we can ignore it
for now.

> Which causes a general protection fault.  Ignoring that for the moment and
> then working forward, it allocates a page of memory with __get_free_page()
> and attempts to ioremap_nocache() it to presumably generate a completely
> uncached page in memory.  This results in a strange oops attempting to
> fiddle with the page tables changing the page attributes on that piece
> of memory.

Hmmmm.... I think the problem is people using virt_to_phys() instead
of virt_to_bus(). I would have expected the latter to be correct
really. I'll take a look at uses of ioremap() and ioremap_nocache()
throughout Linux. It may be there's a simple fix that will work for all
uses... You could try manually changing the address passed in to
virt_to_bus() and see if you get fiurther.

 -- Keir

> My goal at the moment is to have the machine's head running in dom0 (and
> on the i830-ish machine I have as a target, this is going to require the
> agpgart working to have any reasonable X on it).
> 
>                               -- Gerald
> 
> On Sat, Sep 04, 2004 at 02:11:20AM +0100, Keir Fraser wrote:
> > The answer may well be "nothing" if you just want GART/DRI in
> > DOM0. Probably those source driectories haven't been enabled in the
> > Xen arachitecture for 2.6 - if you can do that then try compiling teh
> > drivers and see what happens!
> > 
> >  -- Keir
> > 
> > > I've just started toying with xen and noticed the lack of support for
> > > agpgart.  It looks like the reasons for this lack have changed between 1.2
> > > and 2.0 and It looks like it's a lot closer to working now.  I 
> > > unfortunately
> > > do not have much experience doing VM programming, so my understanding of
> > > what's needed may be a little lacking.  I was wondering if someone with a
> > > little more knowledge of VM's and Xen than I could comment before I start
> > > digging further into it on what work needs to be done in Xen to make
> > > agpgart/drm/etc. work in Xen.  Thanks in advance.
> > > 
> > >                           -- Gerald
> > > 
> > > 
> > > 
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by BEA Weblogic Workshop
> > > FREE Java Enterprise J2EE developer tools!
> > > Get your free copy of BEA WebLogic Workshop 8.1 today.
> > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> > > https://lists.sourceforge.net/lists/listinfo/xen-devel
> > 



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel