Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
AGPgart, is it a problem ? (apple pismo ati r128, here)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Thu Mar 06, 2008 11:19 am    Post subject: AGPgart, is it a problem ? (apple pismo ati r128, here) Reply with quote

hello,
the powerbook pismo has an ATI R128 connected to an AGP bus, so I'd like to add the AGP support to the kernel (2.6.23)

dmesg

Quote:

Linux agpgart interface v0.102
agpgart: Detected Apple UniNorth chipset
agpgart: configuring for size idx: 8
PM: Adding info for No Bus:agpgart
agpgart: AGP aperture is 32M @ 0x0



lsmod
Quote:

Module Size Used by
r128 45252 0
drm 98424 1 r128
pcmcia 51344 0
yenta_socket 29868 1
rsrc_nonstatic 12768 1 yenta_socket
pcmcia_core 50300 3 pcmcia,yenta_socket,rsrc_nonstatic
bridge 65864 0
llc 8700 1 bridge
tun 13152 0
uninorth_agp 11852 1
agpgart 40252 2 drm,uninorth_agp
pmac_zilog 21604 0
serial_core 25664 1 pmac_zilog



at this point i need to make the devnode, as i don't want to use udev
Reading from the linux devices documentation, i found

Quote:

To have a major number allocated, or a minor number in situations
where that applies (e.g. busmice), please contact me with the
appropriate device information. Also, if you have additional
information regarding any of the devices listed below, or if I have
made a mistake, I would greatly appreciate a note.

10 char Non-serial mice, misc features
175 = /dev/agpgart AGP Graphics Address Remapping Table


so i this this

Quote:

echo "Creating Device for AGPpart"
echo "AGP Graphics Address Remapping Table"
mknod -m 600 /dev/agpgart c 10 175



cat /dev/agppart doesn't seem to show thing are working good, how to understand if the agppart capability has been added to the system ?


Last edited by ddc on Thu Mar 06, 2008 8:14 pm; edited 2 times in total
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Thu Mar 06, 2008 11:42 am    Post subject: Reply with quote

googling i found this
Quote:

agpgart module description

This is a basic Linux kernel module and test program for supporting the
(extra) data transfer features of agp cards. It was originally written
as part of the utah-glx accelerated MesaGL driver project, but now is
used for agp access in general under linux. Jeff Hartmann
<jhartmann@valinux.com> is the primary maintainer.

An agp device looks just like a normal pci device to the driver software,
and can be used as such. However, there are additional features we can
take advantage of with our driver. One gain is primarily in speed: many
agp interfaces are capable of higher memory bandwidth for transferring
scene data to the card. The other is a device called the 'gart' (*mumble*
address resolution table) which is part of your motherboard's
chipset and handles gathering data from memory and passing it to the card
as a continuous stream. This last part is very convenient since linux
provides no clean method of allocating large (multi-megabyte) buffers that
are contiguous in physical memory as is required in tradional pci
bus-master transfers.

This module takes care of programming the gart and enabling the faster agp
transfers if requested. It is provided in terms of a patch against the 2.2
kernel series. The source files are provided for reference only; you must
patch and recompile your kernel. This module is already included in Linux
2.3 and later, so if you have one of those, you only need to enable it.

Also note that the version in the 2.4 kernel is the primary focus of
development and in general to be preferred. This collection of patches
is supplied for the convenience of those who must use a 2.2 kernel.


Build instructions

To patch the kernel, you must have a recent copy of the 2.2 kernel source.
The patches should work with a kernels of 'nearby' version numbers, though
unfortunately I don't have testing data on which patch works with which
kernel. certainly the 2.2.10 patch applies cleaning as far back as 2.2.7,
and the 2.2.13 patch works fine with 2.2.14 and 2.2.15.

The patch against 2.2.16 contains a number of improvements over the
earlier patches. Use it if you can.

Now, assuming you've unpacked the kernel into /usr/src/linux:

cd /usr/src
cat /path/to/newagp/agpgart-<kernel-version> | patch -p1
cd linux
make config/menuconfig

enable development code/drivers under "code maturity"
enable /dev/agpgart support under "character devices"
you must also include support for your particular motherboard chipset.
If unsure of the exact model of your chipset a quick look at the output
from lspci or a look at the file /proc/pci should be enough to identify it.

rebuild your kernel, install and reboot. More information on this process
in general can be found in the Linux Kernel-HOWTO, available for example
at http://www.linuxdoc.org/HOWTO/Kernel-HOWTO.html

Do note that you really need to reboot with the new kernel. The patch
contains patches to the memory subsystem which the agpgart module won't work
without.

There should now be a /dev/agpgart device, major 10, minor 175.
If you don't have /dev/agpgart you can create it with the following command:
mknod /dev/agpgart c 10 175

Enter the newagp source directory and type "make". This should build
the testgart program.

as root:
modprobe agpgart (load the driver)
./testgart (it should successfully allocate some memory and test it)

If all goes well, you're ready to use the gart device with the utah-glx
drivers. Congratulations.


Please see utah-glx.sourceforge.net for more information on the utah-glx
project. This is the "new" agpgart module, matching the one that was
added to the mainline kernel at v2.3.31. There was an older "gart"
module used early in development, now obsolete. It can be identified as
using a /dev/gart interface at node 174, 0. Note that some drivers,
particularly the one for the Intel i810 chipset may require the older
module.

--
Ralph_Giles@sfu.ca
$Date: 2000/06/08 21:41:56 $



but agptest.c has been written for ia32 architecture ... it has ia32 opcode in the source code ... http://www.koders.com/c/fid90DF0D492B499E179E4D024BC48CCCF0F0B29492.aspx


also this http://bugs.t2-project.org/wiki/FAQ/agpgart
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Wed Mar 12, 2008 12:33 pm    Post subject: Reply with quote

any idea, report ? has somebody agpgart working with ati-r128 ? (it should work with modern things, here it doesn't as it should)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum