From owner-freebsd-stable@FreeBSD.ORG Thu Apr 17 10:37:12 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 95781483 for ; Thu, 17 Apr 2014 10:37:12 +0000 (UTC) Received: from smtp.smtpout.orange.fr (smtp09.smtpout.orange.fr [80.12.242.131]) by mx1.freebsd.org (Postfix) with ESMTP id 1629418EB for ; Thu, 17 Apr 2014 10:37:11 +0000 (UTC) Received: from localhost ([92.136.145.59]) by mwinf5d32 with ME id qyd91n00b1H6pGC03yd9p7; Thu, 17 Apr 2014 12:37:10 +0200 X-ME-Helo: localhost X-ME-Date: Thu, 17 Apr 2014 12:37:10 +0200 X-ME-IP: 92.136.145.59 Message-ID: <534FAED5.7070703@orange.fr> Date: Thu, 17 Apr 2014 12:37:09 +0200 From: Claude Buisson User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: John Baldwin Subject: Re: Unable to mount the root fs on stable/8 r264339, GENERIC kernel, with MBR, FreeBSD slice, and UFS volume labels References: <201404161038.55512.jhb@freebsd.org> <534EA7AC.8060808@orange.fr> <201404161306.26721.jhb@freebsd.org> In-Reply-To: <201404161306.26721.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Cc: FreeBSD stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2014 10:37:12 -0000 On 04/16/2014 19:06, John Baldwin wrote: > On Wednesday, April 16, 2014 11:54:20 am Claude Buisson wrote: >> On 04/16/2014 16:38, John Baldwin wrote: >>> On Wednesday, April 16, 2014 5:41:44 am Claude Buisson wrote: >>>> On 04/16/2014 10:09, Trond Endrest=F8l wrote: >>>>> On Tue, 15 Apr 2014 19:44+0200, Trond Endrest=F8l wrote: >>>>> >>>>>> On Fri, 11 Apr 2014 18:38+0200, Trond Endrest=F8l wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I have a couple of uncritical systems running stable/8 r258344. >>>>>>> Hardware is Dell OptiPlex GX260, BIOS A09, which is the latest re= v. >>>>>>> >>>>>>> The r264339 GENERIC kernel are unable to mount the root fs from t= he >>>>>>> hard drive using MBR, FreeBSD slice, and UFS volume labels. >>>>>>> >>>>>>> r258344 obviously can. >>>>>>> >>>>>>> I even tried regular device names like /dev/ad0s1a in /etc/fstab,= and >>>>>>> at the mountroot> prompt, i.e. ufs:/dev/ad0s1a. The kernel still >>>>>>> cannot mount the root fs. >>>>>>> >>>>>>> The new kernel (r264339) does recognize the ad0 harddrive, and ad= 0 is >>>>>>> listed as one of the GEOM managed disk devices; acd0 being the ot= her >>>>>>> one. >>>>>>> >>>>>>> Do I need to load additional geom modules, or is it a genuine bug= ? >>>>>>> >>>>>>> I have recreated the same conditions on a spare GX260, yes, I hav= e >>>>>>> plenty of them. >>>>>> >>>>>> I believe I have identified r262226 as the offending commit. >>>>>> >>>>>> Maybe the flags integer is set to a bad value before the calls to >>>>>> resource_list_alloc(). >>>>>> >>>>>> My spare system is currently recompiling r262221 of both world and= >>>>>> kernel, and I hope to confirm this assumption in a few hours. >>>>> >>>>> Confirmed. >>>>> >>>>>> If all goes well, I intend to move forward to the latest revision = of >>>>>> stable/8, back out the change done to sys/dev/pci/pci.c in r262226= , >>>>>> recompile world and kernel, install the kernel, and if successfull= y, >>>>>> I'll install world as well. >>>>> >>>>> Confirmed, stable/8 r264519 with r262226 backed out does indeed wor= k >>>>> on a Dell OptiPlex GX260, BIOS A09. >>>>> >>>> >>>> Just another data point related to r262226: >>>> >>>> Yesterday, I upgraded a stable/8 system from r260539 to r264426, whi= ch could not >>>> finish booting. In my case, it stopped just after detecting an agp c= ard (and >>>> could boot if agp was disabled by device.hints). >>>> >>>> Reverting r262226 gave me back a fully usable system. >>>> >>>> This system is also a Dell, but a (oldish) Dimension 4550 BIOS A08. >>>> >>>>> Any chance anyone would like to dig deeper into the matter? >>>>> Should I file a PR? >>>>> >>>> >>>> I think so, if jhb (cced) keep being interested in stable/8.. >>>> >>>> BTW, this morning I succeeded in booting a stable/10 snapshot r26419= 4 USB stick >>>> on this machine. >>> >>> Can you get a verbose dmesg with and without the change? >>> >> >> If r262226 is not reverted, the only way to boot and have a verbose dm= esg is to >> disable agp. Is it OK ? > > Yes. Hmmmm. I may know what the problem is then. Can you kldload agp= after > boot? > Here we are: verbose dmesg, kernel with agp, r262226 reverted =3D verbose.pci.c_revert= ed http://dl.free.fr/hp7ORcx71 pciconf with the same kernel =3D pciconf.pci.c_reverted http://dl.free.fr/tSrfsnxhK verbose dmesg, kernel without agp, not reverted =3D verbose.noagp http://dl.free.fr/gejndPCDZ With this kernel, kldloading agp.ko has for only effect to lock the syste= m=20 (cannot switch vty, no answer to pings, ..) -> panic/power button. Hope this help CBu