From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 20 20:03:27 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A96F4106564A for ; Mon, 20 Jun 2011 20:03:27 +0000 (UTC) (envelope-from ansarm@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 734F88FC15 for ; Mon, 20 Jun 2011 20:03:27 +0000 (UTC) Received: by pvg11 with SMTP id 11so2352414pvg.13 for ; Mon, 20 Jun 2011 13:03:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Hzj2/jcr/8xSp4Xt16qpaiw6EIX9C9chhKoERT0hhJw=; b=Ewx6ySmpuVBHKwZ3YGeAJ+gYz4m9OGLUZlaIF4lEYTCNLiED70fJaiESdbmDf9Pkkh 83n1z/PoLGbUXFDYVJoE0WAdZfwzFrL0plAg1JXCpeKFrRVQuthtIBg0tDxtfHgCF4JG anGdNES+fb48hP6rgJFG+awgD3O/hTwE/1cKo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=QArHS21z4XzMtBG9zXpFXOeAPC0jaBlUV0x89dkHLtCZYdgnccljsWCL7rhKh39grP 1Zj4UcOYbru3rpHQBoYOAoUeH5yBgZhNO2jlbz5Y2156TULV7raxfZIhUQBFDX3iSjdV 5vVJiS+F8KkCyjgWmCwRs/Amre5S2FgMiLBbE= MIME-Version: 1.0 Received: by 10.68.52.70 with SMTP id r6mr2366913pbo.465.1308600206674; Mon, 20 Jun 2011 13:03:26 -0700 (PDT) Received: by 10.68.58.227 with HTTP; Mon, 20 Jun 2011 13:03:26 -0700 (PDT) In-Reply-To: <7B9E5AE3-C895-4D07-B923-A2F178B7B9BF@bsdimp.com> References: <201106200849.10862.jhb@freebsd.org> <7B9E5AE3-C895-4D07-B923-A2F178B7B9BF@bsdimp.com> Date: Mon, 20 Jun 2011 16:03:26 -0400 Message-ID: From: Ansar Mohammed To: Warner Losh Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: Shooting trouble on a PCI bus hang X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2011 20:03:27 -0000 So with a plethora of printfs in pci.c I managed to track it down to a call to *pci_read_bar *against an AMD CS5536 PCI-ISA bridge. This somehow intermittently hangs on bootup. Any suggestions? On Mon, Jun 20, 2011 at 12:07 PM, Warner Losh wrote: > > On Jun 20, 2011, at 6:49 AM, John Baldwin wrote: > > > On Sunday, June 19, 2011 12:35:49 pm Ansar Mohammed wrote: > >> I appreciate that. The system works fine with NetBSD, LInux and Windows > XP, > >> so I doubt its hardware. > >> > >> Interesting though that OpenBSD has the same issue. > >> > >> A question about the debug kernel load process: as it hangs on * > >> pci_print_verbose* in pci.c, can I deduce that this is the exact code > >> segment that is the issue? > > > > Well, if that was the last device on the bus it might be in a device > driver > > probe routine. You can try adding more printfs to device_probe(), etc. > to > > output each driver name as it probes each device perhaps. > > We've also had problems with interrupt storms after the drivers have all > probed, and people blame the last printf :) > > It sounds, however, with the OpenBSD datapoint that something is being > initialized bogusly, perhaps tripping over an erratum that the other systems > avoid or have specific code to work around. > > Warner