From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 20 16:00:51 2014 Return-Path: Delivered-To: freebsd-hackers@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 4762D989 for ; Wed, 20 Aug 2014 16:00:51 +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 205473087 for ; Wed, 20 Aug 2014 16:00:51 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 04F4CB9D0; Wed, 20 Aug 2014 12:00:50 -0400 (EDT) From: John Baldwin To: freebsd-hackers@freebsd.org Subject: Re: BTX halted on Proliant DL320 Gen8 v2's - fakeRAID support? Date: Wed, 20 Aug 2014 11:59:44 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20140415; KDE/4.5.5; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201408201159.44910.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 20 Aug 2014 12:00:50 -0400 (EDT) Cc: Karl Pielorz X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2014 16:00:51 -0000 On Thursday, August 14, 2014 9:59:28 am Karl Pielorz wrote: > > Hi, > > On our HP DL320 Gen8 v2's - BTX halts if we try to boot with the onboard > SATA controller set to 'B120i RAID' mode, and have drives present (output > from BTX is below). > > If you boot with *no drives* present - it works, and does show from pciconf > -lv: > > ahci0@pci0:0:31:2: class=0x010400 card=0x00841590 chip=0x8c048086 rev=0x04 > hdr=0x00 > vendor = 'Intel Corporation' > device = 'Lynx Point SATA Controller 1 [RAID mode]' > subclass = RAID > > But with drives present BTX dies on 9.x, 10.x and a recent 11.x snapshot. > > Is this controller supported in 'raid' mode? - i.e. if it got past BTX > would it be usable? > > -Karl > > BTX output (from 10.0-R-amd64 boot) > > " > Loading /boot/defaults/loader.conf > \ > int=00000008 err=0001681b efl=0007b7a0 eip=0000002b > eax=adadf9a8 ebx=adaf5630 ecx=adae3da4 edx=adaf5a38 > esi=0007b7b8 edi=00000000 ebp=0007b9a0 esp=00000033 > cs=0202 ds=0033 es=0033 fs=0033 gs=0033 ss=0000 > cs:eip=00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 > 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 > ss:esp=f0 d0 9b 00 f0 08 ef 00-f0 6c 50 24 8b 50 0b 00 > c0 4d f8 00 f0 05 ec 00-f0 f3 05 00 e8 8a 5e 00 > BTX halted Looks like the BIOS is mangling the stack somehow. cs holds the value of 'eflags', eip holds the value for 'cs', etc. 'efl' holds the value for 'esp', 'esp' holds 'ss', and 'ss' is set to 0. What is odd is that you didn't fault in boot2, only in the loader. Could you instrument the BIOS calls in sys/boot/i386/libi386/biosdisk.c to see which BIOS call is made that triggers the problem? -- John Baldwin