Subject: port-sgimips/16584: port-sgimips improperly identifies 2nd scsibus root partition
To: None <gnats-bugs@gnats.netbsd.org>
From: None <sgimips@netbsd.org>
List: netbsd-bugs
Date: 04/30/2002 08:41:54
>Number: 16584
>Category: port-sgimips
>Synopsis: On multi-scsibus machines (Indigo 2) the root drive is always attached to scsibus0
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: port-sgimips-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 30 06:43:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Scott G. Taylor
>Release: NetBSD 1.5ZC (20020419)
>Organization:
MRYNET
>Environment:
System: NetBSD mod81 1.5ZC NetBSD 1.5ZC (GENERIC_L2) #2: Sun Apr 21 16:06:40 CDT 2002 root@mod81:/sgimips/src/sys/arch/sgimips/compile/GENERIC_L2 sgimips
Architecture: mipseb
Machine: sgimips
>Description:
When determining the root drive booted, the drive is assumed to be
attached to the first controller found. This is incorrect on (at
least) the Indigo 2 when the booted drive is on the second SCSI
bus.
>How-To-Repeat:
Attempt to boot an external SCSI disk on the Indigo 2 (scsibus1).
>Fix:
The following patch is my fix:
Index: sys/arch/sgimips/sgimips/autoconf.c
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/sgimips/sgimips/autoconf.c,v
retrieving revision 1.8
diff -r1.8 autoconf.c
181c181,182
< booted_controller = dev;
---
> if (dev->dv_unit == booted_slot)
> booted_controller = dev;
>Release-Note:
>Audit-Trail:
>Unformatted: