From nobody@FreeBSD.org  Thu Sep  9 16:16:44 2004
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 37D7916A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  9 Sep 2004 16:16:44 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1A3B643D49
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  9 Sep 2004 16:16:44 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i89GGhL2014760
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 9 Sep 2004 16:16:43 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i89GGhHx014759;
	Thu, 9 Sep 2004 16:16:43 GMT
	(envelope-from nobody)
Message-Id: <200409091616.i89GGhHx014759@www.freebsd.org>
Date: Thu, 9 Sep 2004 16:16:43 GMT
From: Thomas Schweikle <tps@vr-web.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Multiple SCSI-Busses are seen differently by BIOS, loader, and kernel
X-Send-Pr-Version: www-2.3

>Number:         71532
>Category:       kern
>Synopsis:       Multiple SCSI-Busses are seen differently by BIOS, loader, and kernel
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 09 16:20:09 GMT 2004
>Closed-Date:    
>Last-Modified:  Sun Oct 24 01:20:16 GMT 2004
>Originator:     Thomas Schweikle
>Release:        4.10-STABLE
>Organization:
>Environment:
FreeBSD hazel.tps 4.10-STABLE FreeBSD 4.10-STABLE #3: Thu Sep  9 16:29:02 CEST 2004     root@hazel.tps:/usr/obj/usr/src/sys/HAZEL  i386

>Description:
Two SCSI-Adapters:
- PCI-Adapter AHA-2940 U/UW
- Onboard AIC-7890 U2W

Two HD:
- old SCSI-I as unit 0 on AHA-2940
- new LVD SCSI-II as unit 0 on AIC-7890

BIOS is adviced to take the PCI-Adapter as first in the system.
The loader respects this and finds:
BIOS device C: is disk1 (the old SCSI-I disk)
BIOS device D: is disk2 (the new LVD disk)

The kernel loads from disk1.

Now the kernel takes over:

ahc1 is AHA-2940
ahc0 is AIC-7890

The old SCSI-I HD gets da1 assigned,
the new LVD-HD gets da0 assigned.

Disks have swapped now! The kernel does not find its root and asks for it. Instead it should respect what the BIOS tells, and assign:

ahc0 to AHA-2940
ahc1 to AIC-7890

Thus:
da0 being connected to AHA-2940
da1 being connected to AIC-7890

Systems with such a configuration render unusable until you remove at least one drive, keeping them all connected to one SCSI-Adapter only. This isn't acceptable.

The same problem arose with a system connected to a FC array, booting from a local SCSI device. It was impossible to have the system work, if both devices where connected.

>How-To-Repeat:
Get a system with on board SCSI, plug in a second SCSI-Adapter, then tell the BIOS to take this plugged in adapter as the first one. All being OK, until the kernel takes over. He will take the onboard adapter as the first one, the plugged in as second.
>Fix:
?
>Release-Note:
>Audit-Trail:

From: Thomas Schweikle <tps@vr-web.de>
To: freebsd-gnats-submit@FreeBSD.org, tps@vr-web.de
Cc:  
Subject: Re: kern/71532: Multiple SCSI-Busses are seen differently by BIOS,
 loader, and kernel
Date: Sun, 24 Oct 2004 03:10:28 +0200

 This is a MIME-formatted message.  If you see this text it means that your
 E-mail software does not support MIME-formatted messages.
 
 --=_vrwf203-32189-1098580308-0001-2
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 This Bug is a showstopper. Not something with "Severity
 non-critical", and "Priority low". On a lot of systems this leads to
 FreeBSD NOT being a runable OS.
 
 At the moment I am migrating some to Linux, since it is not
 applicable having some OS decide how to interpret which SCSI-Adaper
 is the first in the system. This is decided by the BIOS. The OS has
 to accept what the BIOS says. If not, this OS is not usefull for
 production systems!
 
 -- 
 Thomas
 
 --=_vrwf203-32189-1098580308-0001-2
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Transfer-Encoding: 7bit
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.4 (MingW32)
 
 iD8DBQFBewEdJuPdOes4UCQRAokrAKCtarWNKiJg6f3d2XiwB6H1xCfXEgCgl/zF
 QcMPpJHvfAVml4iQFVbWFIU=
 =x/P3
 -----END PGP SIGNATURE-----
 
 --=_vrwf203-32189-1098580308-0001-2--
>Unformatted:
