Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 May 2003 14:31:29 +0200
From:      "Barry Irwin" <bvi@moria.org>
To:        <freebsd-stable@freebsd.org>
Subject:   Problex with Matrox G450 and XFree86 4.3.0 on 4.8-STABLE
Message-ID:  <01b501c3155d$c0397a40$4508a8c0@Beastie>

next in thread | raw e-mail | index | archive | help
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"

-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.

In XFree86.0.log:

=snip=
(--) MGA(0): Chipset: "mgag400" (G450)
(II) Loading sub module "mga_hal"
(II) LoadModule: "mga_hal"
(WW) Warning, couldn't open module mga_hal
(II) UnloadModule: "mga_hal"
(EE) MGA: Failed to load module "mga_hal" (module does not exist, 0)
(==) MGA(0): Matrox HAL module not loaded - using builtin mode setup instead
(**) MGA(0): Depth 24, (--) framebuffer bpp 32
(==) MGA(0): RGB weight 888
(==) MGA(0): Using AGP 1x mode
(--) MGA(0): Linear framebuffer at 0xE8000000
(--) MGA(0): MMIO registers at 0xE4000000
(--) MGA(0): Pseudo-DMA transfer window at 0xE5000000
(==) MGA(0): BIOS at 0xC0000
(--) MGA(0): Video BIOS info block at offset 0x07CE0
(WW) MGA(0): Video BIOS info block not detected!
(II) MGA(0): MGABios.RamdacType = 0x0
(==) MGA(0): Write-combining range (0xe4000000,0x4000) was already clear
(==) MGA(0): Write-combining range (0xe8000000,0x2000000)
(==) MGA(0): Write-combining range (0xe5000000,0x800000) was already clear
(--) MGA(0): Crtc2 will use 8192K of VideoRam
(--) MGA(0): VideoRAM: 24576 kByte
=snip=

Any bright ideas.   I've had a look at
http://people.freebsd.org/~anholt/dri/index.html and all seems ane to me.

Regards,

Barry



--
Barry Irwin
bvi@moria.org





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01b501c3155d$c0397a40$4508a8c0>