From owner-freebsd-current@FreeBSD.ORG Sat Nov 4 20:14:23 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 4B32616A417 for ; Sat, 4 Nov 2006 20:14:23 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18F8343DB8 for ; Sat, 4 Nov 2006 20:13:01 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (8sr0b6sfhqi00ott@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id kA4KCpvX058651; Sat, 4 Nov 2006 12:12:51 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id kA4KCpuH058650; Sat, 4 Nov 2006 12:12:51 -0800 (PST) (envelope-from jmg) Date: Sat, 4 Nov 2006 12:12:50 -0800 From: John-Mark Gurney To: Vladimir Kushnir Message-ID: <20061104201250.GO25511@funkthat.com> Mail-Followup-To: Vladimir Kushnir , current@freebsd.org References: <20061026015618.E1706@kushnir1.kiev.ua> <20061102220454.GK25511@funkthat.com> <20061103183548.T60893@kushnir1.kiev.ua> <20061104005738.GN25511@funkthat.com> <20061104051417.U1182@kushnir1.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061104051417.U1182@kushnir1.kiev.ua> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: current@freebsd.org Subject: Re: Asus A8V hangs during pci probe on fresh -CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Nov 2006 20:14:23 -0000 Vladimir Kushnir wrote this message on Sat, Nov 04, 2006 at 05:30 +0200: > > > On Fri, 3 Nov 2006, John-Mark Gurney wrote: > > >Vladimir Kushnir wrote this message on Sat, Nov 04, 2006 at 00:49 +0200: > >> > >> > >>On Thu, 2 Nov 2006, John-Mark Gurney wrote: > >> > >>>Vladimir Kushnir wrote this message on Thu, Oct 26, 2006 at 02:27 +0300: > >>>>Is there anything I could do to help fixing this? > >>> > >>>This is likely related to the vpd work that I've done recently... > >>> > >>>Attached is a patch that may fix your troubles. (I'll commit it shortly > >>>once I've tested it on my own systems.) > >>> > >> > >>Unfortunately, it does not help at all - system hangs at precisely the > >>same point :-( > > > >in src/sys/dev/pci.c, at about line 583, in the function pci_read_vpd, > >there is #if 0, change it to #if 1, and send me the first few hundred > >lines of what it prints... > > > >That'll help me figure out where it's hanging.. > > > > Sorry I'v no serial console so the only lines I can provide are the very > last ones; and they don't seem to relate to vpd (they are the same for > ANY changes - with or without patch, with "#if 0" or "#if 1", for GENERIC > or my custom kernel etc): > > pcib1: at device 9.0 on pci0 > pcib1: secondary bus 5 > pcib1: subordinate bus 5 > pcib1: I/O decode 0xf0000-0xfff > pcib1: memory decode 0xca000000-0xca0fffff > pcib1: prefetched decode 0xca100000-0xca1fffff > pcib1: Subtractively decoded bridge > pci5: on pcib1 > pci5: physical bus=5 > > and here system hangs. 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/ if 1 won't run unless it gets data from this function... If you're hanging in this function, then I'll have to do something else... :( or you could return the card/mobo as not PCI compliant... but I doubt you'd want to do the last one.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."