From owner-freebsd-current@FreeBSD.ORG Thu Nov 9 00:28:00 2006 Return-Path: X-Original-To: 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 6F24316A417 for ; Thu, 9 Nov 2006 00:28:00 +0000 (UTC) (envelope-from vkushnir@i.kiev.ua) Received: from horse.iptelecom.net.ua (horse.iptelecom.net.ua [212.9.224.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23CC643D66 for ; Thu, 9 Nov 2006 00:27:58 +0000 (GMT) (envelope-from vkushnir@i.kiev.ua) Received: from h226.245.159.dialup.iptcom.net ([213.159.245.226]:27106 "EHLO kushnir1.kiev.ua" ident: "SOCKFAULT1" whoson: "vkushnir") by horse.iptelecom.net.ua with ESMTP id S1223517AbWKIA15 (INRCPT ); Thu, 9 Nov 2006 02:27:57 +0200 Received: from kushnir1.kiev.ua (kushnir1.kiev.ua [10.0.0.1]) by kushnir1.kiev.ua (8.13.8/8.13.8) with ESMTP id kA90RpCP001251; Thu, 9 Nov 2006 02:27:51 +0200 (EET) (envelope-from vkushnir@i.kiev.ua) Date: Thu, 9 Nov 2006 02:27:51 +0200 (EET) From: Vladimir Kushnir X-X-Sender: vkushnir@kushnir1.kiev.ua To: Ian Dowse In-Reply-To: <200611082152.aa94781@nowhere.iedowse.com> Message-ID: <20061109022154.O1179@kushnir1.kiev.ua> References: <200611082152.aa94781@nowhere.iedowse.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: John-Mark Gurney , current@freebsd.org Subject: Fixed! Was:Re: Asus A8V hangs during pci probe on fresh -CURRENT 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: Thu, 09 Nov 2006 00:28:00 -0000 On Wed, 8 Nov 2006, Ian Dowse wrote: > In message <20061106015245.R1183@kushnir1.kiev.ua>, Vladimir Kushnir writes: >> On Sat, 4 Nov 2006, John-Mark Gurney wrote: >>> Ok, then add a couple printfs to the pci_read_vpd_reg line... one before >>> the WREG line, and another before the return... I have a feeling that >>> your card isn't setting the correct bit, as the printf you enabled w/ >> >> Your feeling was absolutely right - system hangs exactly here. > > Maybe something like the following would help? This adds a timeout > to pci_read_vpd_reg() so it might prevent the complete hang. > > Ian > Thanks! That worked: ...... pcib1: Subtractively decoded bridge. pci5: on pcib1 pci5: physical bus=5 ~~~~~~~~~~~~~~~~~~~~ Here's where it hanged before. pci5:6:0: read VPD reg 0 timed out pci5:6:0: invalid vpd data, remain 0xffff found-> vendor=0x109e, dev=0x036e, revid=0x11 bus=5, slot=6, func=0 class=04-00-00, hdrtype=0x00, mfdev=1 cmdreg=0x0006, statreg=0x0290, cachelnsz=0 (dwords) lattimer=0x20 (960 ns), mingnt=0x10 (4000 ns), maxlat=0x28 (10000 ns) intpin=a, irq=255 powerspec 2 supports D0 D3 current D0 VPD Ident: (null) map[10]: type 3, range 32, base 0xca100000, size 12, enabled pcib1: (null) requested memory range 0xca100000-0xca100fff: good pci5:6:1: read VPD reg 0 timed out pci5:6:1: invalid vpd data, remain 0xffff .......