From owner-freebsd-current@FreeBSD.ORG Wed Nov 23 03:18:56 2011 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 E28371065670; Wed, 23 Nov 2011 03:18:56 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (secure.freebsdsolutions.net [69.55.234.48]) by mx1.freebsd.org (Postfix) with ESMTP id C51898FC08; Wed, 23 Nov 2011 03:18:56 +0000 (UTC) Received: from [192.168.2.80] (jn@stealth.jnielsen.net [74.218.226.254]) (authenticated bits=0) by ns1.jnielsen.net (8.14.4/8.14.4) with ESMTP id pAN37n6h017885 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Tue, 22 Nov 2011 22:07:50 -0500 (EST) (envelope-from lists@jnielsen.net) References: <848DEEC1-570F-43F8-B432-A34F81014CD0@jnielsen.net> <201111221026.23015.jhb@freebsd.org> In-Reply-To: <201111221026.23015.jhb@freebsd.org> Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <929879BF-521C-43A1-8D63-DF2B04B6D013@jnielsen.net> X-Mailer: iPhone Mail (9A405) From: John Nielsen Date: Tue, 22 Nov 2011 22:07:52 -0500 To: John Baldwin X-DCC-sonic.net-Metrics: ns1.jnielsen.net; whitelist Cc: "freebsd-current@freebsd.org" Subject: Re: loader crash / BTX halted on 9.0-RC2 DVD with AMD pseudo-RAID 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: Wed, 23 Nov 2011 03:18:57 -0000 On Nov 22, 2011, at 10:26 AM, John Baldwin wrote: > On Monday, November 21, 2011 1:45:36 pm John Nielsen wrote: >> This weekend I downloaded the Freebsd 9.0 RC2 amd64 ISO image and burned i= t=20 > to a DVD. I have a computer that currently runs Windows 7 but I plan to=20= > install FreeBSD on it in the near future so I booted it up from the DVD to= =20 > check the hardware/driver status. Much to my dismay, the boot loader crash= ed=20 > right away (register dump followed by "BTX halted") and the computer=20 > immediately rebooted. I took a video with my phone so I could capture the=20= > crash message, screenshot here: >>=20 >> http://picpaste.com/pics/BTXcrash.1321899682.jpg >>=20 >> I then tried tweaking a few BIOS settings and found that turning off the=20= > built-in pseudo-RAID allowed the DVD to boot normally. I changed the SATA t= ype=20 > from "RAID" to "AHCI". Fortunately I plan to use the controller in AHCI mo= de=20 > for the FreeBSD installation so this won't end up being a problem for me, b= ut=20 > I still thought it was worth reporting. >=20 > Hmmm, so this is odd. It died with an Invalid TSS exception on the iret=20= > instruction at the end of the return-from-real-mode trampoline in BTX. =20= > Looking at the dump I noticed that PSL_NT is set in %eflags, so for some=20= > reason the iret was trying to do a nested task return. We shouldn't let > that flag leak out of any real mode code. Try this patch perhaps: Thanks for looking! I put gptboot on a USB stick and tried it with and without the patch. Identi= cal behavior in both cases to booting from the DVD (only faster)--BTX dump a= nd an instant reboot. I didn't do a screen capture yet but will be happy to t= omorrow if it will help. JN