XFree 4.2.0 & Matrox G400

XFree 4.2.0 & Matrox G400

Post by DarkSou » Thu, 21 Mar 2002 06:23:38



I got a big problem here... The damn thing has built fine from the ports,
runs fine, but is damn slow...

And when it comes to adding DRI support, I tried to compile the 'drm-kmod'
port (which works fine on 4.1.0, I checked it on several machines)
But when I try launching X with the 'dri' option, the machine simply
reboots... :(

And I noticed it was looking for the "mga_hal" module... Since it's not
here, and understanding the meaning of HAL, I guess its kind of normal
hardware GL doesn't work =)

Any hints here ? How to activate DRI (or hardware GL) on XFree 4.2.0 ?

Machine specs are :
Intel 440BX + Pentium II 350 + Matrox Millenium G400 + 320Mb SDRAM 100
Everything running on FreeBSD 4.5-STABLE

DarkSoul

 
 
 

XFree 4.2.0 & Matrox G400

Post by ta.. » Thu, 21 Mar 2002 18:22:27


: And I noticed it was looking for the "mga_hal" module... Since it's not
: here, and understanding the meaning of HAL, I guess its kind of normal
: hardware GL doesn't work =)

Is it not that proprietary hal library that you have to download from
Matrox site and install in the XFree sources before compiling?

--

Michel TALON

 
 
 

XFree 4.2.0 & Matrox G400

Post by DarkSou » Fri, 22 Mar 2002 05:29:24




> : And I noticed it was looking for the "mga_hal" module... Since it's not
> : here, and understanding the meaning of HAL, I guess its kind of normal
> : hardware GL doesn't work =)

> Is it not that proprietary hal library that you have to download from
> Matrox site and install in the XFree sources before compiling?

? Where can I find this ? I looked on Matrox's site and only found Linux
Drivers... And since I'm trying on FreeBSD... =)

DarkSoul

 
 
 

XFree 4.2.0 & Matrox G400

Post by James Gra » Fri, 22 Mar 2002 09:07:54


Have you tried http://www.matrox.com/mga/support/drivers/files/lnx_200.cfm
and compiling the source code?
Cheers,

James





> > : And I noticed it was looking for the "mga_hal" module... Since it's
not
> > : here, and understanding the meaning of HAL, I guess its kind of normal
> > : hardware GL doesn't work =)

> > Is it not that proprietary hal library that you have to download from
> > Matrox site and install in the XFree sources before compiling?
> ? Where can I find this ? I looked on Matrox's site and only found Linux
> Drivers... And since I'm trying on FreeBSD... =)

> DarkSoul

 
 
 

XFree 4.2.0 & Matrox G400

Post by ta.. » Fri, 22 Mar 2002 21:23:22



:>
:> : And I noticed it was looking for the "mga_hal" module... Since it's not
:> : here, and understanding the meaning of HAL, I guess its kind of normal
:> : hardware GL doesn't work =)
:>
:> Is it not that proprietary hal library that you have to download from
:> Matrox site and install in the XFree sources before compiling?
: ? Where can I find this ? I looked on Matrox's site and only found Linux
: Drivers... And since I'm trying on FreeBSD... =)

I know this exists or existed, but i never found it myself ..
In principle there is a thing called libhal.a or something similar
that contains proprietary stuff and can be linked with XFree.
There is an allusion to that in XFree Docs. Since you are speaking of
an mga_hal module, i imagine this may be related. By the way i  exchanged
my Matrox G450 card for an nVidia GeForce II MX that i liked much more, so
i left this question aside.

: DarkSoul

--

Michel TALON

 
 
 

XFree 4.2.0 & Matrox G400

Post by DarkSou » Sat, 23 Mar 2002 04:19:48



Quote:> I know this exists or existed, but i never found it myself ..
> In principle there is a thing called libhal.a or something similar
> that contains proprietary stuff and can be linked with XFree.
> There is an allusion to that in XFree Docs. Since you are speaking of
> an mga_hal module, i imagine this may be related. By the way i  exchanged
> my Matrox G450 card for an nVidia GeForce II MX that i liked much more, so
> i left this question aside.

I managed to set the damn thing up... But there still IS a big problem with
this damn DRI module...
Even though it seems better now with the GXXX Driver compiled in XFree =)

(II) MGA(0): [drm] bpp: 16 depth: 16
(II) MGA(0): [drm] Sarea 2200+664: 2864
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmGetBusid returned ''
(II) MGA(0): [drm] created "mga" driver at busid "PCI:1:0:0"
(II) MGA(0): [drm] added 8192 byte SAREA at 0xcea68000
(II) MGA(0): [drm] mapped SAREA 0xcea68000 to 0x2828f000
(II) MGA(0): [drm] framebuffer handle = 0xe4000000
(II) MGA(0): [drm] added 1 reserved context for kernel
(II) MGA(0): [agp] Mode 0x1f000201 [AGP 0x0000/0x0000; Card 0x102b/0x0525]
(II) MGA(0): [agp] 12288 kB allocated with handle 0xc14c0580

// At this point the things seems to be frozen, I must switch consoles to
have it work and show my window manager //

(EE) MGA(0): [agp] Could not bind memory
(EE) MGA(0): [drm] failed to remove DRM signal handler
(II) MGA(0): [drm] removed 1 reserved context for kernel
DRIUnlock called when not locked
(II) MGA(0): [drm] unmapping 8192 bytes of SAREA 0xcea68000 at 0x2828f000
(II) MGA(0): Using 9885 lines for offscreen memory.
(II) MGA(0): Using XFree86 Acceleration Architecture (XAA)

(XFree86.log extract)

I also get

/kernel: agp0: binding memory at bad offset 0

when I launch XFree (4.1.0 or 4.2.0)... Anybody know what can fix this ? :/
I tried every DRI & FreeBSD page, and fixed all my kernel panics, but I
don't know what to do now...

DarkSoul

 
 
 

XFree 4.2.0 & Matrox G400

Post by DarkSou » Sat, 23 Mar 2002 09:27:25



Found out what the damn bug was... -_-; This was suspicous from the start :

drm0: <Matrox G400 (AGP)> mem
0xe5000000-0xe57fffff,0xe4000000-0xe4003fff,0xe8000000-0xe9ffffff irq 11 at
device 0.0 on pci1
info: [drm] AGP at 0xe0000000 4MB
info: [drm] Initialized mga 3.0.2 20010321 on minor 0

Since the damn thing didn't have enough AGP Aperture Size, it couldn't
allocate the memory for XFree86; and returned a NULL pointer :)

After fixing Aperture Size to 32Mb, I get :
drm0: <Matrox G400 (AGP)> mem
0xe5000000-0xe57fffff,0xe4000000-0xe4003fff,0xe8000000-0xe9ffffff irq 11 at
device 0.0 on pci1
info: [drm] AGP at 0xe0000000 64MB
info: [drm] Initialized mga 3.0.2 20010321 on minor 0

Looks much better :)))

DarkSoul

 
 
 

XFree 4.2.0 & Matrox G400

Post by Charlie Sors » Sat, 29 Jun 2002 04:44:36



=
= : And I noticed it was looking for the "mga_hal" module... Since it's not
= : here, and understanding the meaning of HAL, I guess its kind of normal
= : hardware GL doesn't work =)
=
= Is it not that proprietary hal library that you have to download from
= Matrox site and install in the XFree sources before compiling?

Michel or others:

I found this message about the G400 which I'm using with XF86 V 4.1.0
which I fetched as binaries from xfree86.org.

Does that mean that there's no way that I can take advantage of the
download from Matrox?  That I'd have to download and compile the
source?

I'm pretty green about how X works so I'll sure appreciate some
help suitable for a newbie...  :{

Thanks in advance for any help.

Here's information about my system and the mga_hal stuff:

PC% fgrep -i mga_hal Logs/startx.log
(WW) Warning, couldn't open module mga_hal
(EE) MGA: Failed to load module "mga_hal" (module does not exist, 0)
PC%
PC% system
Copyright (c) 1992-1999 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California. All rights reserved.
FreeBSD 3.4-RELEASE #0: Mon Apr  8 18:15:30 MDT 2002

Timecounter "i8254"  frequency 1193182 Hz
CPU: AMD Athlon(tm) Processor (750.03-MHz 686-class CPU)

XFree86 Version 4.1.0 / X Window System
(protocol Version 11, revision 0, vendor release 6510)
Release Date: 2 June 2001
        If the server is older than 6-12 months, or if your card is
        newer than the above date, look for a newer version before
        reporting problems.  (See http://www.XFree86.Org/FAQ)
Build Operating System: FreeBSD 3.4-RELEASE i386 [ELF]
Module Loader present

PC%

Thanks for any help.

--
Best regards,

Charlie "Older than dirt" Sorsby     Edgewood,  NM     "I'm the NRA!"

 
 
 

XFree 4.2.0 & Matrox G400

Post by ta.. » Sat, 29 Jun 2002 17:14:21




: =
: = : And I noticed it was looking for the "mga_hal" module... Since it's not
: = : here, and understanding the meaning of HAL, I guess its kind of normal
: = : hardware GL doesn't work =)
: =
: = Is it not that proprietary hal library that you have to download from
: = Matrox site and install in the XFree sources before compiling?

: Michel or others:

: I found this message about the G400 which I'm using with XF86 V 4.1.0
: which I fetched as binaries from xfree86.org.

: Does that mean that there's no way that I can take advantage of the
: download from Matrox?  That I'd have to download and compile the
: source?

I don't know if the binary is linked with the hal library. You should see
that with ldd. Compiling X from source is very easy if you have
lots of space on disk and a fast machine. It will take 30' and around
300Megs on disk. It is no more difficult than running
make World
in the xc directory
and then make install.
This hal library is a binary library which was provided by Matrox and
containing proprietary code that they are not allowed to disclose.
I don't know wether it is still necessary (it was necessary for the G450
with dual head) and if it is included with the source code package that
can be found on Matrox site. Sorry but i have exchanged my Matrox for
a GeForce II MX that works very well, and i am happy with that.

: I'm pretty green about how X works so I'll sure appreciate some
: help suitable for a newbie...  :{

: Thanks in advance for any help.

: Here's information about my system and the mga_hal stuff:

: PC% fgrep -i mga_hal Logs/startx.log
: (WW) Warning, couldn't open module mga_hal
: (EE) MGA: Failed to load module "mga_hal" (module does not exist, 0)
: PC%
: PC% system
: Copyright (c) 1992-1999 FreeBSD Inc.
: Copyright (c) 1982, 1986, 1989, 1991, 1993
:         The Regents of the University of California. All rights reserved.
: FreeBSD 3.4-RELEASE #0: Mon Apr  8 18:15:30 MDT 2002

: Timecounter "i8254"  frequency 1193182 Hz
: CPU: AMD Athlon(tm) Processor (750.03-MHz 686-class CPU)

: XFree86 Version 4.1.0 / X Window System
: (protocol Version 11, revision 0, vendor release 6510)
: Release Date: 2 June 2001
:         If the server is older than 6-12 months, or if your card is
:         newer than the above date, look for a newer version before
:         reporting problems.  (See http://www.XFree86.Org/FAQ)
: Build Operating System: FreeBSD 3.4-RELEASE i386 [ELF]
: Module Loader present

: PC%

: Thanks for any help.

: --
: Best regards,

: Charlie "Older than dirt" Sorsby     Edgewood,  NM     "I'm the NRA!"

--

Michel TALON

 
 
 

XFree 4.2.0 & Matrox G400

Post by tony » Mon, 08 Jul 2002 02:21:07



> : And I noticed it was looking for the "mga_hal" module... Since it's
> not = : here, and understanding the meaning of HAL, I guess its kind of
> normal = : hardware GL doesn't work =)

With XFree86 4.2, the Matrox installs and works
perfectly - including the dual head mode with xinerama

tony

 
 
 

1. FreeBSD 4.2 && Matrox G400

Hi,

I am having difficulty getting freebsd to detect my video card. I tried both
enabling and disabling PnP in Bios only to get the same result <Unknown
Card> ....

Also, trying to install X server 4.1 hangs and pkg_add never returns!

Please help if you can. Thank you...

Mike

2. backup to nfs directory

3. Xfree 4.0.1, matrox g400, dri, xf86config

4. Full recoverable backup

5. Problems with XFree 4.0 and Matrox G400

6. ** Diamond Stealth 2000 3D **

7. XFree 4.0.1 and my Matrox G400: DRI?

8. looking for mksysb script

9. xfree and Matrox G400

10. XFree 4.0 and Matrox G400 D.H. Max

11. Problem with Matrox G400 + XFree-4.0.1

12. Changing color depth for Matrox G400 and XFree 3.3.5 SVGA Server (running KDE)

13. NEC LCD1525x + Matrox G400 + XFree 4.0