From owner-freebsd-current@FreeBSD.ORG Sun Dec 25 16:43:56 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 8295816A41F; Sun, 25 Dec 2005 16:43:56 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id C137F43D58; Sun, 25 Dec 2005 16:43:44 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.3/8.13.3/NinthNine) with ESMTP id jBPGhT6M062626; Mon, 26 Dec 2005 01:43:29 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Mon, 26 Dec 2005 01:43:29 +0900 From: Norikatsu Shigemura To: jhb@FreeBSD.org Message-Id: <20051226014329.152c6918.nork@FreeBSD.org> In-Reply-To: <20051225135216.Y1294@atlantis.atlantis.dp.ua> References: <20051225135216.Y1294@atlantis.atlantis.dp.ua> X-Mailer: Sylpheed version 2.2.0beta1 (GTK+ 2.8.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (sakura.ninth-nine.com [219.127.74.121]); Mon, 26 Dec 2005 01:43:29 +0900 (JST) Cc: Dmitry Pryanishnikov , 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: Sun, 25 Dec 2005 16:43:56 -0000 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). # pciconf -lv | grep vgapci0 vgapci0@pci0:2:0: class=0x030000 card=0x102913bd chip=0x35778086 rev=0x04 hdr=0x00 # pciconf -rb pci0:2:0 0x0000:0x00ff | manual-formating... | 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F -----+------------------------------------------------- 0000 | 86 80 77 35 07 00 90 00 04 00 00 03 00 00 80 00 0010 | 08 00 00 e8 00 00 00 e0 00 00 00 00 00 00 00 00 0020 | 00 00 00 00 00 00 00 00 00 00 00 00 bd 13 29 10 0030 | 00 00 00 00 d0 00 00 00 00 00 00 00 05 01 00 00 ~~ 0040 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0050 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0060 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0070 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0080 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0090 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00A0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00B0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00C0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00D0 | 01 00 21 02 00 00 00 00 80 80 13 2a 00 00 00 00 ~~ This is not 0x02(=PCIY_AGP) 00E0 | 2a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00F0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00