From owner-freebsd-stable@FreeBSD.ORG Mon May 26 05:27:32 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BDE11065670 for ; Mon, 26 May 2008 05:27:32 +0000 (UTC) (envelope-from pho@holm.cc) Received: from relay00.pair.com (relay00.pair.com [209.68.5.9]) by mx1.freebsd.org (Postfix) with SMTP id 3666F8FC27 for ; Mon, 26 May 2008 05:27:31 +0000 (UTC) (envelope-from pho@holm.cc) Received: (qmail 52654 invoked from network); 26 May 2008 05:27:30 -0000 Received: from unknown (HELO peter.osted.lan) (unknown) by unknown with SMTP; 26 May 2008 05:27:30 -0000 X-pair-Authenticated: 87.58.145.180 Received: from peter.osted.lan (localhost.osted.lan [127.0.0.1]) by peter.osted.lan (8.13.6/8.13.6) with ESMTP id m4Q5RT5J026304; Mon, 26 May 2008 07:27:29 +0200 (CEST) (envelope-from pho@peter.osted.lan) Received: (from pho@localhost) by peter.osted.lan (8.13.6/8.13.6/Submit) id m4Q5RTrp026303; Mon, 26 May 2008 07:27:29 +0200 (CEST) (envelope-from pho) Date: Mon, 26 May 2008 07:27:29 +0200 From: Peter Holm To: Mark Kirkwood Message-ID: <20080526052729.GA25171@peter.osted.lan> References: <720051dc0805220159n23eb6205yfcf9450be7af5c77@mail.gmail.com> <200805230829.09524.jhb@freebsd.org> <20080523132645.GO29770@deviant.kiev.zoral.com.ua> <200805231811.01936.jhb@freebsd.org> <48390FA9.5080503@paradise.net.nz> <4839243D.7000700@paradise.net.nz> <20080525171632.GA1305@peter.osted.lan> <483A1F0F.1060502@paradise.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <483A1F0F.1060502@paradise.net.nz> User-Agent: Mutt/1.4.2.1i Cc: Peter Holm , freebsd-stable , John Baldwin Subject: Re: BTX loader hangs after version info X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2008 05:27:32 -0000 On Mon, May 26, 2008 at 02:23:11PM +1200, Mark Kirkwood wrote: > Peter Holm wrote: > >On Sun, May 25, 2008 at 08:33:01PM +1200, Mark Kirkwood wrote: > > > >>I wrote: > >> > >>>John Baldwin wrote: > >>> > >>>>Try this patch. I'm not 100% certain this will fix it as I can't > >>>>reproduce > >>>>the issue, but I think it might help. Specifically, when the boot > >>>>code makes > >>>>a v86 call, the loader/boot2/whatever swaps in/out a new set of > >>>>registers via > >>>>the v86 structure including the eflags register. However, none of > >>>>the boot > >>>>programs actually initialized the v86 structure. Thus, the BIOS > >>>>routines > >>>>would start off running with whatever garbage was in v86.efl when > >>>>each boot > >>>>program started. This meant that we could end up invoking BIOS > >>>>routines with > >>>>interrupts disabled, and I think this might explain a hard hang (if a > >>>>BIOS > >>>>routine was waiting for an interrupt the interrupt would never > >>>>fire). The > >>>>patch fixes all the boot programs to initialize v86 to a better known > >>>>state. At the least it sets v86.efl to a sane value (0x202) rather > >>>>than random. (The > >>>>random might have always been 0x0 BTW, not sure on that one.) > >>>> > >>>> > >>>> > >>>Thanks John, > >>> > >>>Unfortunately this patch does *not* cure the issue for my old > >>>Supermicro P3TDDE, it still hangs just before presenting the menu. I > >>>had to boot off the livefs and copy /boot/loader.old -> /boot/loader > >>>to get back to being bootable again - but at least the old fella is on > >>>a more up-to-date 7-STABLE now :-) > >>> > >>Given that the patch *did* cure Peters Tyan S2720, I'll double check I > >>didn't fat finger applying the patch (mind you the Tyan has AMI BOIS - > >>same as my Supermicro P3TDERs that *do* work ok with current 7-STABLE, > >>whereas the P3TDDE has Award BIOS). > >> > >>Anyway, I'll double check and report back... > >> > >>Cheers > >> > >>Mark > >> > > > >I did 18 boots with and with out John's patch. With the patch I got 6 > >actual boots and 12 hangs in the loaders progress bar. > > > >Without the patch I got 10 boots and 8 hangs. > > > >But, my Tyan M/B is old and with known ACPI issues so I'm not sure if > >this is of much value. > > > >Mark, it would be nice if you also observe if a sequence of reboots > >eventually boots your system. My longest bad streek was 8 reboots. > > > > > > Yeah, I see the same thing - with John's patch applied, out of 9 reboots > I got 7 hangs and 2 actual boots. (didn't try without the patch). > > Mark OK, that is at least nice with consistency across different HW. -- Peter