From nobody@FreeBSD.org  Wed Dec 17 11:20:05 2003
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7868516A524
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 17 Dec 2003 11:20:05 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2373343D6A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 17 Dec 2003 11:19:38 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id hBHJJbdL092749
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 17 Dec 2003 11:19:37 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id hBHJJbqw092748;
	Wed, 17 Dec 2003 11:19:37 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200312171919.hBHJJbqw092748@www.freebsd.org>
Date: Wed, 17 Dec 2003 11:19:37 -0800 (PST)
From: Nicholas Paufler <npaufler@incentre.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Intel ICH5 SATA RAID boot problems on both -STABLE and -CURRENT
X-Send-Pr-Version: www-2.0

>Number:         60344
>Category:       i386
>Synopsis:       [boot] Intel ICH5 SATA RAID boot problems on both -STABLE and -CURRENT
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 17 11:30:13 PST 2003
>Closed-Date:    Thu Jan 05 00:10:59 GMT 2006
>Last-Modified:  Thu Jan 05 00:10:59 GMT 2006
>Originator:     Nicholas Paufler
>Release:        4.9-RELEASE, 4-STABLE, 5.2-RC1, 5-CURRENT
>Organization:
The Internet Centre
>Environment:
n/a since I can't make it boot let alone install
>Description:
System is a Supermicro Superserver 5013CT (http://www.supermicro.com/PRODUCT/SUPERServer/SuperServer5013C-T.htm) which uses the Intel ICH5 chipset for it's RAID.

Despite there apparently being ICH5 SATA support in both -STABLE and -CURRENT as of last summer, I cannot get any version of FreeBSD to install onto these drives while the ICH5 controller is configured for SATA RAID.

In the motherboard BIOS there are several configuration settings for the SATA mode. First, they can be configured as RAID (either level 0 or 1), which is how I'd like to run. Next, there are two different "legacy" modes (one, where SATA takes the place of the PATA drives, and another where PATA and SATA both run side by side).

If I run in one of the legacy modes I am able to boot, and 5.2-RC1 detects and is able to install to the disks. However, RAID cannot be enabled in legacy mode so it is not overly useful.

If I enable RAID (and it doesn't matter whether the 2 disks are configured as striped, mirrored, or with no RAID volumes defined at all) then the installer hangs at the boot loader on the 5.2-RC1 install CD.

The error is:

BTX loader 1.00 BTX version is 1.01
Console internal video/keyboard
BIOS CD is cd0
BIOS drive A: is disk0

int=0000000d err=00000000 efl=00030046 eip=00009066
eax=000000b8 ebx=000028280 ecx=0000000 edx=000008ee
esi=00009701 edi=00001f98 ebp=00000000 esp=00001800
cs=0000 ds=0000 fs=0000 gs=0000 ss=0000

es:eip 0f 01 1e d6 96 0f 01 16-d0 96 0f 20 c0 66 83 c8
01 0f 22 c0 ea 7f 90 08-00 31 c9 b1 10 8e d1 b1
ss:esp=0a 69 6e 74 3d 30 30 30-30 30 30 30 64 20 20 65
72 72 3d 30 30 30 30 30 - 30 30 30 20 20 65 66 6c

BTX halted

The numbers appear identical through reboots.

I get the same effect if I boot from a -CURRENT snapshot from 1217 as well.

If I boot from a 4-STABLE snapshot from 1202 then I don't get any errors on bootup, but once I get to sysinstall it is not able to detect any disks to install to.
>How-To-Repeat:
      Install any current version of FreeBSD, either release or a -CURRENT or -STABLE snapshot on a Supermicro 5013CT with SATA raid enabled.
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Jeremy Chadwick <freebsd@jdc.parodius.com>
To: freebsd-gnats-submit@FreeBSD.org, npaufler@incentre.net
Cc:  
Subject: Re: i386/60344: Intel ICH5 SATA RAID boot problems on both -STABLE and -CURRENT
Date: Tue, 3 Feb 2004 13:22:52 -0800

 As a follow-up: we too have these same boxes, and they seem to
 exhibit the exact same issue as Nicholas described (BTX crashes
 in 5.2.1, and no disks are found by sysinstall on 4.9).
 
 I've the time to do extra debugging work if needed, but with BTX
 failing on 5.x, there's not too much I can do with that.  For 4.9, I
 have absolutely no idea why the disks aren't being found (the ICH5R
 SATA controller _is_ detected; I can provide dmesg output if needed).
 Possibly Soren could shed some light on this one....
 
 Could someone please look into this, for either release?  Or post
 information about how I could go about providing debug information
 for this?
 
 Thanks.
 
 -- 
 | Jeremy Chadwick                          koitsu at jdc.parodius.com |
 | Parodius Networking                        http://www.parodius.com/ |
 | UNIX Systems Administrator                   Mountain View, CA, USA |
 | Making life hard for others since 1977.                             |
 

From: Jeremy Chadwick <freebsd@jdc.parodius.com>
To: freebsd-gnats-submit@FreeBSD.org, npaufler@incentre.net
Cc:  
Subject: Re: i386/60344: Intel ICH5 SATA RAID boot problems on both -STABLE and -CURRENT
Date: Tue, 17 Feb 2004 05:08:14 -0800

 Good news -- it looks as if the Linux folks have a working driver
 for the ICH5R with RAID0 and RAID1 support.  The Linux patch in
 question is written by a bloke from Intel.
 
 If someone could please forward this follow-up over to Soren, I'd
 appreciate it.  I have a feeling this may help solve some of our
 problems, the biggest of which is why BTX is dying.
 
 http://www.ussg.iu.edu/hypermail/linux/kernel/0311.3/0222.html
 
 ftp://ftp.kernel.org/pub/linux/kernel/people/jgarzik/libata/
 
 Also: I have a lot of free time presently which could be used to
 assist in debugging this entire ordeal (re: BTX panic).
 
 It's also possible for me to provide a kernel/module developer
 with VNC access to a Windows XP box in my abode that is hooked
 to the SuperMicro 5013C-T box via serial console (BIOS-level),
 therefore debugging could be done remotely by a kernel-dev if
 necessary.
 
 -- 
 | Jeremy Chadwick                          koitsu at jdc.parodius.com |
 | Parodius Networking                        http://www.parodius.com/ |
 | UNIX Systems Administrator                   Mountain View, CA, USA |
 | Making life hard for others since 1977.                             |
 

From: Gavin Cameron <gavin@gcameron.org>
To: freebsd-gnats-submit@FreeBSD.org, npaufler@incentre.net
Cc:  
Subject: Re: i386/60344: Intel ICH5 SATA RAID boot problems on both -STABLE
 and -CURRENT
Date: Sun, 06 Jun 2004 00:09:24 +1000

 Hi,
 
 Just wondering what the status of this PR is...
 
 I'm trying to install 5.2.1-RELEASE on a Supermicro P4SCE motherboard
 with two SATA drives in raid1 but BTX still dies as mentioned in
 the original PR.
 
 If you need me to help debugging this please let me know what
 is required.
 
 Ta
 Gavin
 
 -- 
 Gavin Cameron
 e: gavin (at) gcameron (dot) org
 
    -- Every man dies; not every man really lives
 

From: Ben Livingston <ben@inwa.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc: npaufler@incentre.net
Subject: Re: i386/60344: Intel ICH5 SATA RAID boot problems on both -STABLE
 and -CURRENT
Date: Tue, 6 Jul 2004 09:57:57 -0700 (PDT)

 I am running a SuperMicro P4SCT+ motherboard with an Intel 6300ESB SATA
 controller. I encountered the same problems -- when I enable RAID in the
 bios, FreeBSD fails to find the hard drives.
 
 I disabled RAID and installed FreeBSD 5.2.1. I then enabled RAID in the
 bios but did not set up any RAID drives. I booted from the hard drive and
 FreeBSD started loading, but then hung at:
 
 Mounting root from ufs:/dev/ad0s1a
 setrootbyname failed
 ffs_mountroot: can't find rootvp
 Root mount failed: 6
 
 -- Ben
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Thu Jan 5 00:08:12 UTC 2006 
State-Changed-Why:  
The ich5 is now fully supported in -current and 6.0. 
Verified on a SuperMicro P4SCT+. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=60344 
>Unformatted:
