From owner-freebsd-x11@FreeBSD.ORG Tue Oct 2 23:27:14 2007 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2F2B16A468 for ; Tue, 2 Oct 2007 23:27:14 +0000 (UTC) (envelope-from SRS0=734d05ddadd5ba3317366b36140dba713445a3de=476=es.net=oberman@es.net) Received: from postal1.es.net (postal4.es.net [IPv6:2001:400:6000:1::66]) by mx1.freebsd.org (Postfix) with ESMTP id CE51513C494 for ; Tue, 2 Oct 2007 23:27:13 +0000 (UTC) (envelope-from SRS0=734d05ddadd5ba3317366b36140dba713445a3de=476=es.net=oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal4.es.net (Postal Node 4) with ESMTP (SSL) id HHD80409; Tue, 02 Oct 2007 16:27:09 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 6BC4145014; Tue, 2 Oct 2007 16:27:08 -0700 (PDT) To: Warren Block In-Reply-To: Your message of "Tue, 02 Oct 2007 15:08:04 MDT." <20071002144141.B49743@wonkity.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1191367628_56357P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 02 Oct 2007 16:27:08 -0700 From: "Kevin Oberman" Message-Id: <20071002232708.6BC4145014@ptavv.es.net> X-Sender-IP: 198.128.4.29 X-Sender-Domain: es.net X-Recipent: ;; X-Sender: X-To_Name: Warren Block X-To_Domain: wonkity.com X-To: Warren Block X-To_Email: wblock@wonkity.com X-To_Alias: wblock Cc: freebsd-x11@freebsd.org Subject: Re: Matrox mga driver on Xorg 7.3 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2007 23:27:14 -0000 --==_Exmh_1191367628_56357P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Date: Tue, 2 Oct 2007 15:08:04 -0600 (MDT) > From: Warren Block > Sender: owner-freebsd-x11@freebsd.org > > There's a problem that seems to be FreeBSD-specific (6.2-STABLE) with > the mga driver, version 1.4.7 (and also with 1.9.99, which I've been > testing): > > (II) Module vgahw: vendor="X.Org Foundation" > compiled for 1.4.0, module version = 0.1.0 > ABI class: X.Org Video Driver, version 2.0 > (--) MGA(0): Chipset: "mgag400" (G450) > (==) MGA(0): Depth 24, (==) framebuffer bpp 32 > (==) MGA(0): RGB weight 888 > (==) MGA(0): Using AGP 1x mode > (==) MGA(0): Using XAA acceleration > (--) MGA(0): Linear framebuffer at 0xDC000000 > (==) MGA(0): MMIO registers at 0xDFEFC000 > (--) MGA(0): Pseudo-DMA transfer window at 0xDF000000 > (--) MGA(0): BIOS at 0xDFEC0000 > > At this point, it has a problem: > > Requesting insufficient memory window!: start: 0xdee00000 end: 0xdfefffff size 0x2000000 > (EE) Cannot find empty range to map base to > (WW) MGA(0): Video BIOS info block not detected! > > The driver still works, but without being able to get to the BIOS, it > can't determine BIOS version and card features. That's relevant to the > experimental mga 1.9.99, which supports the new xrandr features. In > turn, that means 1.9.99 can't see or enable the second output on the > G450 card. > > The newest version of Xorg I could find on a Linux liveCD (Xorg 7.2) > can find the BIOS: > > (--) MGA(0): Pseudo-DMA transfer window at 0xDF000000 > (--) MGA(0): BIOS at 0xDFEC0000 > (II) Attempted to read BIOS 64KB from /sys/bus/pci/devices/0000:01:00.0/rom: got 34KB > (--) MGA(0): Video BIOS info block at offset 0x07D00 > > pciconf entries that may be relevant: > > agp0@pci0:0:0: class=0x060000 card=0x00001106 chip=0x31891106 rev=0x80 hdr=0x00 > vendor = 'VIA Technologies Inc' > device = 'VT8377 Apollo KT400/A/600 CPU to PCI Bridge' > class = bridge > subclass = HOST-PCI > pcib1@pci0:1:0: class=0x060400 card=0x00000000 chip=0xb1981106 rev=0x00 hdr=0x01 > vendor = 'VIA Technologies Inc' > device = 'ProSavageDDR P4X600 CPU to AGP Bridge' > class = bridge > subclass = PCI-PCI > drm0@pci1:0:0: class=0x030000 card=0x0641102b chip=0x0525102b rev=0x82 hdr=0x00 > vendor = 'Matrox Electronic Systems Ltd.' > device = 'MGA G450 Dual Head Chip of G450 graphics card' > class = display > subclass = VGA > > My crude attempts at tracking the problem down seem to point to > freebsdPci.c in xorg-server-1.4/hw/xfree86/os-support/bus/. > > It would be nice to fix this and get back the second VGA output. > > (Note: the mga-1.9.99 code just drops into a copy of the xf86-video-mga > port, and acts just like the 1.4.7 version.) I reported the same problem last week, but did not track it down nearly as far as you did. I really want my second display back, but I had assumed it was not FreeBSD specific, so thought that the issue was with Xorg. Thanks! (Have you submitted a PR on this?) -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 --==_Exmh_1191367628_56357P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFHAtPMkn3rs5h7N1ERAi/zAJ4971m5CJRaNsyVG+HP9wTiLFhZiQCeMOdw 6pnQgytOKpCXWCeaew0YWGc= =tFs7 -----END PGP SIGNATURE----- --==_Exmh_1191367628_56357P--