|
|
|
|
|
|
|
|
|
|
xen-devel
RE: [Xen-devel] allocating AGP aperture memory
> You're right, I don't really want to do that, but I got
> inadvertantly sidetracked into thinking I needed AGP support
> working. Fortunately, I don't.
>
> 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.
Ian
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] allocating AGP aperture memory, Langsdorf, Mark
- RE: [Xen-devel] allocating AGP aperture memory, Ian Pratt
- RE: [Xen-devel] allocating AGP aperture memory, Langsdorf, Mark
- RE: [Xen-devel] allocating AGP aperture memory, Ian Pratt
- RE: [Xen-devel] allocating AGP aperture memory, Langsdorf, Mark
- RE: [Xen-devel] allocating AGP aperture memory, Ian Pratt
- RE: [Xen-devel] allocating AGP aperture memory, Langsdorf, Mark
- RE: [Xen-devel] allocating AGP aperture memory,
Ian Pratt <=
|
|
|
|
|