From owner-freebsd-current@FreeBSD.ORG Fri May 4 11:51:36 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 263CC106564A; Fri, 4 May 2012 11:51:36 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id CE0248FC14; Fri, 4 May 2012 11:51:35 +0000 (UTC) Received: from ncsd.bris.ac.uk ([137.222.10.59] helo=ncs.bris.ac.uk) by dirg.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1SQH2s-0004M5-7V; Fri, 04 May 2012 12:51:34 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1SQH2s-0000yV-0E; Fri, 04 May 2012 12:51:34 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id q44BpXbE029247; Fri, 4 May 2012 12:51:33 +0100 (BST) (envelope-from mexas@bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id q44BpXoY029246; Fri, 4 May 2012 12:51:33 +0100 (BST) (envelope-from mexas@bris.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bris.ac.uk using -f Date: Fri, 4 May 2012 12:51:33 +0100 From: Anton Shterenlikht To: John Baldwin Message-ID: <20120504115133.GA27547@mech-cluster241.men.bris.ac.uk> Mail-Followup-To: John Baldwin , Anton Shterenlikht , freebsd-current@freebsd.org 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> <201205031446.18914.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201205031446.18914.jhb@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@freebsd.org, Anton Shterenlikht 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: Fri, 04 May 2012 11:51:36 -0000 On Thu, May 03, 2012 at 02:46:18PM -0400, John Baldwin wrote: > 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); > } > That helped, thank you. -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423