Skip site navigation (1)Skip section navigation (2)
Date:      11 May 2003 00:27:48 -0700
From:      Eric Anholt <eta@lclark.edu>
To:        Barry Irwin <bvi@rucus.ru.ac.za>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Problex with Matrox G450 and XFree86 4.3.0 on 4.8-STABLE
Message-ID:  <1052638067.652.128.camel@leguin>
In-Reply-To: <01b501c3155d$c0397a40$4508a8c0@Beastie>
References:  <01b501c3155d$c0397a40$4508a8c0@Beastie>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2003-05-08 at 05:31, Barry Irwin wrote:
> Hi All
> 
> I have just finished a re-install of a box that was previously working fine
> under 4.7.
> 
> The problem is that the matrox drm kernel module is failinf to initialise
> correctly.
> 
> :from the dmesg:
> 
> FreeBSD 4.8-STABLE #0: Thu May  8 11:41:26 SAST 2003
>     root@shagrat.prv.moria.org:/usr/src/sys/compile/SHAGRAT48
> Timecounter "i8254"  frequency 1193182 Hz
> CPU: Intel Pentium III (548.54-MHz 686-class CPU)
>   Origin = "GenuineIntel"  Id = 0x681  Stepping = 1
> 
> Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,
> PAT,PSE36,MMX,FXSR,SSE>
> real memory  = 402587648 (393152K bytes)
> avail memory = 386310144 (377256K bytes)
> Preloaded elf kernel "kernel" at 0xc04fe000.
> Preloaded elf module "vesa.ko" at 0xc04fe09c.
> Preloaded elf module "linux.ko" at 0xc04fe138.
> Preloaded elf module "agp.ko" at 0xc04fe1d8.
> Preloaded elf module "mga.ko" at 0xc04fe274.
> VESA: v3.0, 32768k memory, flags:0x1, mode table:0xc00c52cd (c00052cd)
> VESA: Matrox Graphics Inc.
> Pentium Pro MTRR support enabled
> md0: Malloc disk
> Using $PIR table, 7 entries at 0xc00fdba0
> npx0: <math processor> on motherboard
> npx0: INT 16 interface
> pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
> pci0: <PCI bus> on pcib0
> agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0xe0000000-0xe3ffffff
> at device 0.0 on pci0
> pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
> pci1: <PCI bus> on pcib1
> drm0: <Matrox G400/G450 (AGP)> mem
> 0xe5000000-0xe57fffff,0xe4000000-0xe4003fff,0xe8000000-0xe9ffffff irq 11 at
> device 0.0 on pci1
> error: [drm:mga_init] *ERROR* Cannot initialize the agpgart module.
> device_probe_and_attach: drm0 attach returned 12
> 
> System is running a world and kernel  CVSUP'd today.
> The agpgart device exists:
> -bash-2.05b$ ls -lad /dev/agpgart
> crw-------  1 root  wheel  148,   0 May  8 11:06 /dev/agpgart
> 
> Kernel Configuration also includes "agp"

You can't have both agp_load="YES" in loader.conf and agp in your
kernel.  Remove it from loader.conf.

> -bash-2.05b$ kldstat
> Id Refs Address    Size     Name
>  1    6 0xc0100000 3bae20   kernel
>  2    1 0xc04bb000 5448     vesa.ko
>  3    1 0xc04c1000 18ba4    linux.ko
>  4    1 0xc04da000 ac8c     agp.ko
>  5    1 0xc04e5000 1738c    mga.ko
>  6    1 0xc1d9b000 2000     green_saver.ko
> 
> When trying to  start X:
> 
> XFree86 Version 4.3.0
> Release Date: 27 February 2003
> X Protocol Version 11, Revision 0, Release 6.6
> Build Operating System: FreeBSD 4.8 i386 [ELF]
> Build Date: 08 May 2003
>         Before reporting problems, check http://www.XFree86.Org/
>         to make sure that you have the latest version.
> Module Loader present
> Markers: (--) probed, (**) from config file, (==) default setting,
>          (++) from command line, (!!) notice, (II) informational,
>          (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> (==) Log file: "/var/log/XFree86.0.log", Time: Thu May  8 14:36:26 2003
> (==) Using config file: "/etc/X11/XF86Config"
> (EE) MGA: Failed to load module "mga_hal" (module does not exist, 0)
> (EE) MGA: Failed to load module "mga_hal" (module does not exist, 0)
> (EE) MGA(1): Not initializing the DRI on the second head
> 
> I cant find any reference to the mga_hal module.  I know that Previously I
> needed to build the X Server with GXX_MATROX enable to use the matrox
> supplied HAL driver.

The hal module is not needed for the DRI, generally.  I don't completely
understand how the DRI works with multihead Matrox.  I think you're
supposed to be able to do accelerated DRI on both heads with the mga_hal
module with one of the driver options, but I have never tested it.

-- 
Eric Anholt                                eta@lclark.edu          
http://people.freebsd.org/~anholt/         anholt@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1052638067.652.128.camel>