From owner-freebsd-multimedia Tue Jun 11 11:27: 3 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from macbeth.phy.hr (macbeth.phy.hr [161.53.7.201]) by hub.freebsd.org (Postfix) with ESMTP id 4B1C537B403 for ; Tue, 11 Jun 2002 11:26:40 -0700 (PDT) Received: (from kkumer@localhost) by macbeth.phy.hr (8.11.6/8.11.6) id g5BIQdT00737 for freebsd-multimedia@FreeBSD.ORG; Tue, 11 Jun 2002 20:26:39 +0200 (CEST) (envelope-from kkumer) Date: Tue, 11 Jun 2002 20:26:39 +0200 From: Kresimir Kumericki To: freebsd-multimedia@FreeBSD.ORG Subject: DRI on PCI Matrox G450? Message-ID: <20020611202639.A575@phy.hr> Reply-To: kkumer@phy.hr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Dear all, Is it possible to get DRI running on *PCI* Matrox G450 Graphic card? I have played with it several hours on my FreeBSD 4.5-RELEASE-p2 (i386) and XFree86 4.2.0_1, following all suggestions from the Google that I found relevant but to no avail. I compiled kernel with "option agp" and it loads fine, but drm-kmod-0.9.5_1 which then loads mga.ko produces the following error: === dmesg: === [...] pci1: at 0.0 irq 11 [...] drm0: mem 0xe4000000-0xe47fffff,0xe4800000-0xe4803fff,0xe6000000-0xe7ffffff 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 (This is the only place in dmesg where agp is mentioned.) XFree86 then successfully loads all modules, including dri and drm, but fails in loading mga_hal, and finally complains: === XFree86.0.log: === [...] (II) MGA(0): [drm] Sarea 2200+664: 2864 drmOpenDevice: minor is 0 drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is -1, (Unknown error: 999() drmOpenDevice: Open failed [...] (II) MGA(0): [drm] drmOpen failed (EE) MGA(0): [drm] DRIScreenInit failed. Disabling DRI. Note that I have crw------- 1 root wheel 148, 0 Mar 21 16:18 /dev/agpgart and drwxrwxrwx 2 root wheel 512 Jun 11 19:38 /dev/dri/ but this /dev/dri directory is empty! Any hints would be helpful. I attach complete dmesg and XFree86.0.log below. Thanks, Kresimir === dmesg === Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.5-RELEASE-p2 #1: Tue Jun 11 15:04:36 CEST 2002 root@enceladus.phy.hr:/usr/backup/obj/usr/src/sys/MACBETH Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 200455423 Hz CPU: Pentium/P55C (200.46-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x543 Stepping = 3 Features=0x8001bf real memory = 100663296 (98304K bytes) avail memory = 94441472 (92228K bytes) Preloaded elf kernel "kernel" at 0xc0368000. Intel Pentium detected, installing workaround for F00F bug md0: Malloc disk Using $PIR table, 5 entries at 0xc00f0a90 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 isab0: at device 1.0 on pci0 isa0: on isab0 atapci0: port 0xe000-0xe00f at device 1.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at 1.2 chip1: port 0xe800-0xe80f at device 1.3 on pci0 sym0: <810a> port 0xd400-0xd4ff mem 0xe5000000-0xe50000ff irq 9 at device 9.0 on pci0 sym0: No NVRAM, ID 7, Fast-10, SE, parity checking ed0: port 0xd000-0xd01f irq 10 at device 10.0 on pci0 ed0: address 00:80:48:d9:32:4f, type NE2000 (16 bit) pcib1: at device 12.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 11 orm0: