From owner-freebsd-stable@FreeBSD.ORG Tue Jul 29 01:33:18 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E6A3D195; Tue, 29 Jul 2014 01:33:18 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AAE86203A; Tue, 29 Jul 2014 01:33:18 +0000 (UTC) Received: from pippin.baldwin.cx (75-48-77-17.lightspeed.cncrca.sbcglobal.net [75.48.77.17]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id A35D5B94B; Mon, 28 Jul 2014 21:33:16 -0400 (EDT) From: John Baldwin To: Garrett Cooper Subject: Re: [REGRESSION] Root zpool mounting broken between 06/30/2013 and 07/21/2013 when PS/2 support compiled into the kernel Date: Mon, 28 Jul 2014 21:32:24 -0400 Message-ID: <10421077.Qp3biFQLVt@pippin.baldwin.cx> User-Agent: KMail/4.12.5 (FreeBSD/11.0-CURRENT; KDE/4.12.5; amd64; ; ) In-Reply-To: References: <78424E5D-4EB2-4462-A190-D0AC97136790@gmail.com> <95A4D9A9-9D69-4258-A1EC-CBC6DC2F49FF@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 28 Jul 2014 21:33:16 -0400 (EDT) Cc: "freebsd-fs@freebsd.org" , "freebsd-stable@freebsd.org" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jul 2014 01:33:19 -0000 On Monday 28 July 2014 09:57:08 Garrett Cooper wrote: > On Mon, Jul 28, 2014 at 9:37 AM, John Baldwin wrote= : > > On Jul 28, 2014, at 9:07 AM, Garrett Cooper = wrote: > >> On Jul 22, 2013, at 10:58 AM, Garrett Cooper =20 wrote: > >>> On Jul 22, 2013, at 9:08 AM, John Baldwin wrote= : > >>>> On Monday, July 22, 2013 10:30:32 am Garrett Cooper wrote: > >>>>> I have a KERNCONF that previously had PS/2 support compiled int= o the > >>>>> kernel. If I comment out the following lines like so: > >>>>>=20 > >>>>> # atkbdc0 controls both the keyboard and the PS/2 mouse > >>>>> #device atkbdc # AT keyboard controller > >>>>> #device atkbd # AT keyboard > >>>>>=20 > >>>>> then I'm able to mount root again (it was failing with ENOXDEV)= . > >>>>>=20 > >>>>> The working kernel was as follows: > >>>>>=20 > >>>>> $ strings /boot/kernel.WORKING/kernel | grep -B 2 -A 2 BAYONETT= A > >>>>> @(#)FreeBSD 9.1-STABLE #7 r+0304216: Sun Jun 30 15:22:55 PDT 20= 13 > >>>>> FreeBSD 9.1-STABLE #7 r+0304216: Sun Jun 30 15:22:55 PDT 2013 > >>>>>=20 > >>>>> gcooper@bayonetta.local:/usr/obj/scratch/git/github/yaneurabey= a-freeb > >>>>> sd-stable-9/sys/BAYONETTA>>>>>=20 > >>>>> gcc version 4.2.1 20070831 patched [FreeBSD] > >>>>> FreeBSD > >>>>> 9.1-STABLE > >>>>> BAYONETTA > >>>>> $ cd /usr/src; git log 0304216 > >>>>> commit 03042167f73c213732b44218a24d8e1bbea00f8c > >>>>> Merge: 2edcad2 974abfb > >>>>> Author: Garrett Cooper > >>>>> Date: Mon Jun 24 19:00:45 2013 -0700 > >>>>>=20 > >>>>> Merge remote-tracking branch 'upstream/stable/9' into stable/9= > >>>>>=20 > >>>>> The working kernel [with atkbdc] was as follows: > >>>>>=20 > >>>>> FreeBSD bayonetta.local 9.2-BETA1 FreeBSD 9.2-BETA1 #12 r+c1780= 34: Sun > >>>>> Jul 21 20:19:38 PDT 2013>>>>=20 > >>>> root@bayonetta.local:/usr/obj/scratch/git/github/yaneurabeya-fre= ebsd-st > >>>> able-9/sys/BAYONETTA amd64>>>>=20 > >>>>> $ git log c178034 > >>>>> commit c17803445f4ffb97e1a46a1be5f7ea04692793f0 > >>>>> Author: avg > >>>>> Date: Tue Jul 9 08:30:31 2013 +0000 > >>>>>=20 > >>>>> zfsboottest.sh: remove checks for things that are not strictly= > >>>>> required > >>>>> =20 > >>>>> MFC after: 10 days > >>>>>=20 > >>>>> (Yes, I had to backport some things because they are busted on > >>>>> stable/9 due to other incomplete/missing MFCs). > >>>>>=20 > >>>>> I can test out patches, but I don't have time to bisect the act= ual > >>>>> commit that caused the failure. That being said my intuition sa= ys > >>>>> it's this>>>>=20 > >>>> commit should be looked at first: > >>>>> commit 28f961058b0667841d7e9d8639bfd02ed8689faa > >>>>> Author: jhb > >>>>> Date: Wed Jul 17 14:04:18 2013 +0000 > >>>>>=20 > >>>>> MFC 252576: > >>>>> Don't perform the acpi_DeviceIsPresent() check for PCI-PCI bri= dges.=20 > >>>>> If > >>>>> we are probing a PCI-PCI bridge it is because we found one by > >>>>> enumerating > >>>>> the devices on a PCI bus, so the bridge is definitely present.= A few > >>>>> BIOSes report incorrect status (_STA) for some bridges that cl= aimed > >>>>> they > >>>>> were not present when in fact they were. > >>>>> =20 > >>>>> While here, move this check earlier for Host-PCI bridges so at= tach > >>>>> fails > >>>>> before doing any work that needs to be torn down. > >>>>> =20 > >>>>> PR: kern/91594 > >>>>> Approved by: re (marius) > >>>>=20 > >>>> I strongly doubt that this is related. It would be most helpful= if you > >>>> could obtain a dmesg from the new kernel however (perhaps via a = serial > >>>> console) to rule it out. All you would need to see is if the ne= w > >>>> kernel sees more "pcib" devices than the old one to see if this = change > >>>> even has an effect on your system. > >>>=20 > >>> Unfortunately the USB keyboard is broken as well at the mount roo= t > >>> prompt and the workstation doesn't have a uart on it that I can p= lay > >>> with (it's my home box), so I'm dead in the water when it panics = at the > >>> mount root prompt right now. > >>>=20 > >>> I guess I can revert this and a handful of other amd64/ata_cam/zf= s > >>> commits to see if this goes away, but I won't be getting to that = before > >>> next Sunday probably as this is my file server and DNS server now= .>>>=20 > >> I ran into the issue going from vanilla 9.2-RELEASE-p10 to > >> 9.3-RELEASE as well :(. I=E2=80=99ve filed this bug to track= the issue: > >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D192183 .= I=E2=80=99ll > >> see if GENERIC can boot my system sometime this week (the KE= RNCONF > >> has been working for several releases, but it could be an is= sue > >> with that that=E2=80=99s being overlooked by accident).>>=20= > >> Thanks! >=20 > ... >=20 > > Also, you would need to get verbose dmesg's of old and new kernels = as a > > first step in narrowing it down. > I can't do trivial debugging because my USB keyboard doesn't work at > the mountroot prompt ( > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D133989 ), I don't= > have a PS/2 keyboard, and the system only has VGA access :(. I'll try= > working on disabling the PS/2 controller in the BIOS and a few other > things to force the system to stop ignoring the USB keyboard to get > scrollback, because that appeared to work for some folks with this > issue according to the ukbd bug I referenced. Do you have a serial port so you could use a serial console (or is this= a=20 laptop)? --=20 John Baldwin