[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] allocating AGP aperture memory


  • To: "Langsdorf, Mark" <mark.langsdorf@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: "Langsdorf, Mark" <mark.langsdorf@xxxxxxx>
  • Date: Mon, 7 Nov 2005 14:50:49 -0600
  • Delivery-date: Mon, 07 Nov 2005 20:51:11 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcXUItEVdqWcbj10TmOmktd1+s3AmQADf3OQAAEy7AAAEAj1QABLsk9wABx3AcAADkYakACQuQIAAamiM2ABKPMTQA==
  • Thread-topic: [Xen-devel] allocating AGP aperture memory

> > > However, if I don't have AGP support working, I need to 
> program the 
> > > Northbridge registers with the physical address of the GATT (see 
> > > init_k8_gatt() in
> > arch/xen/x86_64/kernel/pci-gart.c).
> > > Just doing a __pa() obviously doesn't return meaningful data,
> > > which is to be expected.  How should dom0 go about getting it?
> > 
> > You need to allocate the gatt mapping table using alloc_gatt_pages
> > (dma_alloc_coherent) rather than get_free_pages.
> > 
> > You then want to use virt_to_gart on the address returned.
> 
> Are you sure?  I've been trying this for days, and it
> isn't working.

Never mind.

There were a bunch of references to virt_to_phys() that
should have been virt_to_bus().

Moving on to the next problem...

-Mark Langsdorf
AMD, Inc.


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.