From owner-freebsd-current@FreeBSD.ORG Tue Dec 27 18:05:49 2005 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 A591216A41F; Tue, 27 Dec 2005 18:05:49 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7644843D78; Tue, 27 Dec 2005 18:05:35 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 4667638 for multiple; Tue, 27 Dec 2005 13:07:24 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id jBRI5X7b019832; Tue, 27 Dec 2005 13:05:33 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Tue, 27 Dec 2005 13:01:19 -0500 User-Agent: KMail/1.8.2 References: <20051225135216.Y1294@atlantis.atlantis.dp.ua> <20051226014329.152c6918.nork@FreeBSD.org> In-Reply-To: <20051226014329.152c6918.nork@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512271301.20955.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1218/Mon Dec 26 08:46:59 2005 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Dmitry Pryanishnikov , Norikatsu Shigemura 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, 27 Dec 2005 18:05:49 -0000 On Sunday 25 December 2005 11:43 am, Norikatsu Shigemura wrote: > On Sun, 25 Dec 2005 14:28:47 +0200 (EET) > > Dmitry Pryanishnikov wrote: > > I've tried both to compile devices agp,drm,i915 to the kernel and load > > them via /boot/loader.conf - result with the stock kernel was the same: > > vgapci0: port 0xec00-0xec07 mem > > 0xfeb80000-0xfebfffff,0xd0000000-0xdfffffff,0xfeb40000-0xfeb7ffff irq > > 16 at device 2.0 on pci0 > > drm0: on vgapci0 > > error: [drm:pid0:drm_load] *ERROR* Card isn't AGP, or couldn't initialize > > AGP. device_attach: drm0 attach returned 12 > > I had to hack /sys/dev/pci/vga_pci.c: > > I have same problem in my i830M, too and fixed Dmitry's patch. > According to my pciconf -rb, pci_find_extcap(dev, PCIY_AGP, NULL) > never find PCIY_AGP(because of 0x01). Ok, it looks like agp_i810.c doesn't actually look for the AGP cap either which is quite odd, but anyways. The best fix is to fix the AGP drivers to use identify routines and change the hostb and vgapci drivers to be dumber. Creating agp and drm devices in vgapci is a temporary hack anyway. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org