Re: New ATI fglrx drivers work with AMD64

2005-03-13 Thread Max
Manuel,
These MTRR errors are the reason why direct rendering does not work.
I've just faced a similar problem. Hopefully, in my Tyan Tiger K8W S2875 BIOS setup there is an 
option MTRR Mapping which can be either Continuous or Discrete. The former explicitly 
describes the PCI hole as non-cacheable while the latter leaves the PCI hole below the 
4G boundary undescribed. Continuous is default. All MTRR errors and fglrx direct rendering 
ability had been fixed when I switched MTRR Mapping to Discrete.
You can see the current MTRR state with 'cat /proc/mtrr'.
This is how my MTRR looked with Continuous mapping:
reg00: base=0x (   0MB), size=4096MB: write-back, count=1
reg01: base=0x1 (4096MB), size=1024MB: write-back, count=1
reg02: base=0xc000 (3072MB), size=1024MB: uncachable, count=1    this 
was problematic
And how they look now:
reg00: base=0x1 (4096MB), size=1024MB: write-back, count=1
reg01: base=0x (   0MB), size=2048MB: write-back, count=1
reg02: base=0x8000 (2048MB), size=1024MB: write-back, count=1
reg03: base=0xe000 (3584MB), size= 128MB: write-combining, count=1
reg04: base=0xf000 (3840MB), size= 128MB: write-combining, count=1
I guess that two 128Mb regions are video card memory and AGP aperture.
Max
Manuel Capinha wrote:
Small add-on:
My problem is somewhere in the kernel module, it seems:
(from dmesg)
[fglrx] module loaded - fglrx 8.8.25 [Jan 14 2005] on minor 0
Fire GL built-in AGP-support
Based on agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 941M
agpgart: Detected AMD 8151 chipset
agpgart: AGP aperture is 32M @ 0x400
Power management callback for AGP chipset installed
[fglrx] AGP detected, AgpState   = 0x1f000b7b (hardware caps of chipset)
mtrr: type mismatch for 400,200 old: write-back new: write-combining
[fglrx:firegl_unlock] *ERROR* Process 25297 using kernel context 0
PID 25297 is my X server.
So, is anyone else seeing this ? I've got no clue about that error message :/
Thanks once again,
Manuel
On Tue, 18 Jan 2005 15:11:32 +, Manuel Capinha [EMAIL PROTECTED] wrote:
I got it to install and I can now boot X using ATI's proprietary
drivers, but I got no OpenGL support. Running glxgears gives me around
60 fps, so I know that's being done in software!
Looking in /var/log/XFree86.0.log I found this:
(II) fglrx(0): Kernel Module Version Information:
(II) fglrx(0): Name: fglrx
(II) fglrx(0): Version: 8.8.25
(II) fglrx(0): Date: Jan 14 2005
(II) fglrx(0): Desc: ATI FireGL DRM kernel module
(II) fglrx(0): Kernel Module version matches driver.
(II) fglrx(0): Kernel Module Build Time Information:
(II) fglrx(0): Build-Kernel UTS_RELEASE:2.6.9-9-amd64-k8-smp
(II) fglrx(0): Build-Kernel MODVERSIONS:no
(II) fglrx(0): Build-Kernel __SMP__:no
(II) fglrx(0): Build-Kernel PAGE_SIZE:  0x1000
(II) fglrx(0): [drm] register handle = 0xff5f
(EE) fglrx(0): [agp] unable to acquire AGP, error xf86_EINVAL
(EE) fglrx(0): cannot init AGP
(II) fglrx(0): [drm] removed 1 reserved context for kernel
(II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0xff41d000
at 0x2a955da000
(WW) fglrx(0): ***
(WW) fglrx(0): * DRI initialization failed!  *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO) *
(WW) fglrx(0): * no 3D acceleration available*
(WW) fglrx(0): * *
Is anyone else seeing this or does everyone else but my have OpenGL by
hardware ?
TIA,
Manuel
On Tue, 18 Jan 2005 15:10:46 +0100, Filippo Carone
[EMAIL PROTECTED] wrote:
* Lorenzo Milesi ([EMAIL PROTECTED]) ha scritto:
Hi, I'd just like to give the list a heads up that the new ATI fglrx
drivers actually work with amd64.  They're only available (as usual) in
rpm's but I hacked together Flavio's debian packages and with a bit of
manual copying around it works.
Can you tell me how did you do it?
I tried just alien-ing the rpm but fails because it tries to overwrite
`/usr/X11R6/lib/libGL.so.1.2', owned by xlibmesa-gl package.
use the --force-overwrite switch of dpkg.
cheers,
fc
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: New ATI fglrx drivers work with AMD64

2005-03-13 Thread Max
Jan,
I did the same things except that I copied fglrx32 libraries from the actual 
debian-i386 installation and used 'apt-get install' within chroot for the rest 
required packages (e.g., xlibs etc.). I also mounted tmpfs from within chroot 
(not from outside like you did) with the command 'mount -t tmpfs tmpfs 
/dev/shm'.
And now DOOM 3 runs under my debian-amd64!!! Speed is not worse than under 
debian-i386.
There are still some problems though that require further investigation. In 
particular, it hang up when I tried to load a saved game. Anyway it's a good 
start ;)
Regards,
Max
Jan Kreuzer wrote:
Hi
here is a qucik description how i got the new fglrx working in 64-bit
and 32-bit chroot:
1)Installed a chroot as stated in
https://alioth.debian.org/docman/vi...o.html#id274243
 2) used alien to convert the driver to a tgz and upacked them to a temp
directory
 3) copied the contents of (driverdir)/usr/X11R6/lib64
to /usr/X11R6/lib64
 4) copied the contents of (driverdir)/usr/X11R6/lib into my chroot
(/var/chroot/sid-ia32/usr/X11R6)
 5) build the kernel module
 6) did a mount -o bind /dev /var/chroot/sid-ia32/dev and a
mount -t tmpfs tmpfs /var/chroot/sid-ia32/dev/shm
to make the 32-bit component of the driver happy
 7) fired up X, tested glxinfo = ok, tested glxinfo32 (fromchroot) = ok
 8) fired up nwn = ok
 9) fired up doom3 = crash :(
Maybe this helps 

P.S.: Please CC me, as i am not on the list (only reading through
archives)
Cheers Jan


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: New ATI fglrx drivers work with AMD64

2005-01-19 Thread Lorenzo Milesi
 (WW) fglrx(0): ***
 (WW) fglrx(0): * DRI initialization failed!  *
 (WW) fglrx(0): * (maybe driver kernel module missing or bad) *
 (WW) fglrx(0): * 2D acceleraton available (MMIO) *
 (WW) fglrx(0): * no 3D acceleration available*
 (WW) fglrx(0): * *

I'm getting this error too.
But I have enabled Radeon DRI in kernel, as well as agp for the nvidia
chip (I have the /dev/agpgart)
any idea?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: New ATI fglrx drivers work with AMD64

2005-01-18 Thread Lorenzo Milesi
 Hi, I'd just like to give the list a heads up that the new ATI fglrx
 drivers actually work with amd64.  They're only available (as usual) in
 rpm's but I hacked together Flavio's debian packages and with a bit of
 manual copying around it works.  

Can you tell me how did you do it?
I tried just alien-ing the rpm but fails because it tries to overwrite 
`/usr/X11R6/lib/libGL.so.1.2', owned by xlibmesa-gl package.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: New ATI fglrx drivers work with AMD64

2005-01-18 Thread Manuel Capinha
I got it to install and I can now boot X using ATI's proprietary
drivers, but I got no OpenGL support. Running glxgears gives me around
60 fps, so I know that's being done in software!

Looking in /var/log/XFree86.0.log I found this:

(II) fglrx(0): Kernel Module Version Information:
(II) fglrx(0): Name: fglrx
(II) fglrx(0): Version: 8.8.25
(II) fglrx(0): Date: Jan 14 2005
(II) fglrx(0): Desc: ATI FireGL DRM kernel module
(II) fglrx(0): Kernel Module version matches driver.
(II) fglrx(0): Kernel Module Build Time Information:
(II) fglrx(0): Build-Kernel UTS_RELEASE:2.6.9-9-amd64-k8-smp
(II) fglrx(0): Build-Kernel MODVERSIONS:no
(II) fglrx(0): Build-Kernel __SMP__:no
(II) fglrx(0): Build-Kernel PAGE_SIZE:  0x1000
(II) fglrx(0): [drm] register handle = 0xff5f
(EE) fglrx(0): [agp] unable to acquire AGP, error xf86_EINVAL
(EE) fglrx(0): cannot init AGP
(II) fglrx(0): [drm] removed 1 reserved context for kernel
(II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0xff41d000
at 0x2a955da000
(WW) fglrx(0): ***
(WW) fglrx(0): * DRI initialization failed!  *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO) *
(WW) fglrx(0): * no 3D acceleration available*
(WW) fglrx(0): * *




Is anyone else seeing this or does everyone else but my have OpenGL by
hardware ?

TIA,
Manuel


On Tue, 18 Jan 2005 15:10:46 +0100, Filippo Carone
[EMAIL PROTECTED] wrote:
 * Lorenzo Milesi ([EMAIL PROTECTED]) ha scritto:
   Hi, I'd just like to give the list a heads up that the new ATI fglrx
   drivers actually work with amd64.  They're only available (as usual) in
   rpm's but I hacked together Flavio's debian packages and with a bit of
   manual copying around it works.
 
  Can you tell me how did you do it?
  I tried just alien-ing the rpm but fails because it tries to overwrite
  `/usr/X11R6/lib/libGL.so.1.2', owned by xlibmesa-gl package.
 
  use the --force-overwrite switch of dpkg.
 
  cheers,
  fc
 
 
 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: New ATI fglrx drivers work with AMD64

2005-01-18 Thread Manuel Capinha
Small add-on:

My problem is somewhere in the kernel module, it seems:
(from dmesg)

[fglrx] module loaded - fglrx 8.8.25 [Jan 14 2005] on minor 0
Fire GL built-in AGP-support
Based on agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 941M
agpgart: Detected AMD 8151 chipset
agpgart: AGP aperture is 32M @ 0x400
Power management callback for AGP chipset installed
[fglrx] AGP detected, AgpState   = 0x1f000b7b (hardware caps of chipset)
mtrr: type mismatch for 400,200 old: write-back new: write-combining
[fglrx:firegl_unlock] *ERROR* Process 25297 using kernel context 0


PID 25297 is my X server.

So, is anyone else seeing this ? I've got no clue about that error message :/

Thanks once again,
Manuel

On Tue, 18 Jan 2005 15:11:32 +, Manuel Capinha [EMAIL PROTECTED] wrote:
 I got it to install and I can now boot X using ATI's proprietary
 drivers, but I got no OpenGL support. Running glxgears gives me around
 60 fps, so I know that's being done in software!
 
 Looking in /var/log/XFree86.0.log I found this:
 
 (II) fglrx(0): Kernel Module Version Information:
 (II) fglrx(0): Name: fglrx
 (II) fglrx(0): Version: 8.8.25
 (II) fglrx(0): Date: Jan 14 2005
 (II) fglrx(0): Desc: ATI FireGL DRM kernel module
 (II) fglrx(0): Kernel Module version matches driver.
 (II) fglrx(0): Kernel Module Build Time Information:
 (II) fglrx(0): Build-Kernel UTS_RELEASE:2.6.9-9-amd64-k8-smp
 (II) fglrx(0): Build-Kernel MODVERSIONS:no
 (II) fglrx(0): Build-Kernel __SMP__:no
 (II) fglrx(0): Build-Kernel PAGE_SIZE:  0x1000
 (II) fglrx(0): [drm] register handle = 0xff5f
 (EE) fglrx(0): [agp] unable to acquire AGP, error xf86_EINVAL
 (EE) fglrx(0): cannot init AGP
 (II) fglrx(0): [drm] removed 1 reserved context for kernel
 (II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0xff41d000
 at 0x2a955da000
 (WW) fglrx(0): ***
 (WW) fglrx(0): * DRI initialization failed!  *
 (WW) fglrx(0): * (maybe driver kernel module missing or bad) *
 (WW) fglrx(0): * 2D acceleraton available (MMIO) *
 (WW) fglrx(0): * no 3D acceleration available*
 (WW) fglrx(0): * *
 
 Is anyone else seeing this or does everyone else but my have OpenGL by
 hardware ?
 
 TIA,
 Manuel
 
 
 On Tue, 18 Jan 2005 15:10:46 +0100, Filippo Carone
 [EMAIL PROTECTED] wrote:
  * Lorenzo Milesi ([EMAIL PROTECTED]) ha scritto:
Hi, I'd just like to give the list a heads up that the new ATI fglrx
drivers actually work with amd64.  They're only available (as usual) in
rpm's but I hacked together Flavio's debian packages and with a bit of
manual copying around it works.
  
   Can you tell me how did you do it?
   I tried just alien-ing the rpm but fails because it tries to overwrite
   `/usr/X11R6/lib/libGL.so.1.2', owned by xlibmesa-gl package.
 
   use the --force-overwrite switch of dpkg.
 
   cheers,
   fc
 
 
  --
  To UNSUBSCRIBE, email to [EMAIL PROTECTED]
  with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 
 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: New ATI fglrx drivers work with AMD64

2005-01-18 Thread Cyril Chaboisseau
 Hi,

I succeded in building all the fglrx packages with
apt-get -b source fglrx-installer and by replacing the original
fglrx-4.3.0-3.14.6.i386.rpm with fglrx_4_3_0-8.8.25-1.i386.rpm + adding
amd64 to the Architecture - debian/rules binary

then I installed fglrx-4.3.0-control-qt3 fglrx-4.3.0-driver
fglrx-4.3.0-kernel-src with dpkg

finally I tried to recompile the kernel + modules (make-kpkg) but failed
towards the end :

[...]
/usr/bin/make -C /usr/src/linux SUBDIRS=/usr/src/modules/fglrx-4.3.0-3.14.6 
modules
make[2]: Entering directory `/usr/src/linux-2.6.10'
  LD [M]  /usr/src/modules/fglrx-4.3.0-3.14.6/fglrx.o
ld: Relocatable linking with relocations from format elf32-i386 
(/usr/src/modules/fglrx-4.3.0-3.14.6/libfglrx_ip.a.GCC3(vm.o)) to format 
elf64-x86-64 (/usr/src/modules/fglrx-4.3.0-3.14.6/fglrx.o) is not supported 


any idea how to correct that ?

I have gcc 3.3 and 3.4 installed and gcc 3.3.5 is used by default

-- 
Cyril Chaboisseau


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: New ATI fglrx drivers work with AMD64

2005-01-18 Thread Lennart Sorensen
On Tue, Jan 18, 2005 at 08:05:47PM +0100, Cyril Chaboisseau wrote:
  Hi,
 
 I succeded in building all the fglrx packages with
 apt-get -b source fglrx-installer and by replacing the original
 fglrx-4.3.0-3.14.6.i386.rpm with fglrx_4_3_0-8.8.25-1.i386.rpm + adding
 amd64 to the Architecture - debian/rules binary
 
 then I installed fglrx-4.3.0-control-qt3 fglrx-4.3.0-driver
 fglrx-4.3.0-kernel-src with dpkg
 
 finally I tried to recompile the kernel + modules (make-kpkg) but failed
 towards the end :
 
 [...]
 /usr/bin/make -C /usr/src/linux SUBDIRS=/usr/src/modules/fglrx-4.3.0-3.14.6 
 modules
 make[2]: Entering directory `/usr/src/linux-2.6.10'
   LD [M]  /usr/src/modules/fglrx-4.3.0-3.14.6/fglrx.o
 ld: Relocatable linking with relocations from format elf32-i386 
 (/usr/src/modules/fglrx-4.3.0-3.14.6/libfglrx_ip.a.GCC3(vm.o)) to format 
 elf64-x86-64 (/usr/src/modules/fglrx-4.3.0-3.14.6/fglrx.o) is not supported 

Looks like your package makes it try and link a 32bit object into the
64bit kernel module, so most likely the driver package includes both and
you got the wrong one.  The wrong file appears to be libfglrx_ip.a.GCC3

Len Sorensen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: New ATI fglrx drivers work with AMD64

2005-01-18 Thread Lorenzo Milesi
  use the --force-overwrite switch of dpkg.

OK it worked.
Now I tried building kernel module. All fine. 
ERROR when insmod: undefined symbol pci_find_class in module

so I edited agpgart_be.c replacing pci_find_class with pci_get_class
(from /usr/src/linux/Documentation/pci.txt) and the module loads fine
into the kernel, and I can see it with lsmod.
But now if I run startx I get an error message saying flgrx module
can't be found! :(

I'm using 2.6.10 custom kernel. I tried 2.6.9 but I get more build
module errors.

Any help?
thanks
maxxer


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: New ATI fglrx drivers work with AMD64

2005-01-18 Thread zeeman
Hi!
use the --force-overwrite switch of dpkg.
OK it worked.
Now I tried building kernel module. All fine. 
ERROR when insmod: undefined symbol pci_find_class in module

so I edited agpgart_be.c replacing pci_find_class with pci_get_class
(from /usr/src/linux/Documentation/pci.txt) and the module loads fine
into the kernel, and I can see it with lsmod.
Same problem and solution here.
But now if I run startx I get an error message saying flgrx module
can't be found! :(
You have to add the following lines in your /etc/X11/XF86Config-4 in 
your Files-Section:

Section Files
[...]
ModulePath  /usr/X11R6/lib64/modules
ModulePath  /usr/X11R6/lib/modules
[...]
EndSection
Greets
Sebastian
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]