From owner-freebsd-stable@FreeBSD.ORG Sun May 11 00:20:53 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F50A37B404 for ; Sun, 11 May 2003 00:20:53 -0700 (PDT) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F21543F85 for ; Sun, 11 May 2003 00:20:52 -0700 (PDT) (envelope-from eta@lclark.edu) Received: from [192.168.0.101] (12-224-152-126.client.attbi.com[12.224.152.126]) by attbi.com (sccrmhc02) with SMTP id <2003051107205100200h7o05e>; Sun, 11 May 2003 07:20:51 +0000 From: Eric Anholt To: Barry Irwin In-Reply-To: <01b501c3155d$c0397a40$4508a8c0@Beastie> References: <01b501c3155d$c0397a40$4508a8c0@Beastie> Content-Type: text/plain Organization: Message-Id: <1052638067.652.128.camel@leguin> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 11 May 2003 00:27:48 -0700 Content-Transfer-Encoding: 7bit cc: freebsd-stable@freebsd.org Subject: Re: Problex with Matrox G450 and XFree86 4.3.0 on 4.8-STABLE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2003 07:20:53 -0000 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 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: on motherboard > npx0: INT 16 interface > pcib0: on motherboard > pci0: on pcib0 > agp0: mem 0xe0000000-0xe3ffffff > at device 0.0 on pci0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > drm0: 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