From owner-freebsd-current@FreeBSD.ORG Tue Jan 17 03:23:11 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7167116A41F for ; Tue, 17 Jan 2006 03:23:11 +0000 (GMT) (envelope-from emil@cs.rmit.edu.au) Received: from its-mu-mail2.its.rmit.edu.au (its-mu-mail2.its.rmit.edu.au [131.170.2.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 930F543D45 for ; Tue, 17 Jan 2006 03:23:10 +0000 (GMT) (envelope-from emil@cs.rmit.edu.au) Received: from wombat.cs.rmit.edu.au (wombat.cs.rmit.edu.au [131.170.24.41]) by its-mu-mail2.its.rmit.edu.au (8.13.1/8.12.11/mail2) with ESMTP id k0H3Mj49012614; Tue, 17 Jan 2006 14:22:52 +1100 (EST) Received: from goanna.cs.rmit.edu.au (goanna.cs.rmit.edu.au [131.170.24.40]) by wombat.cs.rmit.edu.au (8.12.10/8.12.10/cshub) with ESMTP id k0H3M7Pq017572; Tue, 17 Jan 2006 14:22:07 +1100 (EST) Received: (from emil@localhost) by goanna.cs.rmit.edu.au (8.11.3/8.9.3/csnode) id k0H3M6w22739; Tue, 17 Jan 2006 14:22:06 +1100 (EST) Date: Tue, 17 Jan 2006 14:22:06 +1100 From: Emil Mikulic To: Dmitry Pryanishnikov Message-ID: <20060117032206.GB21032@cs.rmit.edu.au> References: <20051225135216.Y1294@atlantis.atlantis.dp.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051225135216.Y1294@atlantis.atlantis.dp.ua> X-Operating-System: SunOS 5.9 X-PGP-Fingerprint: D2B4 7C14 0C41 9AE5 8D2B 16B0 D3D6 F910 8E4C 5D35 X-Authentication-Warning: localhost: emil pwned teh intarweb User-Agent: Mutt/1.5.9i X-Scanned-By: MIMEDefang 2.44 Cc: freebsd-current@freebsd.org Subject: Re: vgapci doesn't want to attach agp on ASUS M5A X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2006 03:23:11 -0000 On Sun, Dec 25, 2005 at 02:28:47PM +0200, Dmitry Pryanishnikov wrote: > I've tried fresh (as of 24-Dec-2005) CURRENT on my ASUS M5A notebook > (based on Intel 915GM Express chipset), and got a problem with agp > module attachment. I'm having the same problem on a Dell GX280 with an onboard i915. > drm0: on vgapci0 > error: [drm:pid0:drm_load] *ERROR* Card isn't AGP, or couldn't initialize > AGP. > device_attach: drm0 attach returned 12 Same error in my dmesg. > I had to hack /sys/dev/pci/vga_pci.c: > > --- vga_pci.c.orig Thu Dec 22 18:25:22 2005 > +++ vga_pci.c Sun Dec 25 13:04:09 2005 > @@ -74,7 +74,7 @@ > * If AGP capabilities are present on this device, then create > * an AGP child. > */ > - if (pci_find_extcap(dev, PCIY_AGP, NULL) == 0) > +// if (pci_find_extcap(dev, PCIY_AGP, NULL) == 0) > device_add_child(dev, "agp", -1); With this change, it attaches again. From dmesg after the patch: agp0: on vgapci0 agp0: detected 7932k stolen memory agp0: aperture size is 256M ... info: [drm] AGP at 0xdff00000 0MB info: [drm] Initialized i915 1.2.0 20041217 $ pciconf -lv | grep vgapci0 vgapci0@pci0:2:0: class=0x030000 card=0x01791028 chip=0x25828086 rev=0x04 hdr=0x00 # pciconf -rb pci0:2:0 0x0000:0x00ff 86 80 82 25 07 00 90 00 04 00 00 03 00 00 80 00 00 00 f0 df 99 e8 00 00 08 00 00 c0 00 00 ec df 00 00 00 00 00 00 00 00 00 00 00 00 28 10 79 01 00 00 00 00 d0 00 00 00 00 00 00 00 10 01 00 00 00 00 00 00 e0 00 00 00 09 00 09 21 02 b3 9b 08 02 00 30 00 1b 00 00 b8 00 00 00 00 00 00 80 3f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44 05 64 34 00 00 00 00 00 00 04 00 00 00 00 00 I still can't get DRI to work though. --Emil