From owner-freebsd-current@FreeBSD.ORG Mon Dec 26 10:39:08 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 E504A16A41F; Mon, 26 Dec 2005 10:39:08 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8029043D4C; Mon, 26 Dec 2005 10:39:03 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id jBQAcigm059198; Mon, 26 Dec 2005 12:38:44 +0200 (EET) (envelope-from dmitry@atlantis.dp.ua) Date: Mon, 26 Dec 2005 12:38:44 +0200 (EET) From: Dmitry Pryanishnikov To: Max Laier In-Reply-To: <200512260055.07720.max@love2party.net> Message-ID: <20051226121547.M46183@atlantis.atlantis.dp.ua> References: <20051225135216.Y1294@atlantis.atlantis.dp.ua> <20051226014329.152c6918.nork@FreeBSD.org> <200512260055.07720.max@love2party.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Mailman-Approved-At: Mon, 26 Dec 2005 12:24:33 +0000 Cc: freebsd-current@freebsd.org, 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: Mon, 26 Dec 2005 10:39:09 -0000 Hello! On Mon, 26 Dec 2005, Max Laier wrote: >> 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... > > /me too on a IBM X41, pciconf -lv and -rb 0x0000:0x00ff for both instances > attached. As well, only 0x01 capability set. According to Intel's Mobile 915 PM/GM/GMS and 910GML Express Chipset Datasheet, we'll get such a picture on every chipset from this product line: they define power management capability (0x01) as the only one, see 7.2.29 PMCAPID - Power Management Capabilities ID PCI Device: 2 Function: 0 Address Offset: D0h Default Value: 0001h Access: RO Size: 16 bits Bit Access & Description Default 15:8 RO NEXT_PTR 00h This contains a pointer to next item in capabilities list. This is the final capability in the list and must be set to 00h. 7:0 RO CAP_ID. 01h SIG defines this ID is 01h for power management. Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE