Barry Irwin
2003-May-08 05:33 UTC
Problex with Matrox G450 and XFree86 4.3.0 on 4.8-STABLE
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
Bjarne Wichmann Petersen
2003-May-10 23:58 UTC
Problex with Matrox G450 and XFree86 4.3.0 on 4.8-STABLE
On Thursday 08 May 2003 14:31, Barry Irwin wrote:> Any bright ideas. I've had a look at > http://people.freebsd.org/~anholt/dri/index.html and all seems ane to me.I'm using G450 as well and followed the above link. I'm not sure mga_hal is a must if you want to run drm/dri. It doesn't load here either, and drm works... sorta. But I've got a few issues: 1) drm can only be initialized after a reboot. Any resetting af X after a reboot will make drm fail. 2) *sometimes* drm/dri/opengl doesn't look like it's working properly. Eg. sometimes the KDE-screensaver only occupies a *part* of the upper left corner (guess it's something like 640x480). But I don't have any solutions. Bjarne -- Homepage: http://www.mekanix.dk
Eric Anholt
2003-May-11 00:21 UTC
Problex with Matrox G450 and XFree86 4.3.0 on 4.8-STABLE
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