From owner-freebsd-current@FreeBSD.ORG Thu May 3 18:46:22 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11082106564A for ; Thu, 3 May 2012 18:46:22 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id D82958FC08 for ; Thu, 3 May 2012 18:46:21 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 3A787B9AC; Thu, 3 May 2012 14:46:21 -0400 (EDT) From: John Baldwin To: Anton Shterenlikht Date: Thu, 3 May 2012 14:46:18 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p13; KDE/4.5.5; amd64; ; ) References: <20120426224215.GA79891@mech-cluster241.men.bris.ac.uk> <20120501113526.GA4735@mech-cluster241.men.bris.ac.uk> <20120503153519.GA14465@mech-cluster241.men.bris.ac.uk> In-Reply-To: <20120503153519.GA14465@mech-cluster241.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201205031446.18914.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 03 May 2012 14:46:21 -0400 (EDT) Cc: freebsd-current@freebsd.org Subject: Re: updating from r231158 to 234465: mounting from ufs:/dev/ad4s1a failed with error 19 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, 03 May 2012 18:46:22 -0000 On Thursday, May 03, 2012 11:35:19 am Anton Shterenlikht wrote: > On Tue, May 01, 2012 at 12:35:26PM +0100, Anton Shterenlikht wrote: > > On Mon, Apr 30, 2012 at 08:43:14AM -0400, John Baldwin wrote: > > > > > > > > I also see: > > > > > > > > ata0: stat0=0x00 err=0x01 lsb=0x14 msb=0exb > > > > ata0: stat1=0x00 err=0x00 lsb=0x00 msb=0x00 > > > > ata0: reset tp2 stat0=00 stat1=00 devices=0x10000 > > > > > > Hmmm, I don't know how to grok these lines, but does your disk work at all now > > > with any kernel? It may be that your disk has died (or a cable, etc.) and it > > > just happened to coincide with your upgrade? > > > > I reverted back to r231158, built world and generic > > kernel (minus all modules, i.e. "option MODULES_OVERRIDE="). > > This works, see the verbose boot dmesg at the end. > > > > I think I'll just do a binary search. > > I traced it to r233677. > The only change from 233676 to 233677 is > in /sys/dev/pci/pci.c > > My kernel is GENERIC with no modules > and with various bits removed, e.g. all raid devices > and PCI network devices, which I definitely > haven't got on this laptop. > > Below is the verbose boot with r233676. > Apparently at the beginning there's also > the previous unsuccessful boot with r233677. > Is this a new feature? I didn't know the > previous dmesg is preserved after a reboot. > Anyway, you can see clearly the error with r233677. > > I guess this is something to do with > ata -> ada change? I don't think so. Please try just this change: Index: pci.c =================================================================== --- pci.c (revision 234928) +++ pci.c (working copy) @@ -2822,10 +2822,14 @@ pci_add_map(device_t bus, device_t dev, int reg, s * from the parent. */ resource_list_delete(rl, type, reg); - } else { + start = 0; + device_printf(bus, + "pci%d:%d:%d:%d bar %#x failed to allocate", + pci_get_domain(dev), pci_get_bus(dev), pci_get_slot(dev), + pci_get_function(dev), reg); + } else start = rman_get_start(res); - pci_write_bar(dev, pm, start); - } + pci_write_bar(dev, pm, start); return (barlen); } -- John Baldwin